summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_error.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-01-05 17:46:09 -0800
committerDarrick J. Wong <djwong@kernel.org>2021-03-25 17:08:54 -0700
commitea5a9dbd8c77595e374f67958f359a2b61ac9718 (patch)
tree060b8d6d6d51660648a877d527a47a3656b36e05 /fs/xfs/xfs_error.c
parent077f94200f28630fc14e2347cf89d47135f878ef (diff)
xfs: whine to dmesg when we encounter errorsdjwong-wtf_2021-03-25
Forward everything scrub whines about to dmesg. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_error.c')
-rw-r--r--fs/xfs/xfs_error.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_error.c b/fs/xfs/xfs_error.c
index 9b6c38d0671b..0afcd14825a0 100644
--- a/fs/xfs/xfs_error.c
+++ b/fs/xfs/xfs_error.c
@@ -267,9 +267,11 @@ xfs_errortag_test(
if (!randfactor || prandom_u32() % randfactor)
return false;
+#if 0
xfs_warn_ratelimited(mp,
"Injecting error (%s) at file %s, line %d, on filesystem \"%s\"",
expression, file, line, mp->m_super->s_id);
+#endif
return true;
}