btrfs: remove btrfs_get_extent indirection from __do_readpage
authorNikolay Borisov <nborisov@suse.com>
Mon, 14 Sep 2020 09:37:06 +0000 (12:37 +0300)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:13:20 +0000 (12:13 +0200)
commit1a5ee1e6260368da8347e66321e157a7de288ef3
tree103d6652f40e1023c80b13a9378767301563b1d1
parent208d6341e85b4f2628a90438fce5d8a2dd97d6ba
btrfs: remove btrfs_get_extent indirection from __do_readpage

Now that this function is only responsible for reading data pages it's
no longer necessary to pass get_extent_t parameter across several
layers of functions. This patch removes this parameter from multiple
functions: __get_extent_map/__do_readpage/__extent_read_full_page/
extent_read_full_page and simply calls btrfs_get_extent directly in
__get_extent_map.

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