btrfs: change extent-same to copy entire argument struct
authorMark Fasheh <mfasheh@suse.de>
Tue, 17 Sep 2013 22:43:54 +0000 (15:43 -0700)
committerChris Mason <chris.mason@fusionio.com>
Sat, 21 Sep 2013 15:05:31 +0000 (11:05 -0400)
commitcbf8b8ca3ec799c11a4cbb29d812d84adf2990b0
treefc3165c1469f1d201123cf579964f33bbe4b65a6
parent93fd63c2f001ca6797c6b15b696a484b165b4800
btrfs: change extent-same to copy entire argument struct

btrfs_ioctl_file_extent_same() uses __put_user_unaligned() to copy some data
back to it's argument struct. Unfortunately, not all architectures provide
__put_user_unaligned(), so compiles break on them if btrfs is selected.

Instead, just copy the whole struct in / out at the start and end of
operations, respectively.

Signed-off-by: Mark Fasheh <mfasheh@suse.de>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/ioctl.c