diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-02-22 12:32:09 -0800 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-02-22 12:32:09 -0800 |
commit | a78d10f45b23149f1b23019a4f4fb57dcf852e39 (patch) | |
tree | 5ee00103d0159f3bd5bd03689ffb48ff52073871 /fs/xfs/libxfs/xfs_ialloc.c | |
parent | 1196f3f5abf736809cafac1696967ac318a44ca0 (diff) | |
download | linux-a78d10f45b23149f1b23019a4f4fb57dcf852e39.tar.gz linux-a78d10f45b23149f1b23019a4f4fb57dcf852e39.tar.bz2 linux-a78d10f45b23149f1b23019a4f4fb57dcf852e39.zip |
xfs: report btree block corruption errors to the health system
Whenever we encounter corrupt btree blocks, 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 2531b4c08915..91584e96f05f 100644 --- a/fs/xfs/libxfs/xfs_ialloc.c +++ b/fs/xfs/libxfs/xfs_ialloc.c @@ -148,6 +148,7 @@ xfs_inobt_complain_bad_rec( "start inode 0x%x, count 0x%x, free 0x%x freemask 0x%llx, holemask 0x%x", irec->ir_startino, irec->ir_count, irec->ir_freecount, irec->ir_free, irec->ir_holemask); + xfs_btree_mark_sick(cur); return -EFSCORRUPTED; } |