f2fs: fix to do sanity check on extent cache correctly
authorChao Yu <chao@kernel.org>
Tue, 7 Feb 2023 13:48:08 +0000 (21:48 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 9 Feb 2023 17:17:30 +0000 (09:17 -0800)
commit269d119481008cd725ce32553332593c0ecfc91c
treef7fbbfb1a263d5215d77b31accb3084143758d67
parent9e615dbba41e2a56bb4ae50c56f4c10294fa16b8
f2fs: fix to do sanity check on extent cache correctly

In do_read_inode(), sanity check for extent cache 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/extent_cache.c
fs/f2fs/f2fs.h
fs/f2fs/inode.c