diff options
-rw-r--r-- | fs/btrfs/scrub.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index 550de89a8661..3e2755eb0f08 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c | |||
@@ -3012,6 +3012,9 @@ static noinline_for_stack int scrub_raid56_parity(struct scrub_ctx *sctx, | |||
3012 | logic_start + map->stripe_len)) { | 3012 | logic_start + map->stripe_len)) { |
3013 | btrfs_err(fs_info, "scrub: tree block %llu spanning stripes, ignored. logical=%llu", | 3013 | btrfs_err(fs_info, "scrub: tree block %llu spanning stripes, ignored. logical=%llu", |
3014 | key.objectid, logic_start); | 3014 | key.objectid, logic_start); |
3015 | spin_lock(&sctx->stat_lock); | ||
3016 | sctx->stat.uncorrectable_errors++; | ||
3017 | spin_unlock(&sctx->stat_lock); | ||
3015 | goto next; | 3018 | goto next; |
3016 | } | 3019 | } |
3017 | again: | 3020 | again: |
@@ -3361,6 +3364,9 @@ static noinline_for_stack int scrub_stripe(struct scrub_ctx *sctx, | |||
3361 | "scrub: tree block %llu spanning " | 3364 | "scrub: tree block %llu spanning " |
3362 | "stripes, ignored. logical=%llu", | 3365 | "stripes, ignored. logical=%llu", |
3363 | key.objectid, logical); | 3366 | key.objectid, logical); |
3367 | spin_lock(&sctx->stat_lock); | ||
3368 | sctx->stat.uncorrectable_errors++; | ||
3369 | spin_unlock(&sctx->stat_lock); | ||
3364 | goto next; | 3370 | goto next; |
3365 | } | 3371 | } |
3366 | 3372 | ||