]> git.itanic.dy.fi Git - linux-stable/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)
commit514728ffc05b8e4ec30299c820f6186daf88b10e
treeb3280315a3baa30649be6bd43ed9ef03aeede801
parent85eb8b61dd4cfc7a839a0e86287b92ca6193444e
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