diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-11-29 23:55:51 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2020-11-30 00:06:46 -0500 |
commit | 1e574cb1aa07ab3a796c7d6c5501b96f3056ef4d (patch) | |
tree | ebcb516a753e19eb83f2dd4ed9b4f851f8afd911 /libbcachefs/sysfs.c | |
parent | 41bec63b265a38dd9fa168b6042ea5bf07135048 (diff) |
Update bcachefs sources to 021e62a098 bcachefs: Fix error in filesystem initialization
Diffstat (limited to 'libbcachefs/sysfs.c')
-rw-r--r-- | libbcachefs/sysfs.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libbcachefs/sysfs.c b/libbcachefs/sysfs.c index 58c00e2..900eda8 100644 --- a/libbcachefs/sysfs.c +++ b/libbcachefs/sysfs.c @@ -165,6 +165,7 @@ read_attribute(journal_debug); read_attribute(journal_pins); read_attribute(btree_updates); read_attribute(dirty_btree_nodes); +read_attribute(btree_cache); read_attribute(btree_key_cache); read_attribute(btree_transactions); read_attribute(stripes_heap); @@ -374,6 +375,11 @@ SHOW(bch2_fs) return out.pos - buf; } + if (attr == &sysfs_btree_cache) { + bch2_btree_cache_to_text(&out, c); + return out.pos - buf; + } + if (attr == &sysfs_btree_key_cache) { bch2_btree_key_cache_to_text(&out, &c->btree_key_cache); return out.pos - buf; @@ -550,6 +556,7 @@ struct attribute *bch2_fs_internal_files[] = { &sysfs_journal_pins, &sysfs_btree_updates, &sysfs_dirty_btree_nodes, + &sysfs_btree_cache, &sysfs_btree_key_cache, &sysfs_btree_transactions, &sysfs_stripes_heap, |