summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_ialloc.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-02-22 23:32:43 +0300
committerDarrick J. Wong <djwong@kernel.org>2024-02-22 23:32:43 +0300
commitbaf44fa5c37a2357a7ae92889f74bc1824f33fd4 (patch)
treec50e1ee0bb1048aebb8049e9ed85247f3c5cd773 /fs/xfs/libxfs/xfs_ialloc.c
parentb280fb0cbf48cea962d90bbe9c080ee1e77c3b4c (diff)
downloadlinux-baf44fa5c37a2357a7ae92889f74bc1824f33fd4.tar.xz
xfs: report inode corruption errors to the health system
Whenever we encounter corrupt inode records, we should report that to the health monitoring system for later reporting. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/libxfs/xfs_ialloc.c')
-rw-r--r--fs/xfs/libxfs/xfs_ialloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_ialloc.c b/fs/xfs/libxfs/xfs_ialloc.c
index 91584e96f05f..56f82b8af07e 100644
--- a/fs/xfs/libxfs/xfs_ialloc.c
+++ b/fs/xfs/libxfs/xfs_ialloc.c
@@ -2999,6 +2999,7 @@ xfs_ialloc_check_shrink(
goto out;
if (!has) {
+ xfs_ag_mark_sick(pag, XFS_SICK_AG_INOBT);
error = -EFSCORRUPTED;
goto out;
}