bcachefs: bch_dev_usage_full
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 31 Mar 2025 20:09:39 +0000 (16:09 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 2 Apr 2025 14:24:34 +0000 (10:24 -0400)
commit955ba7b5ea0395e9e3377f0ffc14f5dc4a099284
treee13f648d28a6f9853255119fc506f2174a14b5a9
parent9180ad2e161b7030e0af78fd2266cbcefe81e652
bcachefs: bch_dev_usage_full

All the fastpaths that need device usage don't need the sector totals or
fragmentation, just bucket counts.

Split bch_dev_usage up into two different versions, the normal one with
just bucket counts.

This is also a stack usage improvement, since we have a bch_dev_usage on
the stack in the allocation path.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_background.h
fs/bcachefs/alloc_foreground.c
fs/bcachefs/bcachefs.h
fs/bcachefs/buckets.c
fs/bcachefs/buckets.h
fs/bcachefs/buckets_types.h
fs/bcachefs/chardev.c
fs/bcachefs/movinggc.c