Skip to content

Commit

Permalink
btrfs read error corrected message floods the console during recovery
Browse files Browse the repository at this point in the history
Changing printk_in_rcu to printk_ratelimited_in_rcu will suffice

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
  • Loading branch information
Anand Jain authored and Chris Mason committed Jul 23, 2012
1 parent e6466e3 commit d5b025d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/extent_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit d5b025d

Please sign in to comment.