summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_aops.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-02-21 16:34:48 +0100
committerDarrick J. Wong <darrick.wong@oracle.com>2020-03-03 05:55:51 +0100
commit4ab45e259f31cc063805c659e3c203577722b701 (patch)
treef328961e3b0d7cc600d1f5e86c7db0dc65ac73b3 /fs/xfs/xfs_aops.c
parentxfs: ratelimit xfs_buf_ioerror_alert messages (diff)
downloadlinux-4ab45e259f31cc063805c659e3c203577722b701.tar.xz
linux-4ab45e259f31cc063805c659e3c203577722b701.zip
xfs: ratelimit xfs_discard_page messages
Use printk_ratelimit() to limit the amount of messages printed from xfs_discard_page. Without that a failing device causes a large number of errors that doesn't really help debugging the underling issue. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_aops.c')
-rw-r--r--fs/xfs/xfs_aops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c
index 58e937be24ce..9d9cebf18726 100644
--- a/fs/xfs/xfs_aops.c
+++ b/fs/xfs/xfs_aops.c
@@ -539,7 +539,7 @@ xfs_discard_page(
if (XFS_FORCED_SHUTDOWN(mp))
goto out_invalidate;
- xfs_alert(mp,
+ xfs_alert_ratelimited(mp,
"page discard on page "PTR_FMT", inode 0x%llx, offset %llu.",
page, ip->i_ino, offset);