diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-07-24 20:24:10 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:09 -0400 |
commit | 700c25b32a776a70849c025d898ba1a7431279e4 (patch) | |
tree | 89fbf0860e64ddbdd2e54ac70a3358fe5ac3ca0f /fs/bcachefs/btree_update.h | |
parent | 8b3e9bd65f61dde939538452cbb2a608bc562d34 (diff) | |
download | lwn-700c25b32a776a70849c025d898ba1a7431279e4.tar.gz lwn-700c25b32a776a70849c025d898ba1a7431279e4.zip |
bcachefs: Use bch2_trans_begin() more consistently
Upcoming patch will require that a transaction restart is always
immediately followed by bch2_trans_begin().
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/btree_update.h')
-rw-r--r-- | fs/bcachefs/btree_update.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_update.h b/fs/bcachefs/btree_update.h index bab135fae0b0..b5f35a419004 100644 --- a/fs/bcachefs/btree_update.h +++ b/fs/bcachefs/btree_update.h @@ -114,7 +114,7 @@ static inline int bch2_trans_commit(struct btree_trans *trans, _ret = (_do); \ if (_ret != -EINTR) \ break; \ - bch2_trans_reset(_trans, 0); \ + bch2_trans_begin(_trans); \ } \ \ _ret; \ |