btrfs: Introduce fs_info to extent_io_tree
authorQu Wenruo <wqu@suse.com>
Fri, 1 Mar 2019 02:47:58 +0000 (10:47 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:18 +0000 (19:02 +0200)
commitc258d6e36442eb5d3363f6dbc0e6f2c162bfb66d
tree00a1e8b15ef51787be08ad85e79957699d719603
parent3b1da515c64e18bdd6a13348313f1168396b3722
btrfs: Introduce fs_info to extent_io_tree

This patch will add a new member fs_info to extent_io_tree.

This provides the basis for later trace events to distinguish the output
between different btrfs filesystems. While this increases the size of
the structure, we want to know the source of the trace events and
passing the fs_info as an argument to all contexts is not possible.

The selftests are now allowed to set it to NULL as they don't use the
tracepoints.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/inode.c
fs/btrfs/relocation.c
fs/btrfs/tests/btrfs-tests.c
fs/btrfs/tests/extent-io-tests.c
fs/btrfs/transaction.c