Patch "ext4: iterate over buffer heads correctly in move_extent_per_page()" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
ext4: iterate over buffer heads correctly in move_extent_per_page()
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
ext4-iterate-over-buffer-heads-correctly-in-move_extent_per_page.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
6ffe77bad545f4a7c8edd2a4ee797ccfcd894ab4Mon Sep 17 00:00:00 2001
From: Eryu Guan <[email protected]>
Date: Sun, 21 Feb 2016 18:38:44 -0500
Subject: ext4: iterate over buffer heads correctly in move_extent_per_page()
From: Eryu Guan <[email protected]>
commit 6ffe77bad545f4a7c8edd2a4ee797ccfcd894ab4 upstream.
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.
--- fs/ext4/move_extent.c | 1 + 1 file changed, 1 insertion(+)
fs/ext4/move_extent.c +1 -0
@@ -390,6 +390,7 @@ data_copy: *err =ext4_get_block (orig_inode, orig_blk_offset + i, bh,0 );if (*err <0 )break ; + bh = bh->b_this_page; }if (!*err) *err =block_commit_write (pagep[0 ], from, from + replaced_size);
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/ext4-iterate-over-buffer-heads-correctly-in-move_extent_per_page.patch