OSDN Git Service

kernel: add kcompat_sys_{f,}statfs64()
authorMark Rutland <mark.rutland@arm.com>
Wed, 11 Jul 2018 13:56:51 +0000 (14:56 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 12 Jul 2018 13:49:48 +0000 (14:49 +0100)
commit9b54bf9d6a5b30e2cc22b18793e9a4158c5b4882
tree2239cebf690d0e02e630567eec999229d27e74cf
parentbf1c77b4644f46d2986b7ca5e43e012f0fc8984b
kernel: add kcompat_sys_{f,}statfs64()

Using this helper allows us to avoid the in-kernel calls to the
compat_sys_{f,}statfs64() sycalls, as are necessary for parameter
mangling in arm64's compat handling.

Following the example of ksys_* functions, kcompat_sys_* functions are
intended to be a drop-in replacement for their compat_sys_*
counterparts, with the same calling convention.

This is necessary to enable conversion of arm64's syscall handling to
use pt_regs wrappers.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Will Deacon <will.deacon@arm.com>
fs/statfs.c
include/linux/compat.h