bcachefs: bch2_bkey_make_mut() now calls bch2_trans_update()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 30 Apr 2023 23:21:06 +0000 (19:21 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:01 +0000 (17:10 -0400)
commitdbda63bbb0dbce070f22132339a07146bf1af850
treece851c5d2463608f433e404e829b307ff34f21c9
parentf12a798a898dec36de9705d40a1b03e2418aabe0
bcachefs: bch2_bkey_make_mut() now calls bch2_trans_update()

It's safe to call bch2_trans_update with a k/v pair where the value
hasn't been filled out, as long as the key part has been and the value
is filled out by transaction commit time.

This patch folds the bch2_trans_update() call into bch2_bkey_make_mut(),
eliminating a bit of boilerplate.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_background.c
fs/bcachefs/btree_gc.c
fs/bcachefs/btree_update.h
fs/bcachefs/btree_update_leaf.c
fs/bcachefs/fsck.c
fs/bcachefs/io.c
fs/bcachefs/migrate.c
fs/bcachefs/move.c