]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: ratelimit xfs_discard_page messages
authorChristoph Hellwig <hch@lst.de>
Fri, 21 Feb 2020 15:34:48 +0000 (07:34 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 3 Mar 2020 04:55:51 +0000 (20:55 -0800)
commit49a3d0e793a6351bd02ab7af092a0e40101b3157
treef328961e3b0d7cc600d1f5e86c7db0dc65ac73b3
parentea12afc019fcd47cf2a9eee5b1941a3cd71a74bf
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>
fs/xfs/xfs_aops.c