summaryrefslogtreecommitdiff
path: root/cmds-qgroup.c
diff options
context:
space:
mode:
authorBen Peddell <klightspeed@killerwolves.net>2013-01-27 15:45:43 +1000
committerDavid Sterba <dsterba@suse.cz>2013-01-28 18:06:43 +0100
commit7b668965f0cf3fb8632c505a7a011189ee1a5a8e (patch)
treeed4755aba4bd2c26a232545dc2d636ac83835251 /cmds-qgroup.c
parent272c04915252c497c64fd4036b601b82c3368bbd (diff)
btrfs-progs: fix unaligned accesses v2
gcc optimizes out the memcpy calls at -O2 and -Os. Replacing memcpy with memmove does't work - gcc treats memmove the same way it treats memcpy. This patch brings in {get|put}_unaligned_le{16|32|64} (using the packed struct method), and uses them in the failing get/set calls. On architectures where unaligned accesses are cheap, these unaligned macros should be optimized out by the compiler. Signed-off-by: Ben Peddell <klightspeed@killerwolves.net>
Diffstat (limited to 'cmds-qgroup.c')
0 files changed, 0 insertions, 0 deletions