commit | f12a798a898dec36de9705d40a1b03e2418aabe0 | [log] [tgz] |
---|---|---|
author | Kent Overstreet <kent.overstreet@linux.dev> | Sun Apr 30 18:46:24 2023 -0400 |
committer | Kent Overstreet <kent.overstreet@linux.dev> | Sun Oct 22 17:10:01 2023 -0400 |
tree | 3b2a09b833e6034f34e2d9aefd8794fb67080c5d | |
parent | f8cb35fda161715e384df340f0bae4de37c5576f [diff] |
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>