btrfs: change test_range_bit to scan the whole range
authorDavid Sterba <dsterba@suse.com>
Fri, 14 Aug 2020 09:35:16 +0000 (11:35 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 12 Oct 2023 14:44:14 +0000 (16:44 +0200)
commit893fe2439994666d94dbe19f5fd59cec17c8f0a8
tree0dd3b9b5b44e010253b14cebf417bf55b18f949e
parent99be1a66e1fe6c62fbd7c1b0c50ea38c33ffdd5a
btrfs: change test_range_bit to scan the whole range

The semantics of test_range_bit() with filled == 0 is now in it's own
helper so test_range_bit will check the whole range unconditionally.
The detection logic is flipped and assumes success by default and
catches exceptions.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-io-tree.c
fs/btrfs/extent-io-tree.h
fs/btrfs/extent_io.c
fs/btrfs/inode.c
fs/btrfs/relocation.c