summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2015-10-08 10:43:10 +0200
committerDavid Sterba <dsterba@suse.com>2015-10-08 11:07:55 +0200
commitb14af3b46f214c5e927dacf58a994fa3c4cb20dc (patch)
tree551ed8634e1506f8e75391107e788df8f03b6903 /fs/btrfs/volumes.c
parent24aa6b41d4611b14ad0fb89fa0b899ae9ab7005c (diff)
downloadlinux-b14af3b46f214c5e927dacf58a994fa3c4cb20dc.tar.gz
linux-b14af3b46f214c5e927dacf58a994fa3c4cb20dc.tar.bz2
linux-b14af3b46f214c5e927dacf58a994fa3c4cb20dc.zip
btrfs: switch message printers to ratelimited _in_rcu variants
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index b0dae14242e8..4f80986dbf3c 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -6675,8 +6675,8 @@ static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev)
{
if (!dev->dev_stats_valid)
return;
- printk_ratelimited_in_rcu(KERN_ERR "BTRFS: "
- "bdev %s errs: wr %u, rd %u, flush %u, corrupt %u, gen %u\n",
+ btrfs_err_rl_in_rcu(dev->dev_root->fs_info,
+ "bdev %s errs: wr %u, rd %u, flush %u, corrupt %u, gen %u",
rcu_str_deref(dev->name),
btrfs_dev_stat_read(dev, BTRFS_DEV_STAT_WRITE_ERRS),
btrfs_dev_stat_read(dev, BTRFS_DEV_STAT_READ_ERRS),