aboutsummaryrefslogtreecommitdiff
path: root/fs/bcachefs/data_update.c
diff options
context:
space:
mode:
authorGravatar Kent Overstreet <kent.overstreet@linux.dev> 2023-11-27 22:37:27 -0500
committerGravatar Kent Overstreet <kent.overstreet@linux.dev> 2024-01-01 11:47:39 -0500
commit74644030098a0c4932e194fa1b2fa052226f3868 (patch)
tree8e1b35c2d9468810a419c58a421f1994162e9795 /fs/bcachefs/data_update.c
parentbcachefs: bch2_btree_write_buffer_flush() -> bch2_btree_write_buffer_tryflush() (diff)
downloadlinux-74644030098a0c4932e194fa1b2fa052226f3868.tar.gz
linux-74644030098a0c4932e194fa1b2fa052226f3868.tar.bz2
linux-74644030098a0c4932e194fa1b2fa052226f3868.zip
bcachefs: count_event()
Small helper for event counters. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/data_update.c')
-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 488279b3d08e..59b558c25977 100644
--- a/fs/bcachefs/data_update.c
+++ b/fs/bcachefs/data_update.c
@@ -321,7 +321,7 @@ nowork:
&m->stats->sectors_raced);
}
- this_cpu_inc(c->counters[BCH_COUNTER_move_extent_fail]);
+ count_event(c, move_extent_fail);
bch2_btree_iter_advance(&iter);
goto next;