MIPS: Wire up syncfs(2).
authorRalf Baechle <ralf@linux-mips.org>
Fri, 25 Mar 2011 17:45:20 +0000 (18:45 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 25 Mar 2011 17:45:20 +0000 (18:45 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/unistd.h
arch/mips/kernel/scall32-o32.S
arch/mips/kernel/scall64-64.S
arch/mips/kernel/scall64-n32.S
arch/mips/kernel/scall64-o32.S

index d1ea5ea7802af339d13ee163242579e0ede36800..dae22c1d2c8287f2ce2b4ed24f8a0c98eaad0f15 100644 (file)
 #define __NR_name_to_handle_at         (__NR_Linux + 339)
 #define __NR_open_by_handle_at         (__NR_Linux + 340)
 #define __NR_clock_adjtime             (__NR_Linux + 341)
+#define __NR_syncfs                    (__NR_Linux + 342)
 
 /*
  * Offset of the last Linux o32 flavoured syscall
  */
-#define __NR_Linux_syscalls            341
+#define __NR_Linux_syscalls            342
 
 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
 
 #define __NR_O32_Linux                 4000
-#define __NR_O32_Linux_syscalls                341
+#define __NR_O32_Linux_syscalls                342
 
 #if _MIPS_SIM == _MIPS_SIM_ABI64
 
 #define __NR_name_to_handle_at         (__NR_Linux + 298)
 #define __NR_open_by_handle_at         (__NR_Linux + 299)
 #define __NR_clock_adjtime             (__NR_Linux + 300)
+#define __NR_syncfs                    (__NR_Linux + 301)
 
 /*
  * Offset of the last Linux 64-bit flavoured syscall
  */
-#define __NR_Linux_syscalls            300
+#define __NR_Linux_syscalls            301
 
 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
 
 #define __NR_64_Linux                  5000
-#define __NR_64_Linux_syscalls         300
+#define __NR_64_Linux_syscalls         301
 
 #if _MIPS_SIM == _MIPS_SIM_NABI32
 
 #define __NR_name_to_handle_at         (__NR_Linux + 303)
 #define __NR_open_by_handle_at         (__NR_Linux + 304)
 #define __NR_clock_adjtime             (__NR_Linux + 305)
+#define __NR_clock_adjtime             (__NR_Linux + 306)
 
 /*
  * Offset of the last N32 flavoured syscall
  */
-#define __NR_Linux_syscalls            305
+#define __NR_Linux_syscalls            306
 
 #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
 
 #define __NR_N32_Linux                 6000
-#define __NR_N32_Linux_syscalls                305
+#define __NR_N32_Linux_syscalls                306
 
 #ifdef __KERNEL__
 
index 66b439db91b5e1defbff204d0eef87754fb37a66..7f5468b38d4cb08e3b1b6abf7bce6b8733003b41 100644 (file)
@@ -589,6 +589,7 @@ einval:     li      v0, -ENOSYS
        sys     sys_name_to_handle_at   5
        sys     sys_open_by_handle_at   3       /* 4340 */
        sys     sys_clock_adjtime       2
+       sys     sys_syncfs              1
        .endm
 
        /* We pre-compute the number of _instruction_ bytes needed to
index 0ccd6e363b79daab89466fc5c0c0a46ace6236aa..a2e1fcbc41dce87add7a456301548fb1f38aaba6 100644 (file)
@@ -428,4 +428,5 @@ sys_call_table:
        PTR     sys_name_to_handle_at
        PTR     sys_open_by_handle_at
        PTR     sys_clock_adjtime               /* 5300 */
+       PTR     sys_syncfs
        .size   sys_call_table,.-sys_call_table
index 179d1c8dcbb2d0a22f13bbe59145f6426b8fe037..b2c7624995b8068e3d8ae21b7faa56c016225ec9 100644 (file)
@@ -428,4 +428,5 @@ EXPORT(sysn32_call_table)
        PTR     sys_name_to_handle_at
        PTR     sys_open_by_handle_at
        PTR     compat_sys_clock_adjtime        /* 6305 */
+       PTR     sys_syncfs
        .size   sysn32_call_table,.-sysn32_call_table
index 5c4e0dc52f7873b65d9a8a466e0346b1c4f4a500..049a9c8c49a0fbf2f12055d4d98ad4e87d5ca8d0 100644 (file)
@@ -546,4 +546,5 @@ sys_call_table:
        PTR     sys_name_to_handle_at
        PTR     compat_sys_open_by_handle_at    /* 4340 */
        PTR     compat_sys_clock_adjtime
+       PTR     sys_syncfs
        .size   sys_call_table,.-sys_call_table
This page took 0.03234 seconds and 5 git commands to generate.