]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: update the comment for find_first_extent_bit
authorQu Wenruo <wqu@suse.com>
Wed, 21 Oct 2020 06:24:50 +0000 (14:24 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 8 Dec 2020 14:53:53 +0000 (15:53 +0100)
commitbbe1067ff8d70fcb444671336b770caa5b1e176d
treeb21063d354fd7e15cb1b4d47f92209f96cbb1317
parent0617a5ec45b4ee1c1f0e503dea2bfd4df4278ad1
btrfs: update the comment for find_first_extent_bit

The pitfall here is, if the parameter @bits has multiple bits set, we
will return the first range which just has one of the specified bits
set.

This is a little tricky if we want an exact match.  Anyway, update the
comment to make that clear.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c