Skip to content
Commit 99be1a66 authored by David Sterba's avatar David Sterba
Browse files

btrfs: add specific helper for range bit test exists



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>
parent 6422b4cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment