]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix fencepost error in lazytime optimization
authorTheodore Ts'o <tytso@mit.edu>
Thu, 2 Jul 2015 03:37:46 +0000 (23:37 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 2 Jul 2015 03:37:46 +0000 (23:37 -0400)
commitee4c16a8f245e9161ccea414324e41401d1983e5
treed1f2548257683d788811b2375198742935c97015
parente1085a5aa784e20eace21814282c2d57a9605e05
ext4: fix fencepost error in lazytime optimization

Commit 7ad9b0fea11: "ext4: fix lazytime optimization" was not a
complete fix.  In the case where the inode number is a multiple of 16,
and we could still end up updating an inode with dirty timestamps
written to the wrong inode on disk.  Oops.

This can be easily reproduced by using generic/005 with a file system
with metadata_csum and lazytime enabled.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
fs/ext4/inode.c