Commit 718e47a5 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4

Pull ext4 fix from Ted Ts'o:
 "This fixes a regression which crept in v4.5-rc5"

* tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
  ext4: iterate over buffer heads correctly in move_extent_per_page()
parents a6e434e9 6ffe77ba
...@@ -390,6 +390,7 @@ move_extent_per_page(struct file *o_filp, struct inode *donor_inode, ...@@ -390,6 +390,7 @@ move_extent_per_page(struct file *o_filp, struct inode *donor_inode,
*err = ext4_get_block(orig_inode, orig_blk_offset + i, bh, 0); *err = ext4_get_block(orig_inode, orig_blk_offset + i, bh, 0);
if (*err < 0) if (*err < 0)
break; break;
bh = bh->b_this_page;
} }
if (!*err) if (!*err)
*err = block_commit_write(pagep[0], from, from + replaced_size); *err = block_commit_write(pagep[0], from, from + replaced_size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment