]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: print message if fscorrupted was found in f2fs_new_node_page()
authorChao Yu <chao@kernel.org>
Wed, 20 Nov 2024 06:58:50 +0000 (14:58 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:04:05 +0000 (20:04 +0100)
commit6d41a2d5c168c3fcfa10fd35428bd146652a52cf
treee95e308fb5201777cc35f77a6c4e502046e1b034
parent1f51ae217d09c361ede900b94735a6d2df6c0344
f2fs: print message if fscorrupted was found in f2fs_new_node_page()

[ Upstream commit 81520c684ca67aea6a589461a3caebb9b11dcc90 ]

If fs corruption occurs in f2fs_new_node_page(), let's print
more information about corrupted metadata into kernel log.

Meanwhile, it updates to record ERROR_INCONSISTENT_NAT instead
of ERROR_INVALID_BLKADDR if blkaddr in nat entry is not
NULL_ADDR which means nat bitmap and nat entry is inconsistent.

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/node.c