Commit f12a798a authored by Kent Overstreet's avatar Kent Overstreet
Browse files

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: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent f8cb35fd
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment