btrfs: Sink find_lock_delalloc_range's 'max_bytes' argument
authorNikolay Borisov <nborisov@suse.com>
Fri, 26 Oct 2018 11:43:20 +0000 (14:43 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Dec 2018 13:51:36 +0000 (14:51 +0100)
commit917aacecc567d56d0ec5f244043f403f7102eda8
tree21de9715aa99c9d24f337caf4a9c397cc4ea5b40
parent64bc6c2a34535515f8319b2054795f0ca0b842f9
btrfs: Sink find_lock_delalloc_range's 'max_bytes' argument

All callers of this function pass BTRFS_MAX_EXTENT_SIZE (128M) so let's
reduce the argument count and make that a local variable. No functional
changes.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.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/tests/extent-io-tests.c