linux-f2fs-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
* [f2fs-dev] [PATCH 1/2] f2fs: replace F2FS_I(inode) by the local variable
@ 2022-05-25  9:43 Yufen Yu via Linux-f2fs-devel
  2022-05-25  9:43 ` [f2fs-dev] [PATCH 2/2] f2fs: add f2fs_init_write_merge_io function Yufen Yu via Linux-f2fs-devel
  2022-05-25 10:15 ` [f2fs-dev] [PATCH 1/2] f2fs: replace F2FS_I(inode) by the local variable Chao Yu
  0 siblings, 2 replies; 4+ messages in thread
From: Yufen Yu via Linux-f2fs-devel @ 2022-05-25  9:43 UTC (permalink / raw)
  To: jaegeuk, chao; +Cc: linux-f2fs-devel

We have define 'fi' at the begin of function do_read_inode(),
just use it, rather than use F2FS_I(inode) again.

Signed-off-by: Yufen Yu <yuyufen@huawei.com>
---
 fs/f2fs/inode.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c
index 83639238a1fe..9bad349be9cc 100644
--- a/fs/f2fs/inode.c
+++ b/fs/f2fs/inode.c
@@ -466,10 +466,10 @@ static int do_read_inode(struct inode *inode)
 		}
 	}
 
-	F2FS_I(inode)->i_disk_time[0] = inode->i_atime;
-	F2FS_I(inode)->i_disk_time[1] = inode->i_ctime;
-	F2FS_I(inode)->i_disk_time[2] = inode->i_mtime;
-	F2FS_I(inode)->i_disk_time[3] = F2FS_I(inode)->i_crtime;
+	fi->i_disk_time[0] = inode->i_atime;
+	fi->i_disk_time[1] = inode->i_ctime;
+	fi->i_disk_time[2] = inode->i_mtime;
+	fi->i_disk_time[3] = fi->i_crtime;
 	f2fs_put_page(node_page, 1);
 
 	stat_inc_inline_xattr(inode);
-- 
2.31.1



_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-25 10:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-25  9:43 [f2fs-dev] [PATCH 1/2] f2fs: replace F2FS_I(inode) by the local variable Yufen Yu via Linux-f2fs-devel
2022-05-25  9:43 ` [f2fs-dev] [PATCH 2/2] f2fs: add f2fs_init_write_merge_io function Yufen Yu via Linux-f2fs-devel
2022-05-25 10:19   ` Chao Yu
2022-05-25 10:15 ` [f2fs-dev] [PATCH 1/2] f2fs: replace F2FS_I(inode) by the local variable Chao Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).