From: Tao Ma Date: Wed, 27 Jan 2010 02:21:52 +0000 (+0800) Subject: ocfs2: Use compat_ptr in reflink_arguments. X-Git-Tag: v2.6.33-rc8~38^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34e6c59af06cbca07b1490ec0015ea2d303470d3;p=pandora-kernel.git ocfs2: Use compat_ptr in reflink_arguments. Although we use u64 to pass userspace pointers to the kernel to avoid compat_ioctl, it doesn't work in some ppc platform. So wrap them with compat_ptr and add compat_ioctl. The detailed discussion about compat_ptr can be found in thread http://lkml.org/lkml/2009/10/27/423. We indeed met with a bug when testing on ppc(-EFAULT is returned when using old_path). This patch try to fix this. I have tested in ppc64(with 32 bit reflink) and x86_64(with i686 reflink), both works. Signed-off-by: Tao Ma Signed-off-by: Joel Becker --- Reading git-diff-tree failed