From 9f116ed5d17a36ebe8b0569ded80786c304fea0c Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Fri, 12 Apr 2024 07:10:34 +0200 Subject: [PATCH] xfs: move inode number validation to xfs_meta_iget Source kernel commit: 14eb1a7de9f4531fa27923e36e4f4da64dc38b69 Verifying the inode number in iget makes more sense than in lookup. (shouldn't we be doing this for all inodes in xfs_iget?) Signed-off-by: Christoph Hellwig --- libxfs/xfs_imeta.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libxfs/xfs_imeta.c b/libxfs/xfs_imeta.c index e8dc94938..ea75989de 100644 --- a/libxfs/xfs_imeta.c +++ b/libxfs/xfs_imeta.c @@ -874,11 +874,6 @@ xfs_imeta_lookup( if (error) return error; - if (!xfs_imeta_verify(mp, ino)) { - xfs_fs_mark_sick(mp, XFS_SICK_FS_METADIR); - return -EFSCORRUPTED; - } - *inop = ino; return 0; } -- 2.50.1