diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2022-12-02 13:51:09 -0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2022-12-12 14:53:56 -0800 |
commit | 72840cccc0a1a0a0dc1bb27b669a9111be6d0f6a (patch) | |
tree | 269c6029508fcf2e2b6c773fee5094bac5c8f9d4 /fs/f2fs/inode.c | |
parent | e7547daccd6a37522f0af74ec4b5a3036f3dd328 (diff) | |
download | linux-72840cccc0a1a0a0dc1bb27b669a9111be6d0f6a.tar.gz linux-72840cccc0a1a0a0dc1bb27b669a9111be6d0f6a.tar.bz2 linux-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/inode.c')
-rw-r--r-- | fs/f2fs/inode.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c index 086f201f15a0..c845c16f97d0 100644 --- a/fs/f2fs/inode.c +++ b/fs/f2fs/inode.c @@ -392,8 +392,6 @@ static int do_read_inode(struct inode *inode) fi->i_pino = le32_to_cpu(ri->i_pino); fi->i_dir_level = ri->i_dir_level; - f2fs_init_extent_tree(inode, node_page); - get_inline_info(inode, ri); fi->i_extra_isize = f2fs_has_extra_attr(inode) ? @@ -479,6 +477,10 @@ static int do_read_inode(struct inode *inode) } init_idisk_time(inode); + + /* Need all the flag bits */ + f2fs_init_read_extent_tree(inode, node_page); + f2fs_put_page(node_page, 1); stat_inc_inline_xattr(inode); |