Skip to content

Commit

Permalink
f2fs: don't bother with inode->i_version
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
  • Loading branch information
jtlayton authored and Jaegeuk Kim committed Nov 6, 2017
1 parent bf34c93 commit d1954ab
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/f2fs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1460,7 +1459,6 @@ static ssize_t f2fs_quota_write(struct super_block *sb, int type,

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;
Expand Down

0 comments on commit d1954ab

Please sign in to comment.