summaryrefslogtreecommitdiff
path: root/drivers/amba
diff options
context:
space:
mode:
authorFeifei Xu <xufeifei@linux.vnet.ibm.com>2016-06-01 14:18:30 +0300
committerDavid Sterba <dsterba@suse.com>2016-06-06 18:17:12 +0300
commit34b3e6c92af1fa3f7067e4fa05ffa9d8bd41c96c (patch)
tree208cee1e558dad9d6693e924ecf25a13128c4ee2 /drivers/amba
parent36b3dc05b4650e81eca7d60d548a92b014595eb1 (diff)
downloadlinux-34b3e6c92af1fa3f7067e4fa05ffa9d8bd41c96c.tar.xz
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>
Diffstat (limited to 'drivers/amba')
0 files changed, 0 insertions, 0 deletions