]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
wire up fanotify syscalls
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 15 Apr 2011 15:55:44 +0000 (08:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Jun 2011 01:33:50 +0000 (10:33 +0900)
commit 1824074b07ee66fa0f714e08579ad85075132d7b upstream.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/parisc/include/asm/unistd.h
arch/parisc/kernel/sys_parisc32.c
arch/parisc/kernel/syscall_table.S

index 3eb82c2a5ec338973d70daf0628a4fbcb8bcacec..09f62a6eb0696b43001d661bcdf73d25b95ce597 100644 (file)
 #define __NR_recvmmsg          (__NR_Linux + 319)
 #define __NR_accept4           (__NR_Linux + 320)
 #define __NR_prlimit64         (__NR_Linux + 321)
+#define __NR_fanotify_init     (__NR_Linux + 322)
+#define __NR_fanotify_mark     (__NR_Linux + 323)
 
-#define __NR_Linux_syscalls    (__NR_prlimit64 + 1)
+#define __NR_Linux_syscalls    (__NR_fanotify_mark + 1)
 
 
 #define __IGNORE_select                /* newselect */
index 88a0ad14a9c99a466c9aaaf6ba6459868a61d1fa..dc9a624623233e0e9f084e3659e65e37bf28df47 100644 (file)
@@ -228,3 +228,11 @@ asmlinkage long compat_sys_fallocate(int fd, int mode, u32 offhi, u32 offlo,
         return sys_fallocate(fd, mode, ((loff_t)offhi << 32) | offlo,
                              ((loff_t)lenhi << 32) | lenlo);
 }
+
+asmlinkage long compat_sys_fanotify_mark(int fan_fd, int flags, u32 mask_hi,
+                                        u32 mask_lo, int fd,
+                                        const char __user *pathname)
+{
+       return sys_fanotify_mark(fan_fd, flags, ((u64)mask_hi << 32) | mask_lo,
+                                fd, pathname);
+}
index 74867dfdabe572c4e4758605091aa1aaf4db4881..6ae4b3969bc024cdc4df82c60fa3b4703de07e4b 100644 (file)
        ENTRY_COMP(recvmmsg)
        ENTRY_SAME(accept4)             /* 320 */
        ENTRY_SAME(prlimit64)
+       ENTRY_SAME(fanotify_init)
+       ENTRY_COMP(fanotify_mark)
 
        /* Nothing yet */