]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
f2fs: fix to do sanity check on nat entry of quota inode
authorChao Yu <chao@kernel.org>
Fri, 19 Dec 2025 02:51:04 +0000 (10:51 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 1 Jan 2026 03:26:56 +0000 (03:26 +0000)
commit3cb396a2c7905c3daed0b6b2c5806a95386f4581
treed8dc1cab940b6e83c8b684ec065386f095792953
parent3250bd41d95ccdaa157ad5f128c1596e353ee7e0
f2fs: fix to do sanity check on nat entry of quota inode

As Zhiguo reported, nat entry of quota inode could be corrupted:

"ino/block_addr=NULL_ADDR in nid=4 entry"

We'd better to do sanity check on quota inode to detect and record
nat.blk_addr inconsistency, so that we can have a chance to repair
it w/ later fsck.

Reported-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
Signed-off-by: Chao Yu <chao@kernel.org>
Reviewed-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/inode.c
fs/f2fs/node.c