bcachefs: bch2_bucket_ref_update()
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 19 Apr 2024 23:03:58 +0000 (19:03 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 8 May 2024 21:29:20 +0000 (17:29 -0400)
commit70e3e039cf65f67fa3c41b51cb00a58f6cd48886
treeceb664bcda1e3abf653a0e2f489aa6c04a3e4f9b
parent9cc455d1bcd3bd44d1f103bf3f2e58293976a006
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>
fs/bcachefs/buckets.c
fs/bcachefs/buckets.h
fs/bcachefs/ec.c