]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PARISC] Wire up sys_fallocate (and compat_sys_fallocate)
authorKyle McMartin <kyle@mcmartin.ca>
Fri, 28 Sep 2007 17:25:59 +0000 (13:25 -0400)
committerKyle McMartin <kyle@shortfin.cabal.ca>
Thu, 18 Oct 2007 07:58:26 +0000 (00:58 -0700)
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
arch/parisc/kernel/sys_parisc32.c
arch/parisc/kernel/syscall_table.S
include/asm-parisc/unistd.h

index 2989c6682bf68702615585ceadc13505aab2d4c7..50bbf33ee00c3d6d40d692640a9c8669faba6d97 100644 (file)
@@ -473,3 +473,10 @@ long sys32_lookup_dcookie(u32 cookie_high, u32 cookie_low, char __user *buf,
        return sys_lookup_dcookie((u64)cookie_high << 32 | cookie_low,
                                  buf, len);
 }
+
+asmlinkage long compat_sys_fallocate(int fd, int mode, u32 offhi, u32 offlo,
+                               u32 lenhi, u32 lenlo)
+{
+        return sys_fallocate(fd, mode, ((loff_t)offhi << 32) | offlo,
+                             ((loff_t)lenhi << 32) | lenlo);
+}
index 2540786a970f43c0a43da71c82e805a0fe0bd212..117438e9eb2a8329a932c17b5b184095982c39dc 100644 (file)
        ENTRY_COMP(signalfd)
        ENTRY_COMP(timerfd)
        ENTRY_SAME(eventfd)
+       ENTRY_COMP(fallocate)           /* 305 */
 
        /* Nothing yet */
 
index f74099bdca3c11c6ee99e106146041c6587c0ad0..081b4ae6186682aeaeffff35a677eab29b869f95 100644 (file)
 #define __NR_signalfd          (__NR_Linux + 302)
 #define __NR_timerfd           (__NR_Linux + 303)
 #define __NR_eventfd           (__NR_Linux + 304)
+#define __NR_fallocate         (__NR_Linux + 305)
 
-#define __NR_Linux_syscalls    (__NR_eventfd + 1)
+#define __NR_Linux_syscalls    (__NR_fallocate + 1)
 
 
 #define __IGNORE_select                /* newselect */