summaryrefslogtreecommitdiff
path: root/fs/bcachefs/sysfs.c
diff options
context:
space:
mode:
authorDaniel Hill <daniel@gluo.nz>2022-09-30 06:37:15 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2024-05-09 23:24:29 +0300
commitbceacfa97ec8b67a76efad2f95899434230b317c (patch)
tree226b473fe49975cfa2815d10869c843facf894ae /fs/bcachefs/sysfs.c
parent692aa7a54b2b28d59f24b3bf8250837805484b99 (diff)
downloadlinux-bceacfa97ec8b67a76efad2f95899434230b317c.tar.xz
bcachefs: add counters for failed shrinker reclaim
This adds distinct counters for every reason the btree node shrinker can fail to free an object - if our shrinker isn't making progress, this will tell us why. Signed-off-by: Daniel Hill <daniel@gluo.nz> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/sysfs.c')
-rw-r--r--fs/bcachefs/sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/sysfs.c b/fs/bcachefs/sysfs.c
index df3d28659bfd..93ca74d108b1 100644
--- a/fs/bcachefs/sysfs.c
+++ b/fs/bcachefs/sysfs.c
@@ -383,7 +383,7 @@ SHOW(bch2_fs)
bch2_journal_debug_to_text(out, &c->journal);
if (attr == &sysfs_btree_cache)
- bch2_btree_cache_to_text(out, c);
+ bch2_btree_cache_to_text(out, &c->btree_cache);
if (attr == &sysfs_btree_key_cache)
bch2_btree_key_cache_to_text(out, &c->btree_key_cache);