Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174389
b: refs/heads/master
c: 94d7c16
h: refs/heads/master
i:
  174387: c4e9d54
v: v3
  • Loading branch information
Akira Fujita authored and Theodore Ts'o committed Nov 24, 2009
1 parent 1fda4e4 commit fd51c23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9084d4719784b00ff0bf9c9580007fac8277dbcb
refs/heads/master: 94d7c16cbbbd0e03841fcf272bcaf0620ad39618
9 changes: 5 additions & 4 deletions trunk/fs/ext4/move_extent.c
Original file line number Diff line number Diff line change
Expand Up @@ -1289,10 +1289,6 @@ ext4_move_extents(struct file *o_filp, struct file *d_filp,
ext4_ext_get_actual_len(ext_cur), block_end + 1) -
max(le32_to_cpu(ext_cur->ee_block), block_start);

/* Discard preallocations of two inodes */
ext4_discard_preallocations(orig_inode);
ext4_discard_preallocations(donor_inode);

while (!last_extent && le32_to_cpu(ext_cur->ee_block) <= block_end) {
seq_blocks += add_blocks;

Expand Down Expand Up @@ -1410,6 +1406,11 @@ ext4_move_extents(struct file *o_filp, struct file *d_filp,

}
out:
if (*moved_len) {
ext4_discard_preallocations(orig_inode);
ext4_discard_preallocations(donor_inode);
}

if (orig_path) {
ext4_ext_drop_refs(orig_path);
kfree(orig_path);
Expand Down

0 comments on commit fd51c23

Please sign in to comment.