diff options
author | Changman Lee <cm224.lee@samsung.com> | 2014-12-01 16:29:58 +0900 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-12-01 14:16:50 -0800 |
commit | 9c01503f4da3ff9c327d37249fe148ed7c188b20 (patch) | |
tree | 4de66ce5d158b2ae6864421a9edcf033b9eed492 /fs/f2fs | |
parent | cd34e2969b28de7685bb51d4b0fafeced8ef7f66 (diff) | |
download | op-kernel-dev-9c01503f4da3ff9c327d37249fe148ed7c188b20.zip op-kernel-dev-9c01503f4da3ff9c327d37249fe148ed7c188b20.tar.gz |
f2fs: cleanup redundant macro
We've already made fi and sbi for inode. Let's avoid duplicated work.
Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 7c2ec3e..146e58a 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -206,10 +206,10 @@ go_write: ret = f2fs_sync_fs(inode->i_sb, 1); down_write(&fi->i_sem); - F2FS_I(inode)->xattr_ver = 0; + fi->xattr_ver = 0; if (file_wrong_pino(inode) && inode->i_nlink == 1 && get_parent_ino(inode, &pino)) { - F2FS_I(inode)->i_pino = pino; + fi->i_pino = pino; file_got_pino(inode); up_write(&fi->i_sem); mark_inode_dirty_sync(inode); @@ -241,7 +241,7 @@ sync_nodes: flush_out: remove_dirty_inode(sbi, ino, UPDATE_INO); clear_inode_flag(fi, FI_UPDATE_WRITE); - ret = f2fs_issue_flush(F2FS_I_SB(inode)); + ret = f2fs_issue_flush(sbi); } out: trace_f2fs_sync_file_exit(inode, need_cp, datasync, ret); |