Skip to content
Commit 62bc6047 authored by David Sterba's avatar David Sterba
Browse files

btrfs: pass NOWAIT for set/clear extent bits as another bit



The only flags we now pass to set_extent_bit/__clear_extent_bit are
GFP_NOFS and GFP_NOWAIT (a few functions handling mappings). This
requires an extra parameter to be passed everywhere but is almost always
the same.

Encode the GFP_NOWAIT as an artificial extent bit and extract the
real bits and gfp mask in the lowest level helpers. Now the passed
gfp mask is not actually used and can be removed.

Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 7dde7a8a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment