btrfs: prepare to drop gfp mask parameter from clear_extent_bit
authorDavid Sterba <dsterba@suse.com>
Tue, 31 Oct 2017 15:30:47 +0000 (16:30 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:12 +0000 (16:08 +0100)
commit66b0c887bbf61555fde648587644485388dddb78
treea38a54f5bde3e2a21d91a4f84c81a2c97209b3d5
parent1538e6c52e19175a5f4da48eb88e059d5d12d7a0
btrfs: prepare to drop gfp mask parameter from clear_extent_bit

Use __clear_extent_bit directly in case we want to pass unknown
gfp flags. Otherwise all clear_extent_bit callers use GFP_NOFS, so we
can sink them to the function and reduce argument count, at the cost
that __clear_extent_bit has to be exported.

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