summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/buckets.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-04-20 01:03:58 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2024-05-08 23:29:20 +0200
commit70e3e039cf65f67fa3c41b51cb00a58f6cd48886 (patch)
treeceb664bcda1e3abf653a0e2f489aa6c04a3e4f9b /fs/bcachefs/buckets.h
parentbcachefs: Consolidate mark_stripe_bucket() and trans_mark_stripe_bucket() (diff)
downloadlinux-70e3e039cf65f67fa3c41b51cb00a58f6cd48886.tar.xz
linux-70e3e039cf65f67fa3c41b51cb00a58f6cd48886.zip
bcachefs: bch2_bucket_ref_update()
If we hit an inconsistency when updating allocation information, we don't want to fail the update if it's for a deletion - only if it's for a new key. Rename check_bucket_ref() -> bucket_ref_update() so we can centralize the logic to do this. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/buckets.h')
-rw-r--r--fs/bcachefs/buckets.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/bcachefs/buckets.h b/fs/bcachefs/buckets.h
index a88b9033349f..c2c2ac36bee5 100644
--- a/fs/bcachefs/buckets.h
+++ b/fs/bcachefs/buckets.h
@@ -337,9 +337,9 @@ int bch2_replicas_deltas_realloc(struct btree_trans *, unsigned);
void bch2_fs_usage_initialize(struct bch_fs *);
-int bch2_check_bucket_ref(struct btree_trans *, struct bkey_s_c,
- const struct bch_extent_ptr *,
- s64, enum bch_data_type, u8, u8, u32);
+int bch2_bucket_ref_update(struct btree_trans *, struct bkey_s_c,
+ const struct bch_extent_ptr *,
+ s64, enum bch_data_type, u8, u8, u32 *);
int bch2_trigger_extent(struct btree_trans *, enum btree_id, unsigned,
struct bkey_s_c, struct bkey_s,