diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-06-15 00:51:20 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:34 +0300 |
commit | 30f0349d62429effd729ae9272c6fb57f47d1436 (patch) | |
tree | 7a7e0227b9877102e4f8f603d0ae5ff971f39074 /fs/bcachefs/move.h | |
parent | 8f7f566f5774d36196bfa87bc097522fd497d4dc (diff) | |
download | linux-30f0349d62429effd729ae9272c6fb57f47d1436.tar.xz |
bcachefs: Split out dev_buckets_free()
Previously, dev_buckets_available() only counted buckets that are
eligible to be allocated right now - i.e. buckets that don't have cached
data, or need discard, or need gc gens, etc.
But most users of this function want to know how many buckets are
eligible to be allocated from without moving data around - copygc,
allocator striping, which means we should be including cached data
buckets etc.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/move.h')
0 files changed, 0 insertions, 0 deletions