]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: iterate over buffer heads correctly in move_extent_per_page()
authorEryu Guan <guaneryu@gmail.com>
Sun, 21 Feb 2016 23:38:44 +0000 (18:38 -0500)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 18 Apr 2016 12:50:37 +0000 (08:50 -0400)
commit31a37d7c7ef7b4f90b600fcddd1c385a39f9d34c
tree876b0efa6cda395c772593a61c58f5ecef4308cb
parent3a4db9eef86e230e3b441ea14ab4ed5492b5bf02
ext4: iterate over buffer heads correctly in move_extent_per_page()

[ Upstream commit 87f9a031af48defee9f34c6aaf06d6f1988c244d ]

In commit bcff24887d00 ("ext4: don't read blocks from disk after extents
being swapped") bh is not updated correctly in the for loop and wrong
data has been written to disk. generic/324 catches this on sub-page
block size ext4.

Fixes: bcff24887d00 ("ext4: don't read blocks from disk after extentsbeing swapped")
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
fs/ext4/move_extent.c