]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: inode: 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:53:59 +0000 (11:53 +0200)
commitd472a996de95c5d9102b2653769ba1de3867c114
treeb3280315a3baa30649be6bd43ed9ef03aeede801
parentd7ad9c6568a3e43131f9b44e8c63236ada999658
f2fs: inode: fix to do sanity check on extent cache correctly

commit 269d119481008cd725ce32553332593c0ecfc91c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/extent_cache.c
fs/f2fs/f2fs.h
fs/f2fs/inode.c