From: Nikolay Borisov Date: Wed, 13 Jul 2016 13:19:14 +0000 (+0300) Subject: btrfs: Ratelimit "no csum found" info message X-Git-Tag: v5.15~12838^2~27^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aee133afcdf77641be66c5c9f32975feca8e6bd0;p=platform%2Fkernel%2Flinux-starfive.git btrfs: Ratelimit "no csum found" info message Recently during a crash it became apparent that this particular message can be printed so many times that it causes the softlockup detector to trigger. Fix it by ratelimiting it. Signed-off-by: Nikolay Borisov Signed-off-by: David Sterba --- diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c index 62a81ee..6b58d06 100644 --- a/fs/btrfs/file-item.c +++ b/fs/btrfs/file-item.c @@ -250,7 +250,7 @@ static int __btrfs_lookup_bio_sums(struct btrfs_root *root, offset + root->sectorsize - 1, EXTENT_NODATASUM); } else { - btrfs_info(BTRFS_I(inode)->root->fs_info, + btrfs_info_rl(BTRFS_I(inode)->root->fs_info, "no csum found for inode %llu start %llu", btrfs_ino(inode), offset); }