提交 0695a3c7 编写于 作者: J Jeff Layton 提交者: Tyler Hicks

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: NJeff Layton <jlayton@redhat.com>
Signed-off-by: NTyler Hicks <tyhicks@canonical.com>
上级 02f9876e
...@@ -64,7 +64,6 @@ static int ecryptfs_inode_set(struct inode *inode, void *opaque) ...@@ -64,7 +64,6 @@ static int ecryptfs_inode_set(struct inode *inode, void *opaque)
/* i_size will be overwritten for encrypted regular files */ /* i_size will be overwritten for encrypted regular files */
fsstack_copy_inode_size(inode, lower_inode); fsstack_copy_inode_size(inode, lower_inode);
inode->i_ino = lower_inode->i_ino; inode->i_ino = lower_inode->i_ino;
inode->i_version++;
inode->i_mapping->a_ops = &ecryptfs_aops; inode->i_mapping->a_ops = &ecryptfs_aops;
if (S_ISLNK(inode->i_mode)) if (S_ISLNK(inode->i_mode))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册