• David Sterba's avatar
    btrfs: add specific helper for range bit test exists · 99be1a66
    David Sterba authored
    The existing helper test_range_bit works in two ways, checks if the whole
    range contains all the bits, or stop on the first occurrence.  By adding
    a specific helper for the latter case, the inner loop can be simplified
    and contains fewer conditionals, making it a bit faster.
    
    There's no caller that uses the cached state pointer so this reduces the
    argument count further.
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    99be1a66
inode.c 312 KB