summaryrefslogtreecommitdiff
path: root/fs/f2fs/inode.c
diff options
context:
space:
mode:
authorChao Yu <chao@kernel.org>2023-04-10 05:20:12 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2023-04-10 21:00:58 +0300
commitc277991d7cf07cf68673abea52d4a96c4ee6272d (patch)
tree17866b92e6d6429194d4421303362514468b0418 /fs/f2fs/inode.c
parent68f0453dabdb99e76f75ce52ce40bc4bc71389a8 (diff)
downloadlinux-c277991d7cf07cf68673abea52d4a96c4ee6272d.tar.xz
f2fs: remove unneeded in-memory i_crtime copy
i_crtime will never change after inode creation, so we don't need to copy it into f2fs_inode_info.i_disk_time[3], and monitor its change to decide whether updating inode page, remove related stuff. Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/inode.c')
-rw-r--r--fs/f2fs/inode.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c
index bb5b365a195d..cf4327ad106c 100644
--- a/fs/f2fs/inode.c
+++ b/fs/f2fs/inode.c
@@ -326,7 +326,6 @@ static void init_idisk_time(struct inode *inode)
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;
}
static int do_read_inode(struct inode *inode)