mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-03 17:40:04 +00:00
bcachefs: Simplify transaction commit error path
The transaction restart path traverses all iterators, we don't need to do it here. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
8a92e54559
commit
b3c2a06b7d
2 changed files with 0 additions and 16 deletions
|
@ -657,17 +657,6 @@ int bch2_trans_commit_error(struct btree_trans *trans,
|
|||
break;
|
||||
}
|
||||
|
||||
if (ret == -EINTR) {
|
||||
int ret2 = bch2_btree_iter_traverse_all(trans);
|
||||
|
||||
if (ret2) {
|
||||
trace_trans_restart_traverse(trans->ip);
|
||||
return ret2;
|
||||
}
|
||||
|
||||
trace_trans_restart_atomic(trans->ip);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -716,11 +716,6 @@ DEFINE_EVENT(transaction_restart, trans_restart_traverse,
|
|||
TP_ARGS(ip)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(transaction_restart, trans_restart_atomic,
|
||||
TP_PROTO(unsigned long ip),
|
||||
TP_ARGS(ip)
|
||||
);
|
||||
|
||||
DECLARE_EVENT_CLASS(node_lock_fail,
|
||||
TP_PROTO(unsigned level, u32 iter_seq, unsigned node, u32 node_seq),
|
||||
TP_ARGS(level, iter_seq, node, node_seq),
|
||||
|
|
Loading…
Reference in a new issue