bcachefs: Add .to_text() methods for all superblock sections
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 20 Feb 2022 10:00:45 +0000 (05:00 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:24 +0000 (17:09 -0400)
commit12bf93a429c981cf337ce2c27504ec0171157f76
tree1b547aa4162109e412bfe8e6562e50ccc391ef90
parentd4b691522c4b60220087a01c276f3fa9781405b0
bcachefs: Add .to_text() methods for all superblock sections

This patch improves the superblock .to_text() methods and adds methods
for all types that were missing them. It also improves printbufs by
allowing them to specfiy what units we want to be printing in, and adds
new wrapper methods for unifying our kernel and userspace environments.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
14 files changed:
fs/bcachefs/disk_groups.c
fs/bcachefs/disk_groups.h
fs/bcachefs/extents.c
fs/bcachefs/journal_io.c
fs/bcachefs/journal_seq_blacklist.c
fs/bcachefs/quota.c
fs/bcachefs/recovery.c
fs/bcachefs/replicas.c
fs/bcachefs/replicas.h
fs/bcachefs/super-io.c
fs/bcachefs/super-io.h
fs/bcachefs/sysfs.c
fs/bcachefs/util.c
fs/bcachefs/util.h