bcachefs: Split apart bch2_target_to_text(), bch2_target_to_text_sb()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 14:54:24 +0000 (10:54 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 31 Oct 2023 16:18:37 +0000 (12:18 -0400)
commitbf0d9e89de2e62fe9967ebb77b68d58d3812e4db
tree23af7924215eb5e12e6fa0fc3be1b68355edc1a3
parent523f33efbf406f2eb0f071123d17fbbd9e40d692
bcachefs: Split apart bch2_target_to_text(), bch2_target_to_text_sb()

Previously we just had bch2_opt_target_to_text() which could be passed
either a filesystem object or just a superblock - depending on if we
have a running filesystem or not.

Split these into two functions for clarity.

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