bcachefs: Kill bch2_replicas_delta_list_marked()
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 28 Nov 2021 19:08:58 +0000 (14:08 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:18 +0000 (17:09 -0400)
commit502cfb3591ec1f3d133c7eb281b8b93ca2bb2768
treeb47077a84db629dbd528459880455e66a90573cb
parentf449bedb068447d3e9b1d64a41852b2aaca36fda
bcachefs: Kill bch2_replicas_delta_list_marked()

This changes bch2_trans_fs_usage_apply() to handle failure (replicas
entry missing) by reverting the changes it made - meaning we can make
the main transaction commit path a bit slimmer, and perhaps also
simplify some locking in upcoming patches.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/btree_update_leaf.c
fs/bcachefs/buckets.c
fs/bcachefs/buckets.h
fs/bcachefs/replicas.c
fs/bcachefs/replicas.h