• Theodore Ts'o's avatar
    ext4: Don't update ctime for non-extent-mapped inodes · 41591750
    Theodore Ts'o authored
    The VFS handles updating ctime, so we don't need to update the inode's
    ctime in ext4_splace_branch() to update the direct or indirect blocks.
    This was harmless when we did this in ext3, but in ext4, thanks to
    delayed allocation, updating the ctime in ext4_splice_branch() can
    cause the ctime to mysteriously jump when the blocks are finally
    allocated.
    
    Thanks to Björn Steinbrink for pointing out this problem on the git
    mailing list.
    Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
    41591750
inode.c 157 KB