summaryrefslogtreecommitdiff
path: root/fs/bcachefs/counters.h
AgeCommit message (Collapse)AuthorFilesLines
2023-10-23bcachefs: Add persistent countersDaniel Hill1-0/+17
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>