diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-06-14 06:32:09 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:33 +0300 |
commit | 6f44a9940c600c5a0663b825bdd89aad0639e3a0 (patch) | |
tree | 7b5ab0facb37179d1c3f12c20b4d57de0ba50ace /fs/bcachefs/bcachefs_format.h | |
parent | c9bd67321e9b9bae0a9ba151a3906086878159b6 (diff) | |
download | linux-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.h | 3 |
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, |