diff options
-rw-r--r-- | fs/btrfs/disk-io.c | 4 | ||||
-rw-r--r-- | fs/btrfs/extent_io.c | 4 | ||||
-rw-r--r-- | fs/btrfs/scrub.c | 20 | ||||
-rw-r--r-- | fs/btrfs/volumes.c | 4 |
4 files changed, 16 insertions, 16 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 295795aebe0b..ba41faf623ce 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -3175,8 +3175,8 @@ static void btrfs_end_buffer_write_sync(struct buffer_head *bh, int uptodate) | |||
3175 | struct btrfs_device *device = (struct btrfs_device *) | 3175 | struct btrfs_device *device = (struct btrfs_device *) |
3176 | bh->b_private; | 3176 | bh->b_private; |
3177 | 3177 | ||
3178 | printk_ratelimited_in_rcu(KERN_WARNING "BTRFS: lost page write due to " | 3178 | btrfs_warn_rl_in_rcu(device->dev_root->fs_info, |
3179 | "I/O error on %s\n", | 3179 | "lost page write due to IO error on %s", |
3180 | rcu_str_deref(device->name)); | 3180 | rcu_str_deref(device->name)); |
3181 | /* note, we dont' set_buffer_write_io_error because we have | 3181 | /* note, we dont' set_buffer_write_io_error because we have |
3182 | * our own ways of dealing with the IO errors | 3182 | * our own ways of dealing with the IO errors |
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index e2357e31609a..58b9ccdfe2e9 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c | |||
@@ -2078,8 +2078,8 @@ int repair_io_failure(struct inode *inode, u64 start, u64 length, u64 logical, | |||
2078 | return -EIO; | 2078 | return -EIO; |
2079 | } | 2079 | } |
2080 | 2080 | ||
2081 | printk_ratelimited_in_rcu(KERN_INFO | 2081 | btrfs_info_rl_in_rcu(fs_info, |
2082 | "BTRFS: read error corrected: ino %llu off %llu (dev %s sector %llu)\n", | 2082 | "read error corrected: ino %llu off %llu (dev %s sector %llu)", |
2083 | btrfs_ino(inode), start, | 2083 | btrfs_ino(inode), start, |
2084 | rcu_str_deref(dev->name), sector); | 2084 | rcu_str_deref(dev->name), sector); |
2085 | bio_put(bio); | 2085 | bio_put(bio); |
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index 26cfbb0b867c..bce86f8772e1 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c | |||
@@ -850,8 +850,8 @@ out: | |||
850 | btrfs_dev_replace_stats_inc( | 850 | btrfs_dev_replace_stats_inc( |
851 | &sctx->dev_root->fs_info->dev_replace. | 851 | &sctx->dev_root->fs_info->dev_replace. |
852 | num_uncorrectable_read_errors); | 852 | num_uncorrectable_read_errors); |
853 | printk_ratelimited_in_rcu(KERN_ERR "BTRFS: " | 853 | btrfs_err_rl_in_rcu(sctx->dev_root->fs_info, |
854 | "unable to fixup (nodatasum) error at logical %llu on dev %s\n", | 854 | "unable to fixup (nodatasum) error at logical %llu on dev %s", |
855 | fixup->logical, rcu_str_deref(fixup->dev->name)); | 855 | fixup->logical, rcu_str_deref(fixup->dev->name)); |
856 | } | 856 | } |
857 | 857 | ||
@@ -1230,8 +1230,8 @@ corrected_error: | |||
1230 | sctx->stat.corrected_errors++; | 1230 | sctx->stat.corrected_errors++; |
1231 | sblock_to_check->data_corrected = 1; | 1231 | sblock_to_check->data_corrected = 1; |
1232 | spin_unlock(&sctx->stat_lock); | 1232 | spin_unlock(&sctx->stat_lock); |
1233 | printk_ratelimited_in_rcu(KERN_ERR | 1233 | btrfs_err_rl_in_rcu(fs_info, |
1234 | "BTRFS: fixed up error at logical %llu on dev %s\n", | 1234 | "fixed up error at logical %llu on dev %s", |
1235 | logical, rcu_str_deref(dev->name)); | 1235 | logical, rcu_str_deref(dev->name)); |
1236 | } | 1236 | } |
1237 | } else { | 1237 | } else { |
@@ -1239,8 +1239,8 @@ did_not_correct_error: | |||
1239 | spin_lock(&sctx->stat_lock); | 1239 | spin_lock(&sctx->stat_lock); |
1240 | sctx->stat.uncorrectable_errors++; | 1240 | sctx->stat.uncorrectable_errors++; |
1241 | spin_unlock(&sctx->stat_lock); | 1241 | spin_unlock(&sctx->stat_lock); |
1242 | printk_ratelimited_in_rcu(KERN_ERR | 1242 | btrfs_err_rl_in_rcu(fs_info, |
1243 | "BTRFS: unable to fixup (regular) error at logical %llu on dev %s\n", | 1243 | "unable to fixup (regular) error at logical %llu on dev %s", |
1244 | logical, rcu_str_deref(dev->name)); | 1244 | logical, rcu_str_deref(dev->name)); |
1245 | } | 1245 | } |
1246 | 1246 | ||
@@ -2201,15 +2201,15 @@ static void scrub_missing_raid56_worker(struct btrfs_work *work) | |||
2201 | spin_lock(&sctx->stat_lock); | 2201 | spin_lock(&sctx->stat_lock); |
2202 | sctx->stat.read_errors++; | 2202 | sctx->stat.read_errors++; |
2203 | spin_unlock(&sctx->stat_lock); | 2203 | spin_unlock(&sctx->stat_lock); |
2204 | printk_ratelimited_in_rcu(KERN_ERR | 2204 | btrfs_err_rl_in_rcu(fs_info, |
2205 | "BTRFS: I/O error rebulding logical %llu for dev %s\n", | 2205 | "IO error rebuilding logical %llu for dev %s", |
2206 | logical, rcu_str_deref(dev->name)); | 2206 | logical, rcu_str_deref(dev->name)); |
2207 | } else if (sblock->header_error || sblock->checksum_error) { | 2207 | } else if (sblock->header_error || sblock->checksum_error) { |
2208 | spin_lock(&sctx->stat_lock); | 2208 | spin_lock(&sctx->stat_lock); |
2209 | sctx->stat.uncorrectable_errors++; | 2209 | sctx->stat.uncorrectable_errors++; |
2210 | spin_unlock(&sctx->stat_lock); | 2210 | spin_unlock(&sctx->stat_lock); |
2211 | printk_ratelimited_in_rcu(KERN_ERR | 2211 | btrfs_err_rl_in_rcu(fs_info, |
2212 | "BTRFS: failed to rebuild valid logical %llu for dev %s\n", | 2212 | "failed to rebuild valid logical %llu for dev %s", |
2213 | logical, rcu_str_deref(dev->name)); | 2213 | logical, rcu_str_deref(dev->name)); |
2214 | } else { | 2214 | } else { |
2215 | scrub_write_block_to_dev_replace(sblock); | 2215 | scrub_write_block_to_dev_replace(sblock); |
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) | |||
6675 | { | 6675 | { |
6676 | if (!dev->dev_stats_valid) | 6676 | if (!dev->dev_stats_valid) |
6677 | return; | 6677 | return; |
6678 | printk_ratelimited_in_rcu(KERN_ERR "BTRFS: " | 6678 | btrfs_err_rl_in_rcu(dev->dev_root->fs_info, |
6679 | "bdev %s errs: wr %u, rd %u, flush %u, corrupt %u, gen %u\n", | 6679 | "bdev %s errs: wr %u, rd %u, flush %u, corrupt %u, gen %u", |
6680 | rcu_str_deref(dev->name), | 6680 | rcu_str_deref(dev->name), |
6681 | btrfs_dev_stat_read(dev, BTRFS_DEV_STAT_WRITE_ERRS), | 6681 | btrfs_dev_stat_read(dev, BTRFS_DEV_STAT_WRITE_ERRS), |
6682 | btrfs_dev_stat_read(dev, BTRFS_DEV_STAT_READ_ERRS), | 6682 | btrfs_dev_stat_read(dev, BTRFS_DEV_STAT_READ_ERRS), |