btrfs: use memdup_user()
commitdae7b665cf6d6e6e733f1c9c16cf55547dd37e33
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 8 Apr 2009 07:06:54 +0000 (8 15:06 +0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 21 Apr 2009 03:02:50 +0000 (20 23:02 -0400)
treeab7f9fc54bcf735c7f331f78858ec0db7f634cdd
parent3939fcde24473dc09ce16e922c88df9b3bee45d9
btrfs: use memdup_user()

Remove open-coded memdup_user().

Note this changes some GFP_NOFS to GFP_KERNEL, since copy_from_user() may
cause pagefault, it's pointless to pass GFP_NOFS to kmalloc().

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/btrfs/ioctl.c
fs/btrfs/super.c