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
be08d6d2
Commit
be08d6d2
authored
Dec 06, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch mnt_namespace ->root to struct mount
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
0226f492
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
fs/mount.h
fs/mount.h
+1
-1
fs/namespace.c
fs/namespace.c
+6
-6
No files found.
fs/mount.h
View file @
be08d6d2
...
...
@@ -4,7 +4,7 @@
struct
mnt_namespace
{
atomic_t
count
;
struct
vfs
mount
*
root
;
struct
mount
*
root
;
struct
list_head
list
;
wait_queue_head_t
poll
;
int
event
;
...
...
fs/namespace.c
View file @
be08d6d2
...
...
@@ -2197,7 +2197,7 @@ static struct mnt_namespace *dup_mnt_ns(struct mnt_namespace *mnt_ns,
struct
mnt_namespace
*
new_ns
;
struct
vfsmount
*
rootmnt
=
NULL
,
*
pwdmnt
=
NULL
;
struct
mount
*
p
,
*
q
;
struct
mount
*
old
=
real_mount
(
mnt_ns
->
root
)
;
struct
mount
*
old
=
mnt_ns
->
root
;
struct
mount
*
new
;
new_ns
=
alloc_mnt_ns
();
...
...
@@ -2212,7 +2212,7 @@ static struct mnt_namespace *dup_mnt_ns(struct mnt_namespace *mnt_ns,
kfree
(
new_ns
);
return
ERR_PTR
(
-
ENOMEM
);
}
new_ns
->
root
=
&
new
->
mnt
;
new_ns
->
root
=
new
;
br_write_lock
(
vfsmount_lock
);
list_add_tail
(
&
new_ns
->
list
,
&
new
->
mnt_list
);
br_write_unlock
(
vfsmount_lock
);
...
...
@@ -2282,7 +2282,7 @@ static struct mnt_namespace *create_mnt_ns(struct vfsmount *m)
struct
mount
*
mnt
=
real_mount
(
m
);
mnt
->
mnt_ns
=
new_ns
;
__mnt_make_longterm
(
mnt
);
new_ns
->
root
=
m
;
new_ns
->
root
=
m
nt
;
list_add
(
&
new_ns
->
list
,
&
mnt
->
mnt_list
);
}
else
{
mntput
(
m
);
...
...
@@ -2512,8 +2512,8 @@ static void __init init_mount_tree(void)
init_task
.
nsproxy
->
mnt_ns
=
ns
;
get_mnt_ns
(
ns
);
root
.
mnt
=
ns
->
roo
t
;
root
.
dentry
=
ns
->
roo
t
->
mnt_root
;
root
.
mnt
=
mn
t
;
root
.
dentry
=
mn
t
->
mnt_root
;
set_fs_pwd
(
current
->
fs
,
&
root
);
set_fs_root
(
current
->
fs
,
&
root
);
...
...
@@ -2560,7 +2560,7 @@ void put_mnt_ns(struct mnt_namespace *ns)
return
;
down_write
(
&
namespace_sem
);
br_write_lock
(
vfsmount_lock
);
umount_tree
(
real_mount
(
ns
->
root
)
,
0
,
&
umount_list
);
umount_tree
(
ns
->
root
,
0
,
&
umount_list
);
br_write_unlock
(
vfsmount_lock
);
up_write
(
&
namespace_sem
);
release_mounts
(
&
umount_list
);
...
...
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