Commit 955ba7b5 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

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: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 9180ad2e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment