diff options
author | Christoph Hellwig <hch@lst.de> | 2020-02-21 07:34:48 -0800 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-03-02 20:55:51 -0800 |
commit | 4ab45e259f31cc063805c659e3c203577722b701 (patch) | |
tree | f328961e3b0d7cc600d1f5e86c7db0dc65ac73b3 | |
parent | 13b1f811b14e084579aeb4de89e59a2942d2c2d8 (diff) | |
download | linux-4ab45e259f31cc063805c659e3c203577722b701.tar.gz linux-4ab45e259f31cc063805c659e3c203577722b701.tar.bz2 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>
-rw-r--r-- | fs/xfs/xfs_aops.c | 2 |
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); |