]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
f2fs: detect more inconsistent cases in sanity_check_node_footer()
authorChao Yu <chao@kernel.org>
Mon, 12 Jan 2026 07:49:17 +0000 (15:49 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 17 Jan 2026 00:00:35 +0000 (00:00 +0000)
commit93ffb6c28ff180560d2d7313ac106efcd9e012b8
tree39fcf49c84d61907b3e1472d1703939d255f67dc
parent50ac3ecd8e05b6bcc350c71a4307d40c030ec7e4
f2fs: detect more inconsistent cases in sanity_check_node_footer()

Let's enhance sanity_check_node_footer() to detect more inconsistent
cases as below:

Node Type Node Footer Info
=================== =============================
NODE_TYPE_REGULAR inode = true and xnode = true
NODE_TYPE_INODE inode = false or xnode = true
NODE_TYPE_XATTR inode = true or xnode = false
NODE_TYPE_NON_INODE inode = false

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