summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_rtalloc.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-09-01 11:19:43 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-09-17 18:55:24 -0700
commitde4cfc3f472289fdae99ea8f78901f36c3513483 (patch)
treed4c6d26af1a2be02aa1e9191c2cf83b1a9684540 /fs/xfs/xfs_rtalloc.c
parent0276aeeda0035cc21ae1ca1a99e814fee6ac104b (diff)
xfs: report realtime refcount btree corruption errors to the health system
Whenever we encounter corrupt realtime refcount btree blocks, we should report that to the health monitoring system for later reporting. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_rtalloc.c')
-rw-r--r--fs/xfs/xfs_rtalloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_rtalloc.c b/fs/xfs/xfs_rtalloc.c
index 0297d1e4da5d..15f5a405d7d4 100644
--- a/fs/xfs/xfs_rtalloc.c
+++ b/fs/xfs/xfs_rtalloc.c
@@ -1514,6 +1514,7 @@ xfs_rtmount_inodes(
if (XFS_IS_CORRUPT(mp,
mp->m_rrefcountip->i_df.if_format !=
XFS_DINODE_FMT_REFCOUNT)) {
+ xfs_rt_mark_sick(mp, XFS_SICK_RT_REFCNTBT);
error = -EFSCORRUPTED;
goto out_rrefcount;
}