OSDN Git Service

btrfs: remove extent_page_data::tree
authorDavid Sterba <dsterba@suse.com>
Wed, 5 Feb 2020 18:09:26 +0000 (19:09 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:34 +0000 (17:01 +0100)
commit45b08405b9f0dc31164b6c28ddcd6aeda3be54be
tree57e52a7e9bd306df0652fe60f7f805195106673f
parentbf31f87f71cc7a89871ab0a451c047a0c0144bf1
btrfs: remove extent_page_data::tree

All functions that set up extent_page_data::tree set it to the inode
io_tree. That's passed down the callstack that accesses either the same
inode or its pages. In the end submit_extent_page can pull the tree out
of the page and we don't have to store it in the structure.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c