diff options
author | Jeff Layton <jlayton@redhat.com> | 2017-10-30 16:01:31 +0100 |
---|---|---|
committer | Tyler Hicks <tyhicks@canonical.com> | 2017-11-06 19:24:08 +0100 |
commit | 0695a3c744d851cc75d19cea9e63bc2f7dde836f (patch) | |
tree | 5547ef48a7850a54a679f7fd53417ae0dcd72760 /fs/ecryptfs/inode.c | |
parent | ecryptfs: use ARRAY_SIZE (diff) | |
download | linux-0695a3c744d851cc75d19cea9e63bc2f7dde836f.tar.xz linux-0695a3c744d851cc75d19cea9e63bc2f7dde836f.zip |
ecryptfs: remove unnecessary i_version bump
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>
Diffstat (limited to 'fs/ecryptfs/inode.c')
-rw-r--r-- | fs/ecryptfs/inode.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index 93ed19ac770f..847904aa63a9 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c @@ -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)) |