summaryrefslogtreecommitdiff
path: root/rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2026-04-17 17:43:19 +0100
committerDavid Sterba <dsterba@suse.com>2026-06-08 15:53:33 +0200
commite1ad307c7ab1af0b5c14549b23982464c22996cc (patch)
treee6f5cec6f875e56497bc7306d0a22567fa3a5b59 /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
parentd5ccc38b755fe65ee1214c0b8a46c77af982f187 (diff)
btrfs: tracepoints: pass a transaction handle to transaction commit event
The transaction commit tracepoint prints fs_info->generation as if it were the ID of the committed transaction but this does not always match that ID. This is because the trace point is called in the transaction commit path after the transaction is in the TRANS_STATE_COMPLETED state, which means another transaction may have already started (which can happen as soon as the transaction state was set to TRANS_STATE_UNBLOCKED), in which case fs_info->generation was incremented and does not correspond to the committed transaction anymore. So fix this by passing a transaction handle to the trace event instead of fs_info. This will also allow later for the trace event to dump other useful information about the transaction. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions