From 4dc467756e77838c592a6dc797434f11761d33f5 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Thu, 26 Jul 2007 03:38:24 +0100 Subject: [MIPS] Wire up the fallocate syscall. Signed-off-by: Ralf Baechle --- arch/mips/kernel/linux32.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'arch/mips/kernel/linux32.c') diff --git a/arch/mips/kernel/linux32.c b/arch/mips/kernel/linux32.c index c37568d6fb55..135d9a5fe337 100644 --- a/arch/mips/kernel/linux32.c +++ b/arch/mips/kernel/linux32.c @@ -566,6 +566,13 @@ asmlinkage long sys32_fadvise64_64(int fd, int __pad, flags); } +asmlinkage long sys32_fallocate(int fd, int mode, unsigned offset_a2, + unsigned offset_a3, unsigned len_a4, unsigned len_a5) +{ + return sys_fallocate(fd, mode, merge_64(offset_a2, offset_a3), + merge_64(len_a4, len_a5)); +} + save_static_function(sys32_clone); static int noinline __used _sys32_clone(nabi_no_regargs struct pt_regs regs) -- cgit v1.2.3