diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-01-22 17:56:34 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:52 -0400 |
commit | bfcf840ddf0697f991f2591b56a9f1969accbd23 (patch) | |
tree | 303ed1508ca0a86441527a468074ea67ea7a4d43 /fs/bcachefs/buckets.h | |
parent | 9afc6652d14ac83ef9c5ce3544becad22ea50baa (diff) | |
download | lwn-bfcf840ddf0697f991f2591b56a9f1969accbd23.tar.gz lwn-bfcf840ddf0697f991f2591b56a9f1969accbd23.zip |
bcachefs: Mark superblocks transactionally
More work towards getting rid of the in memory struct bucket: this path
adds code for marking superblock and journal buckets via the btree, and
uses it in the device add and journal resize paths.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
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, 6 insertions, 0 deletions
diff --git a/fs/bcachefs/buckets.h b/fs/bcachefs/buckets.h index 7eebae7c439d..4103ea7e769a 100644 --- a/fs/bcachefs/buckets.h +++ b/fs/bcachefs/buckets.h @@ -259,6 +259,12 @@ int bch2_trans_mark_update(struct btree_trans *, struct btree_iter *iter, struct bkey_i *insert, unsigned); void bch2_trans_fs_usage_apply(struct btree_trans *, struct bch_fs_usage_online *); +int bch2_trans_mark_metadata_bucket(struct btree_trans *, + struct disk_reservation *, struct bch_dev *, + size_t, enum bch_data_type, unsigned); +int bch2_trans_mark_dev_sb(struct bch_fs *, struct disk_reservation *, + struct bch_dev *); + /* disk reservations: */ static inline void bch2_disk_reservation_put(struct bch_fs *c, |