diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-28 06:37:27 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 19:47:39 +0300 |
commit | 74644030098a0c4932e194fa1b2fa052226f3868 (patch) | |
tree | 8e1b35c2d9468810a419c58a421f1994162e9795 /fs/bcachefs/alloc_background.c | |
parent | cb13f471390ce646a3d5aa9c599f7eec43ddb2ac (diff) | |
download | linux-74644030098a0c4932e194fa1b2fa052226f3868.tar.xz |
bcachefs: count_event()
Small helper for event counters.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/alloc_background.c')
-rw-r--r-- | fs/bcachefs/alloc_background.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/alloc_background.c b/fs/bcachefs/alloc_background.c index ccc3779dd366..6e719dd09e31 100644 --- a/fs/bcachefs/alloc_background.c +++ b/fs/bcachefs/alloc_background.c @@ -1674,7 +1674,7 @@ write: if (ret) goto out; - this_cpu_inc(c->counters[BCH_COUNTER_bucket_discard]); + count_event(c, bucket_discard); (*discarded)++; out: (*seen)++; |