linux-sg2042/fs/btrfs/tests
Qu Wenruo 43eb5f2975 btrfs: Introduce extent_io_tree::owner to distinguish different io_trees
Btrfs has the following different extent_io_trees used:

- fs_info::free_extents[2]
- btrfs_inode::io_tree - for both normal inodes and the btree inode
- btrfs_inode::io_failure_tree
- btrfs_transaction::dirty_pages
- btrfs_root::dirty_log_pages

If we want to trace changes in those trees, it will be pretty hard to
distinguish them.

Instead of using hard-to-read pointer address, this patch will introduce
a new member extent_io_tree::owner to track the owner.

This modification needs all the callers of extent_io_tree_init() to
accept a new parameter @owner.

This patch provides the basis for later trace events.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2019-04-29 19:02:18 +02:00
..
btrfs-tests.c btrfs: Introduce extent_io_tree::owner to distinguish different io_trees 2019-04-29 19:02:18 +02:00
btrfs-tests.h btrfs: tests: drop newline from test_msg strings 2018-05-29 18:12:52 +02:00
extent-buffer-tests.c btrfs: tests: drop newline from test_msg strings 2018-05-29 18:12:52 +02:00
extent-io-tests.c btrfs: Introduce extent_io_tree::owner to distinguish different io_trees 2019-04-29 19:02:18 +02:00
extent-map-tests.c Btrfs: extent_map: use rb_first_cached 2018-10-15 17:23:33 +02:00
free-space-tests.c btrfs: tests: drop newline from test_msg strings 2018-05-29 18:12:52 +02:00
free-space-tree-tests.c btrfs: tests: drop newline from test_msg strings 2018-05-29 18:12:52 +02:00
inode-tests.c btrfs: Adjust loop in free_extent_buffer 2018-12-17 14:51:31 +01:00
qgroup-tests.c btrfs: qgroup: Drop fs_info parameter from btrfs_qgroup_account_extent 2018-08-06 13:12:52 +02:00