summaryrefslogtreecommitdiff
path: root/fs/bcachefs/bcachefs_format.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-06-14 06:32:09 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:33 +0300
commit6f44a9940c600c5a0663b825bdd89aad0639e3a0 (patch)
tree7b5ab0facb37179d1c3f12c20b4d57de0ba50ace /fs/bcachefs/bcachefs_format.h
parentc9bd67321e9b9bae0a9ba151a3906086878159b6 (diff)
downloadlinux-6f44a9940c600c5a0663b825bdd89aad0639e3a0.tar.xz
bcachefs: Add a persistent counter for bucket discards
Like the previous patch for bucket invalidates, add another counter for a core allocator path. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/bcachefs_format.h')
-rw-r--r--fs/bcachefs/bcachefs_format.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/bcachefs_format.h b/fs/bcachefs/bcachefs_format.h
index 944cc6247a84..b9d614f608b5 100644
--- a/fs/bcachefs/bcachefs_format.h
+++ b/fs/bcachefs/bcachefs_format.h
@@ -1330,7 +1330,8 @@ struct bch_sb_field_disk_groups {
x(io_read, 0) \
x(io_write, 1) \
x(io_move, 2) \
- x(bucket_invalidate, 3)
+ x(bucket_invalidate, 3) \
+ x(bucket_discard, 4)
enum bch_persistent_counters {
#define x(t, n, ...) BCH_COUNTER_##t,