diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-02-28 23:08:48 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:55 -0400 |
commit | 2f4e9472fa67ff528973f71729175c4c715b1912 (patch) | |
tree | a2f19e149aebe1dd5b787d261442f0d950ec144b /fs/bcachefs/sysfs.c | |
parent | 11bb67a4a31d9581a3148a75e023e680197f25fe (diff) | |
download | linux-2f4e9472fa67ff528973f71729175c4c715b1912.tar.gz linux-2f4e9472fa67ff528973f71729175c4c715b1912.tar.bz2 linux-2f4e9472fa67ff528973f71729175c4c715b1912.zip |
bcachefs: bch2_open_bucket_to_text()
Factor out a common helper
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/sysfs.c')
-rw-r--r-- | fs/bcachefs/sysfs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/bcachefs/sysfs.c b/fs/bcachefs/sysfs.c index 6cbdf70f36bd..8108e1d81345 100644 --- a/fs/bcachefs/sysfs.c +++ b/fs/bcachefs/sysfs.c @@ -194,6 +194,7 @@ read_attribute(btree_cache); read_attribute(btree_key_cache); read_attribute(stripes_heap); read_attribute(open_buckets); +read_attribute(open_buckets_partial); read_attribute(write_points); read_attribute(nocow_lock_table); @@ -455,6 +456,9 @@ SHOW(bch2_fs) if (attr == &sysfs_open_buckets) bch2_open_buckets_to_text(out, c); + if (attr == &sysfs_open_buckets_partial) + bch2_open_buckets_partial_to_text(out, c); + if (attr == &sysfs_write_points) bch2_write_points_to_text(out, c); @@ -663,6 +667,7 @@ struct attribute *bch2_fs_internal_files[] = { &sysfs_new_stripes, &sysfs_stripes_heap, &sysfs_open_buckets, + &sysfs_open_buckets_partial, &sysfs_write_points, #ifdef BCH_WRITE_REF_DEBUG &sysfs_write_refs, |