bcachefs: bch2_bkey_alloc() now calls bch2_trans_update()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 30 Apr 2023 22:59:28 +0000 (18:59 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:01 +0000 (17:10 -0400)
commitf8cb35fda161715e384df340f0bae4de37c5576f
treee6c122be21bbb529358424da7997c9209f27efdf
parent34dfa5db191fe227c0c413624b7387f1f1804029
bcachefs: bch2_bkey_alloc() 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_alloc(),
eliminating a bit of boilerplate.

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