From: Anand Jain Date: Tue, 3 Jul 2012 04:05:21 +0000 (-0600) Subject: btrfs read error corrected message floods the console during recovery X-Git-Tag: v3.6-rc4~6^2~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5b025d510664382f9a197f7e7fb9fc60fe209bc;p=platform%2Fkernel%2Flinux-stable.git btrfs read error corrected message floods the console during recovery Changing printk_in_rcu to printk_ratelimited_in_rcu will suffice Signed-off-by: Josef Bacik --- diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 01c21b6..f08206f 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -1918,7 +1918,7 @@ int repair_io_failure(struct btrfs_mapping_tree *map_tree, u64 start, return -EIO; } - printk_in_rcu(KERN_INFO "btrfs read error corrected: ino %lu off %llu " + printk_ratelimited_in_rcu(KERN_INFO "btrfs read error corrected: ino %lu off %llu " "(dev %s sector %llu)\n", page->mapping->host->i_ino, start, rcu_str_deref(dev->name), sector);