summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2020-08-14 11:35:16 +0200
committerDavid Sterba <dsterba@suse.com>2023-10-12 16:44:14 +0200
commit893fe2439994666d94dbe19f5fd59cec17c8f0a8 (patch)
tree0dd3b9b5b44e010253b14cebf417bf55b18f949e /fs/btrfs/extent_io.c
parent99be1a66e1fe6c62fbd7c1b0c50ea38c33ffdd5a (diff)
downloadlinux-stable-893fe2439994666d94dbe19f5fd59cec17c8f0a8.tar.gz
linux-stable-893fe2439994666d94dbe19f5fd59cec17c8f0a8.tar.bz2
linux-stable-893fe2439994666d94dbe19f5fd59cec17c8f0a8.zip
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>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index ffd0be61ef77..03cef28d9e37 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -394,7 +394,7 @@ again:
/* then test to make sure it is all still delalloc */
ret = test_range_bit(tree, delalloc_start, delalloc_end,
- EXTENT_DELALLOC, 1, cached_state);
+ EXTENT_DELALLOC, cached_state);
if (!ret) {
unlock_extent(tree, delalloc_start, delalloc_end,
&cached_state);