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
44d964d6
Commit
44d964d6
authored
Nov 24, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vfs: spread struct mount mnt_set_mountpoint child argument
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
87129cc0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
fs/namespace.c
fs/namespace.c
+5
-5
fs/pnode.c
fs/pnode.c
+1
-1
fs/pnode.h
fs/pnode.h
+1
-1
No files found.
fs/namespace.c
View file @
44d964d6
...
...
@@ -570,10 +570,10 @@ static void detach_mnt(struct mount *mnt, struct path *old_path)
* vfsmount lock must be held for write
*/
void
mnt_set_mountpoint
(
struct
vfsmount
*
mnt
,
struct
dentry
*
dentry
,
struct
vfs
mount
*
child_mnt
)
struct
mount
*
child_mnt
)
{
child_mnt
->
mnt_parent
=
mntget
(
mnt
);
child_mnt
->
mnt_mountpoint
=
dget
(
dentry
);
child_mnt
->
mnt
.
mnt
_parent
=
mntget
(
mnt
);
child_mnt
->
mnt
.
mnt
_mountpoint
=
dget
(
dentry
);
spin_lock
(
&
dentry
->
d_lock
);
dentry
->
d_flags
|=
DCACHE_MOUNTED
;
spin_unlock
(
&
dentry
->
d_lock
);
...
...
@@ -584,7 +584,7 @@ void mnt_set_mountpoint(struct vfsmount *mnt, struct dentry *dentry,
*/
static
void
attach_mnt
(
struct
mount
*
mnt
,
struct
path
*
path
)
{
mnt_set_mountpoint
(
path
->
mnt
,
path
->
dentry
,
&
mnt
->
mnt
);
mnt_set_mountpoint
(
path
->
mnt
,
path
->
dentry
,
mnt
);
list_add_tail
(
&
mnt
->
mnt_hash
,
mount_hashtable
+
hash
(
path
->
mnt
,
path
->
dentry
));
list_add_tail
(
&
mnt
->
mnt
.
mnt_child
,
&
path
->
mnt
->
mnt_mounts
);
...
...
@@ -1617,7 +1617,7 @@ static int attach_recursive_mnt(struct mount *source_mnt,
attach_mnt
(
source_mnt
,
path
);
touch_mnt_namespace
(
parent_path
->
mnt
->
mnt_ns
);
}
else
{
mnt_set_mountpoint
(
dest_mnt
,
dest_dentry
,
&
source_mnt
->
mnt
);
mnt_set_mountpoint
(
dest_mnt
,
dest_dentry
,
source_
mnt
);
commit_tree
(
source_mnt
);
}
...
...
fs/pnode.c
View file @
44d964d6
...
...
@@ -246,7 +246,7 @@ int propagate_mnt(struct vfsmount *dest_mnt, struct dentry *dest_dentry,
}
if
(
is_subdir
(
dest_dentry
,
m
->
mnt_root
))
{
mnt_set_mountpoint
(
m
,
dest_dentry
,
&
child
->
mnt
);
mnt_set_mountpoint
(
m
,
dest_dentry
,
child
);
list_add_tail
(
&
child
->
mnt_hash
,
tree_list
);
}
else
{
/*
...
...
fs/pnode.h
View file @
44d964d6
...
...
@@ -38,7 +38,7 @@ void mnt_release_group_id(struct mount *);
int
get_dominating_id
(
struct
vfsmount
*
mnt
,
const
struct
path
*
root
);
unsigned
int
mnt_get_count
(
struct
vfsmount
*
mnt
);
void
mnt_set_mountpoint
(
struct
vfsmount
*
,
struct
dentry
*
,
struct
vfs
mount
*
);
struct
mount
*
);
void
release_mounts
(
struct
list_head
*
);
void
umount_tree
(
struct
mount
*
,
int
,
struct
list_head
*
);
struct
mount
*
copy_tree
(
struct
mount
*
,
struct
dentry
*
,
int
);
...
...
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