• Theodore Ts'o's avatar
    ext4: fix fencepost error in lazytime optimization · 0f0ff9a9
    Theodore Ts'o authored
    Commit 8f4d8558: "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: default avatarTheodore Ts'o <tytso@mit.edu>
    Cc: stable@vger.kernel.org
    0f0ff9a9
inode.c 153 KB