diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-02-10 19:09:40 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:29 -0400 |
commit | 5f43f99c6ef74f592c380b39069ee68dcfe3ee58 (patch) | |
tree | df4a63367c59c07b1cbe8b244a66dccdd32f522e /fs/bcachefs/buckets.h | |
parent | 5add07d56a5e714a6ac1bedffa9b999d2966708c (diff) | |
download | linux-stable-5f43f99c6ef74f592c380b39069ee68dcfe3ee58.tar.gz linux-stable-5f43f99c6ef74f592c380b39069ee68dcfe3ee58.tar.bz2 linux-stable-5f43f99c6ef74f592c380b39069ee68dcfe3ee58.zip |
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>
Diffstat (limited to 'fs/bcachefs/buckets.h')
-rw-r--r-- | fs/bcachefs/buckets.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/bcachefs/buckets.h b/fs/bcachefs/buckets.h index bcb40f15f82e..9cc6c16bcc64 100644 --- a/fs/bcachefs/buckets.h +++ b/fs/bcachefs/buckets.h @@ -134,13 +134,6 @@ static inline u8 ptr_stale(struct bch_dev *ca, return ret; } -/* bucket gc marks */ - -static inline bool is_available_bucket(struct bucket_mark mark) -{ - return !mark.dirty_sectors && !mark.stripe; -} - /* Device usage: */ struct bch_dev_usage bch2_dev_usage_read(struct bch_dev *); |