summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2017-10-30 11:11:56 -0400
committerJaegeuk Kim <jaegeuk@kernel.org>2017-11-05 16:42:05 -0800
commitd1954ab4c9aa67a0d5a2457120cbc8c02594de6a (patch)
treee4d0dcab9b319c013f8b3a5c6a59ea45043946d5 /fs/f2fs
parentbf34c93d264509422e9eb11e2dbcea8d8e875efd (diff)
downloadlinux-stable-d1954ab4c9aa67a0d5a2457120cbc8c02594de6a.tar.gz
linux-stable-d1954ab4c9aa67a0d5a2457120cbc8c02594de6a.tar.bz2
linux-stable-d1954ab4c9aa67a0d5a2457120cbc8c02594de6a.zip
f2fs: don't bother with inode->i_version
f2fs does not set the SB_I_VERSION flag, so the i_version will never be incremented on write. It was recently changed to increment the i_version on a quota write, which isn't necessary here. Signed-off-by: Jeff Layton <jlayton@redhat.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/super.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 91eaa7b235eb..031cb26a3a76 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -664,7 +664,6 @@ static struct inode *f2fs_alloc_inode(struct super_block *sb)
init_once((void *) fi);
/* Initialize f2fs-specific inode info */
- fi->vfs_inode.i_version = 1;
atomic_set(&fi->dirty_pages, 0);
fi->i_current_depth = 1;
fi->i_advise = 0;
@@ -1460,7 +1459,6 @@ retry:
if (len == towrite)
return err;
- inode->i_version++;
inode->i_mtime = inode->i_ctime = current_time(inode);
f2fs_mark_inode_dirty_sync(inode, false);
return len - towrite;