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
be71e25f
Commit
be71e25f
authored
Jun 18, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Jun 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sparse: autofs annotation
parent
09fe6242
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
fs/autofs/root.c
fs/autofs/root.c
+7
-6
No files found.
fs/autofs/root.c
View file @
be71e25f
...
...
@@ -468,7 +468,7 @@ static int autofs_root_mkdir(struct inode *dir, struct dentry *dentry, int mode)
/* Get/set timeout ioctl() operation */
static
inline
int
autofs_get_set_timeout
(
struct
autofs_sb_info
*
sbi
,
unsigned
long
*
p
)
unsigned
long
__user
*
p
)
{
unsigned
long
ntimeout
;
...
...
@@ -485,7 +485,7 @@ static inline int autofs_get_set_timeout(struct autofs_sb_info *sbi,
}
/* Return protocol version */
static
inline
int
autofs_get_protover
(
int
*
p
)
static
inline
int
autofs_get_protover
(
int
__user
*
p
)
{
return
put_user
(
AUTOFS_PROTO_VERSION
,
p
);
}
...
...
@@ -494,7 +494,7 @@ static inline int autofs_get_protover(int *p)
static
inline
int
autofs_expire_run
(
struct
super_block
*
sb
,
struct
autofs_sb_info
*
sbi
,
struct
vfsmount
*
mnt
,
struct
autofs_packet_expire
*
pkt_p
)
struct
autofs_packet_expire
__user
*
pkt_p
)
{
struct
autofs_dir_ent
*
ent
;
struct
autofs_packet_expire
pkt
;
...
...
@@ -526,6 +526,7 @@ static int autofs_root_ioctl(struct inode *inode, struct file *filp,
unsigned
int
cmd
,
unsigned
long
arg
)
{
struct
autofs_sb_info
*
sbi
=
autofs_sbi
(
inode
->
i_sb
);
void
__user
*
argp
=
(
void
__user
*
)
arg
;
DPRINTK
((
"autofs_ioctl: cmd = 0x%08x, arg = 0x%08lx, sbi = %p, pgrp = %u
\n
"
,
cmd
,
arg
,
sbi
,
process_group
(
current
)));
...
...
@@ -545,12 +546,12 @@ static int autofs_root_ioctl(struct inode *inode, struct file *filp,
autofs_catatonic_mode
(
sbi
);
return
0
;
case
AUTOFS_IOC_PROTOVER
:
/* Get protocol version */
return
autofs_get_protover
(
(
int
*
)
arg
);
return
autofs_get_protover
(
argp
);
case
AUTOFS_IOC_SETTIMEOUT
:
return
autofs_get_set_timeout
(
sbi
,
(
unsigned
long
*
)
arg
);
return
autofs_get_set_timeout
(
sbi
,
argp
);
case
AUTOFS_IOC_EXPIRE
:
return
autofs_expire_run
(
inode
->
i_sb
,
sbi
,
filp
->
f_vfsmnt
,
(
struct
autofs_packet_expire
*
)
arg
);
argp
);
default:
return
-
ENOSYS
;
}
...
...
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