Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
2b891026
Commit
2b891026
authored
Apr 08, 2017
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fhandle: move compat syscalls from compat.c
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
e35d49f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
14 deletions
+13
-14
fs/compat.c
fs/compat.c
+0
-12
fs/fhandle.c
fs/fhandle.c
+13
-0
fs/internal.h
fs/internal.h
+0
-2
No files found.
fs/compat.c
View file @
2b891026
...
...
@@ -310,15 +310,3 @@ COMPAT_SYSCALL_DEFINE5(mount, const char __user *, dev_name,
out:
return
retval
;
}
#ifdef CONFIG_FHANDLE
/*
* 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
fs/fhandle.c
View file @
2b891026
...
...
@@ -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
fs/internal.h
View file @
2b891026
...
...
@@ -108,8 +108,6 @@ extern struct file *do_filp_open(int dfd, struct filename *pathname,
extern
struct
file
*
do_file_open_root
(
struct
dentry
*
,
struct
vfsmount
*
,
const
char
*
,
const
struct
open_flags
*
);
extern
long
do_handle_open
(
int
mountdirfd
,
struct
file_handle
__user
*
ufh
,
int
open_flag
);
extern
int
open_check_o_direct
(
struct
file
*
f
);
extern
int
vfs_open
(
const
struct
path
*
,
struct
file
*
,
const
struct
cred
*
);
extern
struct
file
*
filp_clone_open
(
struct
file
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment