]> git.baikalelectronics.ru Git - kernel.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)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 21 Feb 2016 23:38:44 +0000 (18:38 -0500)
commitf463bac0320f2e03a520ec9285047bf24ab41118
treea17a769be3fd06779a93f4c24d07fe7c8cc804a0
parent2666e6ea5a01ab2a928df1201abd5f7cc4b2b316
ext4: iterate over buffer heads correctly in move_extent_per_page()

In commit f0e8af0a27cb ("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: f0e8af0a27cb ("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
fs/ext4/move_extent.c