bcachefs: bch2_bkey_get_mut() now calls bch2_trans_update()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 30 Apr 2023 22:46:24 +0000 (18:46 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:01 +0000 (17:10 -0400)
commitf12a798a898dec36de9705d40a1b03e2418aabe0
tree3b2a09b833e6034f34e2d9aefd8794fb67080c5d
parentf8cb35fda161715e384df340f0bae4de37c5576f
bcachefs: bch2_bkey_get_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_get_mut(),
eliminating a bit of boilerplate.

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