bcachefs: Start moving debug info from sysfs to debugfs
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 26 Feb 2022 16:48:34 +0000 (11:48 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:26 +0000 (17:09 -0400)
commit75ef2c59bc2f4d3c3ecd48286ac36ee7b868321c
tree484bb617bb4d7b5cae6016e39b42ca70120a0abf
parent734f7141ce45360203ddaa64782279653c1c9588
bcachefs: Start moving debug info from sysfs to debugfs

In sysfs, files can only output at most PAGE_SIZE. This is a problem for
debug info that needs to list an arbitrary number of times, and because
of this limit some of our debug info has been terser and harder to read
than we'd like.

This patch moves info about journal pins and cached btree nodes to
debugfs, and greatly expands and improves the output we return.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/bcachefs.h
fs/bcachefs/btree_io.c
fs/bcachefs/btree_io.h
fs/bcachefs/debug.c
fs/bcachefs/journal.c
fs/bcachefs/journal.h
fs/bcachefs/sysfs.c