f2fs: fix to do sanity check on extent cache correctly
authorChao Yu <chao@kernel.org>
Mon, 9 Jan 2023 03:49:20 +0000 (11:49 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 31 Jan 2023 18:47:45 +0000 (10:47 -0800)
commitd48a7b3a72f121655d95b5157c32c7d555e44c05
treefd16f0a18738687e624ae0525219ea482d5cb24f
parent71a298ca208e48bd69e1bf61a22a762624885093
f2fs: fix to do sanity check on extent cache correctly

In do_read_inode(), sanity_check_inode() should be called after
f2fs_init_read_extent_tree(), fix it.

Fixes: 72840cccc0a1 ("f2fs: allocate the extent_cache by default")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/inode.c