aboutsummaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/btree_trans_commit.c
diff options
context:
space:
mode:
authorKent Overstreet <[email protected]>2024-09-24 02:11:41 +0000
committerKent Overstreet <[email protected]>2024-12-21 06:36:14 +0000
commit4e1c6ac05a2348be6b74db63b406c10dd553f1ae (patch)
tree1e0342ac8a8c4f8124d106b587e53fb49621481e /fs/bcachefs/btree_trans_commit.c
parentbcachefs: Remove unnecessary peek_slot() (diff)
downloadkernel-4e1c6ac05a2348be6b74db63b406c10dd553f1ae.tar.gz
kernel-4e1c6ac05a2348be6b74db63b406c10dd553f1ae.zip
bcachefs: kill btree_trans_restart_nounlock()
Redundant, the normal btree_trans_restart() doesn't unlock. Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'fs/bcachefs/btree_trans_commit.c')
-rw-r--r--fs/bcachefs/btree_trans_commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_trans_commit.c b/fs/bcachefs/btree_trans_commit.c
index 3d951846a1be..b47f11881fe4 100644
--- a/fs/bcachefs/btree_trans_commit.c
+++ b/fs/bcachefs/btree_trans_commit.c
@@ -624,7 +624,7 @@ bch2_trans_commit_write_locked(struct btree_trans *trans, unsigned flags,
if (race_fault()) {
trace_and_count(c, trans_restart_fault_inject, trans, trace_ip);
- return btree_trans_restart_nounlock(trans, BCH_ERR_transaction_restart_fault_inject);
+ return btree_trans_restart(trans, BCH_ERR_transaction_restart_fault_inject);
}
/*