summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/namei.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2022-12-02 13:51:09 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2022-12-12 14:53:56 -0800
commit72840cccc0a1a0a0dc1bb27b669a9111be6d0f6a (patch)
tree269c6029508fcf2e2b6c773fee5094bac5c8f9d4 /fs/f2fs/namei.c
parente7547daccd6a37522f0af74ec4b5a3036f3dd328 (diff)
downloadlinux-stable-72840cccc0a1a0a0dc1bb27b669a9111be6d0f6a.tar.gz
linux-stable-72840cccc0a1a0a0dc1bb27b669a9111be6d0f6a.tar.bz2
linux-stable-72840cccc0a1a0a0dc1bb27b669a9111be6d0f6a.zip
f2fs: allocate the extent_cache by default
Let's allocate it to remove the runtime complexity. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/namei.c')
-rw-r--r--fs/f2fs/namei.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c
index 58a91ce8fe08..46de782c2baa 100644
--- a/fs/f2fs/namei.c
+++ b/fs/f2fs/namei.c
@@ -284,8 +284,6 @@ static struct inode *f2fs_new_inode(struct user_namespace *mnt_userns,
}
F2FS_I(inode)->i_inline_xattr_size = xattr_size;
- f2fs_init_extent_tree(inode, NULL);
-
F2FS_I(inode)->i_flags =
f2fs_mask_flags(mode, F2FS_I(dir)->i_flags & F2FS_FL_INHERITED);
@@ -311,6 +309,8 @@ static struct inode *f2fs_new_inode(struct user_namespace *mnt_userns,
f2fs_set_inode_flags(inode);
+ f2fs_init_extent_tree(inode);
+
trace_f2fs_new_inode(inode, 0);
return inode;