summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/sysfs.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-06-17 20:12:02 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:34 -0400
commit50b13beef09f445e1fb8fbf1e1f852df06baf05a (patch)
treea6b120f5d24aca22fd26b61d1c259635200a335b /fs/bcachefs/sysfs.c
parent2ed6248ab3a58dbbe5819cbd0e60e4e3a5b72c47 (diff)
downloadlinux-50b13beef09f445e1fb8fbf1e1f852df06baf05a.tar.gz
linux-50b13beef09f445e1fb8fbf1e1f852df06baf05a.tar.bz2
linux-50b13beef09f445e1fb8fbf1e1f852df06baf05a.zip
bcachefs: Improve an error message
When inserting a key type that's not valid for a given btree, we should print out which btree we were inserting into. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/sysfs.c')
-rw-r--r--fs/bcachefs/sysfs.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/bcachefs/sysfs.c b/fs/bcachefs/sysfs.c
index b2d6a5c49a4d..173289c34de0 100644
--- a/fs/bcachefs/sysfs.c
+++ b/fs/bcachefs/sysfs.c
@@ -181,7 +181,6 @@ read_attribute(journal_debug);
read_attribute(btree_updates);
read_attribute(btree_cache);
read_attribute(btree_key_cache);
-read_attribute(btree_transactions);
read_attribute(stripes_heap);
read_attribute(open_buckets);
read_attribute(write_points);
@@ -420,9 +419,6 @@ SHOW(bch2_fs)
if (attr == &sysfs_btree_key_cache)
bch2_btree_key_cache_to_text(out, &c->btree_key_cache);
- if (attr == &sysfs_btree_transactions)
- bch2_btree_trans_to_text(out, c);
-
if (attr == &sysfs_stripes_heap)
bch2_stripes_heap_to_text(out, c);
@@ -621,7 +617,6 @@ struct attribute *bch2_fs_internal_files[] = {
&sysfs_btree_updates,
&sysfs_btree_cache,
&sysfs_btree_key_cache,
- &sysfs_btree_transactions,
&sysfs_new_stripes,
&sysfs_stripes_heap,
&sysfs_open_buckets,