btrfs: prefix fsid to all trace events
When using trace events to debug a problem, it's impossible to determine which file system generated a particular event. This patch adds a macro to prefix standard information to the head of a trace event. The extent_state alloc/free events are all that's left without an fs_info available. Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:

committed by
David Sterba

parent
cb001095ca
commit
bc074524e1
@@ -1171,7 +1171,7 @@ int btrfs_sync_fs(struct super_block *sb, int wait)
|
||||
struct btrfs_fs_info *fs_info = btrfs_sb(sb);
|
||||
struct btrfs_root *root = fs_info->tree_root;
|
||||
|
||||
trace_btrfs_sync_fs(wait);
|
||||
trace_btrfs_sync_fs(fs_info, wait);
|
||||
|
||||
if (!wait) {
|
||||
filemap_flush(fs_info->btree_inode->i_mapping);
|
||||
|
Reference in New Issue
Block a user