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)
commit65ad010488a5cc0f123a9924f7ad26a1b3f6a4f6
tree04a1e29c5fc4b97defb72379af61735f5e78ce81
parentd7f663fa3ff906247a979c1115bc92cbabfb19ba
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