bcachefs: Improve bch2_bkey_make_mut()
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 26 Jun 2023 22:36:24 +0000 (18:36 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:05 +0000 (17:10 -0400)
commit0fb3355d0a3b055af8735fa25b5af63f4dd9a034
treec898735d5014da4ba15d2711ad5bf500f6cd25f7
parent298ac24e6346b517148a6645c7c5686565868753
bcachefs: Improve bch2_bkey_make_mut()

bch2_bkey_make_mut() now takes the bkey_s_c by reference and points it
at the new, mutable key.

This helps in some fsck paths that may have multiple repair operations
on the same key.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_gc.c
fs/bcachefs/btree_update.h
fs/bcachefs/migrate.c
fs/bcachefs/subvolume.c