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
84d17192
Commit
84d17192
authored
Mar 15, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get rid of full-hash scan on detaching vfsmounts
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
e9c5d8a5
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
149 additions
and
97 deletions
+149
-97
fs/mount.h
fs/mount.h
+7
-0
fs/namespace.c
fs/namespace.c
+137
-92
fs/pnode.c
fs/pnode.c
+3
-3
fs/pnode.h
fs/pnode.h
+2
-2
No files found.
fs/mount.h
View file @
84d17192
...
@@ -18,6 +18,12 @@ struct mnt_pcp {
...
@@ -18,6 +18,12 @@ struct mnt_pcp {
int
mnt_writers
;
int
mnt_writers
;
};
};
struct
mountpoint
{
struct
list_head
m_hash
;
struct
dentry
*
m_dentry
;
int
m_count
;
};
struct
mount
{
struct
mount
{
struct
list_head
mnt_hash
;
struct
list_head
mnt_hash
;
struct
mount
*
mnt_parent
;
struct
mount
*
mnt_parent
;
...
@@ -40,6 +46,7 @@ struct mount {
...
@@ -40,6 +46,7 @@ struct mount {
struct
list_head
mnt_slave
;
/* slave list entry */
struct
list_head
mnt_slave
;
/* slave list entry */
struct
mount
*
mnt_master
;
/* slave is on master->mnt_slave_list */
struct
mount
*
mnt_master
;
/* slave is on master->mnt_slave_list */
struct
mnt_namespace
*
mnt_ns
;
/* containing namespace */
struct
mnt_namespace
*
mnt_ns
;
/* containing namespace */
struct
mountpoint
*
mnt_mp
;
/* where is it mounted */
#ifdef CONFIG_FSNOTIFY
#ifdef CONFIG_FSNOTIFY
struct
hlist_head
mnt_fsnotify_marks
;
struct
hlist_head
mnt_fsnotify_marks
;
__u32
mnt_fsnotify_mask
;
__u32
mnt_fsnotify_mask
;
...
...
fs/namespace.c
View file @
84d17192
This diff is collapsed.
Click to expand it.
fs/pnode.c
View file @
84d17192
...
@@ -217,7 +217,7 @@ static struct mount *get_source(struct mount *dest,
...
@@ -217,7 +217,7 @@ static struct mount *get_source(struct mount *dest,
* @source_mnt: source mount.
* @source_mnt: source mount.
* @tree_list : list of heads of trees to be attached.
* @tree_list : list of heads of trees to be attached.
*/
*/
int
propagate_mnt
(
struct
mount
*
dest_mnt
,
struct
dentry
*
dest_dentry
,
int
propagate_mnt
(
struct
mount
*
dest_mnt
,
struct
mountpoint
*
dest_mp
,
struct
mount
*
source_mnt
,
struct
list_head
*
tree_list
)
struct
mount
*
source_mnt
,
struct
list_head
*
tree_list
)
{
{
struct
mount
*
m
,
*
child
;
struct
mount
*
m
,
*
child
;
...
@@ -244,8 +244,8 @@ int propagate_mnt(struct mount *dest_mnt, struct dentry *dest_dentry,
...
@@ -244,8 +244,8 @@ int propagate_mnt(struct mount *dest_mnt, struct dentry *dest_dentry,
goto
out
;
goto
out
;
}
}
if
(
is_subdir
(
dest_dentry
,
m
->
mnt
.
mnt_root
))
{
if
(
is_subdir
(
dest_
mp
->
m_
dentry
,
m
->
mnt
.
mnt_root
))
{
mnt_set_mountpoint
(
m
,
dest_
dentry
,
child
);
mnt_set_mountpoint
(
m
,
dest_
mp
,
child
);
list_add_tail
(
&
child
->
mnt_hash
,
tree_list
);
list_add_tail
(
&
child
->
mnt_hash
,
tree_list
);
}
else
{
}
else
{
/*
/*
...
...
fs/pnode.h
View file @
84d17192
...
@@ -31,14 +31,14 @@ static inline void set_mnt_shared(struct mount *mnt)
...
@@ -31,14 +31,14 @@ static inline void set_mnt_shared(struct mount *mnt)
}
}
void
change_mnt_propagation
(
struct
mount
*
,
int
);
void
change_mnt_propagation
(
struct
mount
*
,
int
);
int
propagate_mnt
(
struct
mount
*
,
struct
dentry
*
,
struct
mount
*
,
int
propagate_mnt
(
struct
mount
*
,
struct
mountpoint
*
,
struct
mount
*
,
struct
list_head
*
);
struct
list_head
*
);
int
propagate_umount
(
struct
list_head
*
);
int
propagate_umount
(
struct
list_head
*
);
int
propagate_mount_busy
(
struct
mount
*
,
int
);
int
propagate_mount_busy
(
struct
mount
*
,
int
);
void
mnt_release_group_id
(
struct
mount
*
);
void
mnt_release_group_id
(
struct
mount
*
);
int
get_dominating_id
(
struct
mount
*
mnt
,
const
struct
path
*
root
);
int
get_dominating_id
(
struct
mount
*
mnt
,
const
struct
path
*
root
);
unsigned
int
mnt_get_count
(
struct
mount
*
mnt
);
unsigned
int
mnt_get_count
(
struct
mount
*
mnt
);
void
mnt_set_mountpoint
(
struct
mount
*
,
struct
dentry
*
,
void
mnt_set_mountpoint
(
struct
mount
*
,
struct
mountpoint
*
,
struct
mount
*
);
struct
mount
*
);
void
release_mounts
(
struct
list_head
*
);
void
release_mounts
(
struct
list_head
*
);
void
umount_tree
(
struct
mount
*
,
int
,
struct
list_head
*
);
void
umount_tree
(
struct
mount
*
,
int
,
struct
list_head
*
);
...
...
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