]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: enum bch_persistent_counters_stable
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 30 Jan 2025 08:28:27 +0000 (03:28 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 15 Mar 2025 01:02:11 +0000 (21:02 -0400)
commitbbd804f2ad3034ac1053b9188e6bb3d705570e25
tree86b162ff835eb80f7030b06d0a4bb6c5baf25ab4
parent999cc1bb6888c484fbd5dd9c8397c200772bd243
bcachefs: enum bch_persistent_counters_stable

Persistent counters, like recovery passes, include a stable enum in
their definition - but this was never correctly plumbed.

This allows us to add new counters and properly organize them with a
non-stable "presentation order", which can also be used in userspace by
the new 'bcachefs fs top' tool.

Fortunatel, since we haven't yet added any new counters where
presentation order ID doesn't match stable ID, this won't cause any
reordering issues.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/sb-counters.c
fs/bcachefs/sb-counters_format.h