diff options
author | Daniel Hill <daniel@gluo.nz> | 2022-03-15 09:36:33 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:32 +0200 |
commit | 104c69745fdf7e5f8aa022f60bc9d568987bd8b8 (patch) | |
tree | 09fc07cf3d1bbe991c7a586fbac4ee24c31d1b98 /fs/bcachefs/Makefile | |
parent | bcachefs: Tracepoint improvements (diff) | |
download | linux-104c69745fdf7e5f8aa022f60bc9d568987bd8b8.tar.xz linux-104c69745fdf7e5f8aa022f60bc9d568987bd8b8.zip |
bcachefs: Add persistent counters
This adds a new superblock field for persisting counters
and adds a sysfs interface in counters/ exposing these counters.
The superblock field is ignored by older versions letting us avoid
an on disk version bump.
Each sysfs file outputs a counter that tracks since filesystem
creation and a counter for the current mount session.
Signed-off-by: Daniel Hill <daniel@gluo.nz>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/Makefile')
-rw-r--r-- | fs/bcachefs/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/Makefile b/fs/bcachefs/Makefile index 17423584a3f3..76aecdc5df71 100644 --- a/fs/bcachefs/Makefile +++ b/fs/bcachefs/Makefile @@ -21,6 +21,7 @@ bcachefs-y := \ checksum.o \ clock.o \ compress.o \ + counters.o \ debug.o \ dirent.o \ disk_groups.o \ |