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
1e2d8464
Commit
1e2d8464
authored
Jun 18, 2021
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
constify struct path argument of finish_automount()/do_add_mount()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
c51acdb7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
fs/internal.h
fs/internal.h
+1
-1
fs/namespace.c
fs/namespace.c
+2
-2
No files found.
fs/internal.h
View file @
1e2d8464
...
...
@@ -74,7 +74,7 @@ int do_linkat(int olddfd, struct filename *old, int newdfd,
* namespace.c
*/
extern
struct
vfsmount
*
lookup_mnt
(
const
struct
path
*
);
extern
int
finish_automount
(
struct
vfsmount
*
,
struct
path
*
);
extern
int
finish_automount
(
struct
vfsmount
*
,
const
struct
path
*
);
extern
int
sb_prepare_remount_readonly
(
struct
super_block
*
);
...
...
fs/namespace.c
View file @
1e2d8464
...
...
@@ -2876,7 +2876,7 @@ static int do_move_mount_old(struct path *path, const char *old_name)
* add a mount into a namespace's mount tree
*/
static
int
do_add_mount
(
struct
mount
*
newmnt
,
struct
mountpoint
*
mp
,
struct
path
*
path
,
int
mnt_flags
)
const
struct
path
*
path
,
int
mnt_flags
)
{
struct
mount
*
parent
=
real_mount
(
path
->
mnt
);
...
...
@@ -2999,7 +2999,7 @@ static int do_new_mount(struct path *path, const char *fstype, int sb_flags,
return
err
;
}
int
finish_automount
(
struct
vfsmount
*
m
,
struct
path
*
path
)
int
finish_automount
(
struct
vfsmount
*
m
,
const
struct
path
*
path
)
{
struct
dentry
*
dentry
=
path
->
dentry
;
struct
mountpoint
*
mp
;
...
...
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