diff --git a/fs/ext4/move_extent.c b/fs/ext4/move_extent.c index d78c33eed7e54a1d75dff016bbf1ddc49e7c1e0b..c1f15b203e98d3e6a51decb4d49ea1fcee8e1ae1 100644 --- a/fs/ext4/move_extent.c +++ b/fs/ext4/move_extent.c @@ -666,6 +666,14 @@ mext_replace_branches(handle_t *handle, struct inode *orig_inode, int replaced_count = 0; int dext_alen; + *err = ext4_es_remove_extent(orig_inode, from, count); + if (*err) + goto out; + + *err = ext4_es_remove_extent(donor_inode, from, count); + if (*err) + goto out; + /* Get the original extent for the block "orig_off" */ *err = get_ext_path(orig_inode, orig_off, &orig_path); if (*err)