diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-28 00:59:17 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-05 23:24:20 -0500 |
commit | 6820ac2cdc3095ac9d2eac62dc7c89bdcee9b8c4 (patch) | |
tree | c6534fe2bff9058b74387ed91383c521ae40049e /fs/bcachefs/buckets.h | |
parent | 6cacd0c4141cbadc7246cf89a9a55220acb91908 (diff) | |
download | linux-stable-6820ac2cdc3095ac9d2eac62dc7c89bdcee9b8c4.tar.gz linux-stable-6820ac2cdc3095ac9d2eac62dc7c89bdcee9b8c4.tar.bz2 linux-stable-6820ac2cdc3095ac9d2eac62dc7c89bdcee9b8c4.zip |
bcachefs: move bch2_mark_alloc() to alloc_background.c
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/buckets.h')
-rw-r--r-- | fs/bcachefs/buckets.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/bcachefs/buckets.h b/fs/bcachefs/buckets.h index 8cf8d32b0eb3..142cf170b198 100644 --- a/fs/bcachefs/buckets.h +++ b/fs/bcachefs/buckets.h @@ -302,6 +302,10 @@ u64 bch2_fs_sectors_used(struct bch_fs *, struct bch_fs_usage_online *); struct bch_fs_usage_short bch2_fs_usage_read_short(struct bch_fs *); +void bch2_dev_usage_update(struct bch_fs *, struct bch_dev *, + const struct bch_alloc_v4 *, + const struct bch_alloc_v4 *, u64, bool); + /* key/bucket marking: */ static inline struct bch_fs_usage *fs_usage_ptr(struct bch_fs *c, @@ -327,8 +331,6 @@ int bch2_mark_metadata_bucket(struct bch_fs *, struct bch_dev *, size_t, enum bch_data_type, unsigned, struct gc_pos, unsigned); -int bch2_mark_alloc(struct btree_trans *, enum btree_id, unsigned, - struct bkey_s_c, struct bkey_s, unsigned); int bch2_mark_extent(struct btree_trans *, enum btree_id, unsigned, struct bkey_s_c, struct bkey_s, unsigned); int bch2_mark_stripe(struct btree_trans *, enum btree_id, unsigned, |