diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-05-26 18:12:55 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:02 -0400 |
commit | c26463ce9940d150dfeaac0a1a0747db9b1ca600 (patch) | |
tree | d5f18e9bcf9ecbedc1ac725f6fb780edaf944f82 /fs/bcachefs/data_update.c | |
parent | fc0ee376bb5b08844198fba13fb809102afd0b29 (diff) | |
download | linux-c26463ce9940d150dfeaac0a1a0747db9b1ca600.tar.gz linux-c26463ce9940d150dfeaac0a1a0747db9b1ca600.tar.bz2 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>
Diffstat (limited to 'fs/bcachefs/data_update.c')
-rw-r--r-- | fs/bcachefs/data_update.c | 2 |
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; |