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
d5e50f74
Commit
d5e50f74
authored
Nov 24, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vfs: spread struct mount to remaining users of ->mnt_hash
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
cb338d06
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
fs/namespace.c
fs/namespace.c
+13
-13
No files found.
fs/namespace.c
View file @
d5e50f74
...
...
@@ -199,7 +199,7 @@ static struct mount *alloc_vfsmnt(const char *name)
mnt
->
mnt_writers
=
0
;
#endif
INIT_LIST_HEAD
(
&
mnt
->
mnt_hash
);
INIT_LIST_HEAD
(
&
p
->
mnt
.
mnt_hash
);
INIT_LIST_HEAD
(
&
mnt
->
mnt_child
);
INIT_LIST_HEAD
(
&
mnt
->
mnt_mounts
);
INIT_LIST_HEAD
(
&
mnt
->
mnt_list
);
...
...
@@ -540,10 +540,10 @@ static void dentry_reset_mounted(struct dentry *dentry)
unsigned
u
;
for
(
u
=
0
;
u
<
HASH_SIZE
;
u
++
)
{
struct
vfs
mount
*
p
;
struct
mount
*
p
;
list_for_each_entry
(
p
,
&
mount_hashtable
[
u
],
mnt_hash
)
{
if
(
p
->
mnt_mountpoint
==
dentry
)
list_for_each_entry
(
p
,
&
mount_hashtable
[
u
],
mnt
.
mnt
_hash
)
{
if
(
p
->
mnt
.
mnt
_mountpoint
==
dentry
)
return
;
}
}
...
...
@@ -1191,25 +1191,25 @@ EXPORT_SYMBOL(may_umount);
void
release_mounts
(
struct
list_head
*
head
)
{
struct
vfs
mount
*
mnt
;
struct
mount
*
mnt
;
while
(
!
list_empty
(
head
))
{
mnt
=
list_first_entry
(
head
,
struct
vfsmount
,
mnt_hash
);
list_del_init
(
&
mnt
->
mnt_hash
);
if
(
mnt_has_parent
(
mnt
))
{
mnt
=
list_first_entry
(
head
,
struct
mount
,
mnt
.
mnt_hash
);
list_del_init
(
&
mnt
->
mnt
.
mnt
_hash
);
if
(
mnt_has_parent
(
&
mnt
->
mnt
))
{
struct
dentry
*
dentry
;
struct
vfsmount
*
m
;
br_write_lock
(
vfsmount_lock
);
dentry
=
mnt
->
mnt_mountpoint
;
m
=
mnt
->
mnt_parent
;
mnt
->
mnt
_mountpoint
=
mnt
->
mnt_root
;
mnt
->
mnt
_parent
=
mnt
;
dentry
=
mnt
->
mnt
.
mnt
_mountpoint
;
m
=
mnt
->
mnt
.
mnt
_parent
;
mnt
->
mnt
.
mnt_mountpoint
=
mnt
->
mnt
.
mnt_root
;
mnt
->
mnt
.
mnt_parent
=
&
mnt
->
mnt
;
m
->
mnt_ghosts
--
;
br_write_unlock
(
vfsmount_lock
);
dput
(
dentry
);
mntput
(
m
);
}
mntput
(
mnt
);
mntput
(
&
mnt
->
mnt
);
}
}
...
...
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