]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:53:59 +0000 (11:53 +0200)
commit85eb8b61dd4cfc7a839a0e86287b92ca6193444e
tree2d06834629fdaecbd34f8580af365c016846225e
parent18ecffd03626ba57c4c899e0b7953479b463372d
f2fs: fix to do sanity check on extent cache correctly

commit d48a7b3a72f121655d95b5157c32c7d555e44c05 upstream.

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