summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-05-27 00:12:55 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:10:02 +0200
commitc26463ce9940d150dfeaac0a1a0747db9b1ca600 (patch)
treed5f18e9bcf9ecbedc1ac725f6fb780edaf944f82
parentbcachefs: Don't reuse reflink btree keyspace (diff)
downloadlinux-c26463ce9940d150dfeaac0a1a0747db9b1ca600.tar.xz
linux-c26463ce9940d150dfeaac0a1a0747db9b1ca600.zip
bcachefs: Fix move_extent_fail counter
fail counters need to be events, not numbers of sectors - or the calculations the tests use for determining if we've had too many slowpath events don't work. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r--fs/bcachefs/data_update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/data_update.c b/fs/bcachefs/data_update.c
index c709538ce9c2..ae7e60d6e583 100644
--- a/fs/bcachefs/data_update.c
+++ b/fs/bcachefs/data_update.c
@@ -374,7 +374,7 @@ nowork:
&m->ctxt->stats->sectors_raced);
}
- this_cpu_add(c->counters[BCH_COUNTER_move_extent_fail], new->k.size);
+ this_cpu_inc(c->counters[BCH_COUNTER_move_extent_fail]);
bch2_btree_iter_advance(&iter);
goto next;