summaryrefslogtreecommitdiff
path: root/extent_io.c
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2016-07-15 12:12:48 -0700
committerDavid Sterba <dsterba@suse.com>2016-07-26 18:35:05 +0200
commit1d6c7cb725bb7d25981d44915b316e24751b7b72 (patch)
tree7199982cc55d2a8631191bcd98ac9cbabd54f3b9 /extent_io.c
parent029772be1152bbdf921ee74b95cfcde4003f5e46 (diff)
btrfs-progs: fix btrfsck of space_cache=v2 bitmaps on big-endian
Copy le_test_bit() from the kernel and use that for the free space tree bitmaps. Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'extent_io.c')
-rw-r--r--extent_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extent_io.c b/extent_io.c
index c99d3627..d956c573 100644
--- a/extent_io.c
+++ b/extent_io.c
@@ -889,5 +889,5 @@ void memset_extent_buffer(struct extent_buffer *eb, char c,
int extent_buffer_test_bit(struct extent_buffer *eb, unsigned long start,
unsigned long nr)
{
- return test_bit(nr, (unsigned long *)(eb->data + start));
+ return le_test_bit(nr, (u8 *)eb->data + start);
}