]> 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)
commit8797cbbe3d461497f3c706ce4e1f5868e4790d1e
treed1f2548257683d788811b2375198742935c97015
parent6b67de5e4cbf25fbe4d1ace49499ba8939cb6967
ext4: fix fencepost error in lazytime optimization

Commit c0f18f9d7dc: "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