bcachefs: Add open_buckets to sysfs
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 13 Jul 2021 03:52:49 +0000 (23:52 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:08 +0000 (17:09 -0400)
commit2e655e6de202d891f0232cfd3c56b8f8c176cf99
treead4cce0fd7bd6c70f006a9e0c5cd7992b6151766
parent003e738d4f0f61a8711ce41a03d8fb01a1cd7733
bcachefs: Add open_buckets to sysfs

This is to help debug a rare shutdown deadlock in the allocator code -
the btree code is leaking open_buckets.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/alloc_background.c
fs/bcachefs/alloc_background.h
fs/bcachefs/sysfs.c