]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9a1485687e3d1720e7c3a463f1ff3c871086cf83
tree2239cebf690d0e02e630567eec999229d27e74cf
parentf6f46f7595638ce41d88d3d145a242fed7551cdd
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