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
Kirill Smelkov
linux
Commits
66cf191f
Commit
66cf191f
authored
Jan 07, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compat_ioctl: don't pass fd around when not needed
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
b4341721
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
55 deletions
+61
-55
fs/compat_ioctl.c
fs/compat_ioctl.c
+52
-51
fs/internal.h
fs/internal.h
+7
-0
fs/ioctl.c
fs/ioctl.c
+2
-2
include/linux/fs.h
include/linux/fs.h
+0
-2
No files found.
fs/compat_ioctl.c
View file @
66cf191f
This diff is collapsed.
Click to expand it.
fs/internal.h
View file @
66cf191f
...
...
@@ -151,3 +151,10 @@ extern void mnt_pin_kill(struct mount *m);
* fs/nsfs.c
*/
extern
struct
dentry_operations
ns_dentry_operations
;
/*
* fs/ioctl.c
*/
extern
int
do_vfs_ioctl
(
struct
file
*
file
,
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
);
extern
long
vfs_ioctl
(
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
arg
);
fs/ioctl.c
View file @
66cf191f
...
...
@@ -15,6 +15,7 @@
#include <linux/writeback.h>
#include <linux/buffer_head.h>
#include <linux/falloc.h>
#include "internal.h"
#include <asm/ioctls.h>
...
...
@@ -32,8 +33,7 @@
*
* Returns 0 on success, -errno on error.
*/
static
long
vfs_ioctl
(
struct
file
*
filp
,
unsigned
int
cmd
,
unsigned
long
arg
)
long
vfs_ioctl
(
struct
file
*
filp
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
int
error
=
-
ENOTTY
;
...
...
include/linux/fs.h
View file @
66cf191f
...
...
@@ -2764,8 +2764,6 @@ extern int vfs_lstat(const char __user *, struct kstat *);
extern
int
vfs_fstat
(
unsigned
int
,
struct
kstat
*
);
extern
int
vfs_fstatat
(
int
,
const
char
__user
*
,
struct
kstat
*
,
int
);
extern
int
do_vfs_ioctl
(
struct
file
*
filp
,
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
);
extern
int
__generic_block_fiemap
(
struct
inode
*
inode
,
struct
fiemap_extent_info
*
fieinfo
,
loff_t
start
,
loff_t
len
,
...
...
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