Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aee133af authored by Nikolay Borisov's avatar Nikolay Borisov Committed by David Sterba
Browse files

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: default avatarNikolay Borisov <kernel@kyup.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 35f4e5e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -250,7 +250,7 @@ static int __btrfs_lookup_bio_sums(struct btrfs_root *root,
						offset + root->sectorsize - 1,
						offset + root->sectorsize - 1,
						EXTENT_NODATASUM);
						EXTENT_NODATASUM);
				} else {
				} 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",
						   "no csum found for inode %llu start %llu",
					       btrfs_ino(inode), offset);
					       btrfs_ino(inode), offset);
				}
				}