summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2026-04-17 18:12:16 +0100
committerDavid Sterba <dsterba@suse.com>2026-06-08 15:53:33 +0200
commit889ad3845a8c029e93a46251f78d61b277cf5e61 (patch)
tree2efe1098681ef7e9979d4698ecf12d15845bee9d /include
parente1ad307c7ab1af0b5c14549b23982464c22996cc (diff)
downloadlinux-next-889ad3845a8c029e93a46251f78d61b277cf5e61.tar.gz
linux-next-889ad3845a8c029e93a46251f78d61b277cf5e61.zip
btrfs: tracepoints: add in_fsync field to transaction commit event
Include the in_fsync value from the transaction handle so that we can know if a transaction commit was triggered by a fsync call. 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 'include')
-rw-r--r--include/trace/events/btrfs.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/trace/events/btrfs.h b/include/trace/events/btrfs.h
index 4cec2f8838f5..4e077abd6704 100644
--- a/include/trace/events/btrfs.h
+++ b/include/trace/events/btrfs.h
@@ -189,13 +189,16 @@ TRACE_EVENT(btrfs_transaction_commit,
TP_STRUCT__entry_btrfs(
__field( u64, generation )
+ __field( bool, in_fsync )
),
TP_fast_assign_btrfs(trans->fs_info,
__entry->generation = trans->transid;
+ __entry->in_fsync = trans->in_fsync;
),
- TP_printk_btrfs("gen=%llu", __entry->generation)
+ TP_printk_btrfs("gen=%llu in_fsync=%d", __entry->generation,
+ __entry->in_fsync)
);
DECLARE_EVENT_CLASS(btrfs__inode,