]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf4c8fc9431691bd9cef485b34e7e91d8dc847b2e
tree103d6652f40e1023c80b13a9378767301563b1d1
parent5f894d76557d3315b39a3742a4127e9b695888f6
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