diff options
| author | 2024-02-22 12:32:43 -0800 | |
|---|---|---|
| committer | 2024-02-22 12:32:43 -0800 | |
| commit | baf44fa5c37a2357a7ae92889f74bc1824f33fd4 (patch) | |
| tree | c50e1ee0bb1048aebb8049e9ed85247f3c5cd773 /fs/xfs/libxfs/xfs_ialloc.c | |
| parent | xfs: report symlink block corruption errors to the health system (diff) | |
| download | linux-rng-baf44fa5c37a2357a7ae92889f74bc1824f33fd4.tar.xz linux-rng-baf44fa5c37a2357a7ae92889f74bc1824f33fd4.zip | |
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.c | 1 |
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; } |
