diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-08-18 23:00:12 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:39 +0200 |
commit | 12043cf1511420ecf38f4925a0089c1ae1aa058b (patch) | |
tree | f8efa70e183e56251b51ba71aa78595f2ee34fb8 /fs/bcachefs/trace.h | |
parent | bcachefs: bch2_btree_delete_range_trans() now returns -BCH_ERR_transaction_re... (diff) | |
download | linux-12043cf1511420ecf38f4925a0089c1ae1aa058b.tar.xz linux-12043cf1511420ecf38f4925a0089c1ae1aa058b.zip |
bcachefs: fsck: Another transaction restart handling fix
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/trace.h')
-rw-r--r-- | fs/bcachefs/trace.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/fs/bcachefs/trace.h b/fs/bcachefs/trace.h index 931da79e027f..9353191c4fc8 100644 --- a/fs/bcachefs/trace.h +++ b/fs/bcachefs/trace.h @@ -18,7 +18,7 @@ __entry->dst##_snapshot = (src).snapshot DECLARE_EVENT_CLASS(bpos, - TP_PROTO(struct bpos *p), + TP_PROTO(const struct bpos *p), TP_ARGS(p), TP_STRUCT__entry( @@ -225,7 +225,7 @@ TRACE_EVENT(journal_reclaim_finish, /* bset.c: */ DEFINE_EVENT(bpos, bkey_pack_pos_fail, - TP_PROTO(struct bpos *p), + TP_PROTO(const struct bpos *p), TP_ARGS(p) ); @@ -727,6 +727,13 @@ TRACE_EVENT(copygc_wait, __entry->wait_amount, __entry->until) ); +DEFINE_EVENT(bpos, data_update_fail, + TP_PROTO(const struct bpos *p), + TP_ARGS(p) +); + +/* btree transactions: */ + DECLARE_EVENT_CLASS(transaction_event, TP_PROTO(struct btree_trans *trans, unsigned long caller_ip), |