diff options
author | David Sterba <dsterba@suse.com> | 2015-10-08 11:01:36 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2015-10-08 13:04:06 +0200 |
commit | 9464732266862f6044e4708dca6c4b2a83dd937b (patch) | |
tree | c7281d7db39dd11f9d63cc18415df9b57936fa8d /fs/btrfs/scrub.c | |
parent | btrfs: introduce ratelimited variants of message printing functions (diff) | |
download | linux-9464732266862f6044e4708dca6c4b2a83dd937b.tar.xz linux-9464732266862f6044e4708dca6c4b2a83dd937b.zip |
btrfs: switch message printers to ratelimited variants
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/scrub.c')
-rw-r--r-- | fs/btrfs/scrub.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index bce86f8772e1..550de89a8661 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c @@ -1626,9 +1626,9 @@ static int scrub_repair_page_from_good_copy(struct scrub_block *sblock_bad, int ret; if (!page_bad->dev->bdev) { - printk_ratelimited(KERN_WARNING "BTRFS: " + btrfs_warn_rl(sblock_bad->sctx->dev_root->fs_info, "scrub_repair_page_from_good_copy(bdev == NULL) " - "is unexpected!\n"); + "is unexpected"); return -EIO; } @@ -4375,8 +4375,8 @@ static int write_page_nocow(struct scrub_ctx *sctx, if (!dev) return -EIO; if (!dev->bdev) { - printk_ratelimited(KERN_WARNING - "BTRFS: scrub write_page_nocow(bdev == NULL) is unexpected!\n"); + btrfs_warn_rl(dev->dev_root->fs_info, + "scrub write_page_nocow(bdev == NULL) is unexpected"); return -EIO; } bio = btrfs_io_bio_alloc(GFP_NOFS, 1); |