bcachefs: bch2_dev_usage_update() no longer depends on bucket_mark
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 11 Feb 2022 00:09:40 +0000 (19:09 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:29 +0000 (17:09 -0400)
commit5f43f99c6ef74f592c380b39069ee68dcfe3ee58
treedf4a63367c59c07b1cbe8b244a66dccdd32f522e
parent5add07d56a5e714a6ac1bedffa9b999d2966708c
bcachefs: bch2_dev_usage_update() no longer depends on bucket_mark

This is one of the last steps in getting rid of the main in-memory
bucket array.

This changes bch2_dev_usage_update() to take bkey_alloc_unpacked instead
of bucket_mark, and for the places where we are in fact working with
bucket_mark and don't have bkey_alloc_unpacked, we add a wrapper that
takes bucket_mark and converts to bkey_alloc_unpacked.

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