• David Sterba's avatar
    btrfs: pass NOWAIT for set/clear extent bits as another bit · 62bc6047
    David Sterba authored
    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>
    62bc6047
extent-io-tree.c 46.1 KB