aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2012-07-03 00:05:21 -0400
committerChris Mason <chris.mason@fusionio.com>2012-07-23 16:28:04 -0400
commitd5b025d510664382f9a197f7e7fb9fc60fe209bc (patch)
tree00c20ab5716a402d35d378fe4453f9879ea261ef
parente6466e354a5c23717325adecf387f93be4b9c830 (diff)
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 <jbacik@fusionio.com>
-rw-r--r--fs/btrfs/extent_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 01c21b6c6d43..f08206fcfb22 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,
1918 return -EIO; 1918 return -EIO;
1919 } 1919 }
1920 1920
1921 printk_in_rcu(KERN_INFO "btrfs read error corrected: ino %lu off %llu " 1921 printk_ratelimited_in_rcu(KERN_INFO "btrfs read error corrected: ino %lu off %llu "
1922 "(dev %s sector %llu)\n", page->mapping->host->i_ino, 1922 "(dev %s sector %llu)\n", page->mapping->host->i_ino,
1923 start, rcu_str_deref(dev->name), sector); 1923 start, rcu_str_deref(dev->name), sector);
1924 1924