]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: pass only eb to num_extent_pages
authorDavid Sterba <dsterba@suse.com>
Fri, 29 Jun 2018 08:56:49 +0000 (10:56 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:43 +0000 (13:12 +0200)
commit95a44ed3abb0f330c38fdc99a65fa58789deb138
tree04a1e29c5fc4b97defb72379af61735f5e78ce81
parent677b4512dc1a6d1bcf5c20a285c18d6d0df17a0d
btrfs: pass only eb to num_extent_pages

Almost all callers pass the start and len as 2 arguments but this is not
necessary, all the information is provided by the eb. By reordering the
calls to num_extent_pages, we don't need the local variables with
start/len.

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