]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ecryptfs: remove unnecessary i_version bump
authorJeff Layton <jlayton@redhat.com>
Mon, 30 Oct 2017 15:01:31 +0000 (11:01 -0400)
committerTyler Hicks <tyhicks@canonical.com>
Mon, 6 Nov 2017 18:24:08 +0000 (18:24 +0000)
There is no need to bump the i_version counter here, as ecryptfs does
not set the SB_I_VERSION flag, and doesn't use it internally. It also
only bumps it when the inode is instantiated, which doesn't make much
sense.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
fs/ecryptfs/inode.c

index 93ed19ac770fd61b46711477a18ffbaec20dc649..847904aa63a9a6554d592dbf0710c7eff7954f49 100644 (file)
@@ -64,7 +64,6 @@ static int ecryptfs_inode_set(struct inode *inode, void *opaque)
        /* i_size will be overwritten for encrypted regular files */
        fsstack_copy_inode_size(inode, lower_inode);
        inode->i_ino = lower_inode->i_ino;
-       inode->i_version++;
        inode->i_mapping->a_ops = &ecryptfs_aops;
 
        if (S_ISLNK(inode->i_mode))