]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
f2fs: remove redundant sanity check in sanity_check_inode()
authorChao Yu <chao@kernel.org>
Thu, 6 Jun 2024 09:55:51 +0000 (17:55 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 24 Jun 2024 17:50:21 +0000 (17:50 +0000)
Commit f240d3aaf5a1 ("f2fs: do more sanity check on inode") missed
to remove redundant sanity check on flexible_inline_xattr flag, fix
it.

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

index dbfebbddf6754104eec0243c574c6426fc5fe7e9..7a3e2458b2d99a781bb4cefd1387a298410f86cb 100644 (file)
@@ -313,10 +313,6 @@ static bool sanity_check_inode(struct inode *inode, struct page *node_page)
                        if (!sanity_check_compress_inode(inode, ri))
                                return false;
                }
-       } else if (f2fs_sb_has_flexible_inline_xattr(sbi)) {
-               f2fs_warn(sbi, "%s: corrupted inode ino=%lx, run fsck to fix.",
-                         __func__, inode->i_ino);
-               return false;
        }
 
        if (!f2fs_sb_has_extra_attr(sbi)) {