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
5b5577e4
Commit
5b5577e4
authored
Nov 20, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
autofs: constify find_autofs_mount() callback
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
71215a75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fs/autofs4/dev-ioctl.c
fs/autofs4/dev-ioctl.c
+3
-3
No files found.
fs/autofs4/dev-ioctl.c
View file @
5b5577e4
...
...
@@ -204,7 +204,7 @@ static int autofs_dev_ioctl_protosubver(struct file *fp,
/* Find the topmost mount satisfying test() */
static
int
find_autofs_mount
(
const
char
*
pathname
,
struct
path
*
res
,
int
test
(
struct
path
*
path
,
void
*
data
),
int
test
(
const
struct
path
*
path
,
void
*
data
),
void
*
data
)
{
struct
path
path
;
...
...
@@ -230,12 +230,12 @@ static int find_autofs_mount(const char *pathname,
return
err
;
}
static
int
test_by_dev
(
struct
path
*
path
,
void
*
p
)
static
int
test_by_dev
(
const
struct
path
*
path
,
void
*
p
)
{
return
path
->
dentry
->
d_sb
->
s_dev
==
*
(
dev_t
*
)
p
;
}
static
int
test_by_type
(
struct
path
*
path
,
void
*
p
)
static
int
test_by_type
(
const
struct
path
*
path
,
void
*
p
)
{
struct
autofs_info
*
ino
=
autofs4_dentry_ino
(
path
->
dentry
);
...
...
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