]> git.hungrycats.org Git - linux/commitdiff
btrfs: Ratelimit "no csum found" info message
authorNikolay Borisov <kernel@kyup.com>
Wed, 13 Jul 2016 13:19:14 +0000 (16:19 +0300)
committerZygo Blaxell <zblaxell@waya.furryterror.org>
Wed, 17 Aug 2016 02:23:42 +0000 (22:23 -0400)
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 <kernel@kyup.com>
Signed-off-by: David Sterba <dsterba@suse.com>
(cherry picked from commit aee133afcdf77641be66c5c9f32975feca8e6bd0)

fs/btrfs/file-item.c

index 16f4bcfa8f16dc6c4a25973e5b3ef62ba864ca6e..26dc0f20f9074e54fadbc70bb08d32d559da294d 100644 (file)
@@ -249,7 +249,7 @@ static int __btrfs_lookup_bio_sums(struct btrfs_root *root,
                                                offset + root->sectorsize - 1,
                                                EXTENT_NODATASUM, GFP_NOFS);
                                } 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);
                                }