aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorOmar Sandoval <[email protected]>2016-09-23 00:24:20 +0000
committerDavid Sterba <[email protected]>2016-10-03 16:52:14 +0000
commit2fe1d55134fce05c17ea118a2e37a4af771887bc (patch)
tree1a62e8f01bf5046337072e950c5d329c30611e6e /lib/debugobjects.c
parentLinux 4.8-rc8 (diff)
downloadkernel-2fe1d55134fce05c17ea118a2e37a4af771887bc.tar.gz
kernel-2fe1d55134fce05c17ea118a2e37a4af771887bc.zip
Btrfs: fix free space tree bitmaps on big-endian systems
In convert_free_space_to_{bitmaps,extents}(), we buffer the free space bitmaps in memory and copy them directly to/from the extent buffers with {read,write}_extent_buffer(). The extent buffer bitmap helpers use byte granularity, which is equivalent to a little-endian bitmap. This means that on big-endian systems, the in-memory bitmaps will be written to disk byte-swapped. To fix this, use byte-granularity for the bitmaps in memory. Fixes: a5ed91828518 ("Btrfs: implement the free space B-tree") Cc: [email protected] # 4.5+ Tested-by: Holger Hoffstätte <[email protected]> Tested-by: Chandan Rajendra <[email protected]> Signed-off-by: Omar Sandoval <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions