linux/fs/btrfs/tests
Feifei Xu 34b3e6c92a Btrfs: self-tests: Fix extent buffer bitmap test fail on BE system
In __test_eb_bitmaps(), we write random data to a bitmap. Then copy
the bitmap to another bitmap that resides inside an extent buffer.
Later we verify the values of corresponding bits in the bitmap and the
bitmap inside the extent buffer. However, extent_buffer_test_bit()
reads in byte granularity while test_bit() reads in unsigned long
granularity. Hence we end up comparing wrong bits on big-endian
systems such as ppc64. This commit fixes the issue by reading the
bitmap in byte granularity.

Reviewed-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Signed-off-by: Feifei Xu <xufeifei@linux.vnet.ibm.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2016-06-06 17:17:12 +02:00
..
btrfs-tests.c Btrfs: self-tests: Support non-4k page size 2016-06-02 19:23:14 +02:00
btrfs-tests.h Btrfs: self-tests: Support non-4k page size 2016-06-02 19:23:14 +02:00
extent-buffer-tests.c Btrfs: self-tests: Use macros instead of constants and add missing newline 2016-06-06 17:17:12 +02:00
extent-io-tests.c Btrfs: self-tests: Fix extent buffer bitmap test fail on BE system 2016-06-06 17:17:12 +02:00
free-space-tests.c Btrfs: self-tests: Fix test_bitmaps fail on 64k sectorsize 2016-06-06 17:17:12 +02:00
free-space-tree-tests.c Btrfs: self-tests: Support non-4k page size 2016-06-02 19:23:14 +02:00
inode-tests.c Btrfs: self-tests: Support non-4k page size 2016-06-02 19:23:14 +02:00
qgroup-tests.c Btrfs: self-tests: Use macros instead of constants and add missing newline 2016-06-06 17:17:12 +02:00