Skip to contentSkip to conversation

f2fs: remove redundant sanity check in sanity_check_inode()

PATCH Applied Chao Yu 2 participants 2 messages Jun 6, 2024 – Jul 3, 2024 F2FS file system

lore
Share & tools
lore

Chao Yu

author maintainer
#0 lore raw

PATCH 1/1 f2fs: remove redundant sanity check in sanity_check_inode()

Commit f240d3aaf5a1 ("f2fs: do more sanity check on inode") missed to remove redundant sanity check on flexible_inline_xattr flag, fix it.

---
 fs/f2fs/inode.c | 4 ----
 1 file changed, 4 deletions(-)
fs/f2fs/inode.c +0 -4
index 87982e06bbe7..a3456b29b5ff 100644
@@ -312,10 +312,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)) {
Signature · 1 line
2.40.1
#1 lore raw
This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <[email protected]>:

Hello:

This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <[email protected]>:

Quoted 8 lines · On Thu, 6 Jun 2024 17:55:51 +0800 you wrote:

Commit f240d3aaf5a1 ("f2fs: do more sanity check on inode") missed to remove redundant sanity check on flexible_inline_xattr flag, fix it.

---
 fs/f2fs/inode.c | 4 ----
 1 file changed, 4 deletions(-)

Here is the summary with links:
- [f2fs-dev] f2fs: remove redundant sanity check in sanity_check_inode()

    https://git.kernel.org/jaegeuk/f2fs/c/388a2a0640e1

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html