]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/fhandle.c
f2fs: avoid cpu lockup
[mirror_ubuntu-bionic-kernel.git] / fs / fhandle.c
index 5559168d5637310d2712eab97af1117a786cfba1..58a61f55e0d09f868bb1bac6a0b4d6e5042822ad 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/fsnotify.h>
 #include <linux/personality.h>
 #include <linux/uaccess.h>
+#include <linux/compat.h>
 #include "internal.h"
 #include "mount.h"
 
@@ -264,3 +265,15 @@ SYSCALL_DEFINE3(open_by_handle_at, int, mountdirfd,
        ret = do_handle_open(mountdirfd, handle, flags);
        return ret;
 }
+
+#ifdef CONFIG_COMPAT
+/*
+ * Exactly like fs/open.c:sys_open_by_handle_at(), except that it
+ * doesn't set the O_LARGEFILE flag.
+ */
+COMPAT_SYSCALL_DEFINE3(open_by_handle_at, int, mountdirfd,
+                            struct file_handle __user *, handle, int, flags)
+{
+       return do_handle_open(mountdirfd, handle, flags);
+}
+#endif