btrfs-progs: fix unaligned access in raid6 calculations
authorDavid Sterba <dsterba@suse.com>
Thu, 28 Jul 2016 17:56:20 +0000 (19:56 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 29 Jul 2016 13:04:54 +0000 (15:04 +0200)
commitaf1812090bf957cdbc3d2e49e3a2d68b2108a07d
treeda1b08f10df6b426e9bc9cd81009740d51b42390
parent4e4c1e603970a47cc8088d23657a85f2602feef6
btrfs-progs: fix unaligned access in raid6 calculations

The raid6 code matches kernel implementation that also does the
unaligned access. So to keep the code close, add helpers for unaligned
native access and use them. The helpers are local as we don't plan to
use them elsewhere.

Reported-by: Anatoly Pugachev <matorola@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
raid6.c