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
649a795a
Commit
649a795a
authored
Sep 28, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fold mntfree() into mntput_no_expire()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
6339dab8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
23 deletions
+16
-23
fs/namespace.c
fs/namespace.c
+16
-23
No files found.
fs/namespace.c
View file @
649a795a
...
...
@@ -872,28 +872,6 @@ static struct mount *clone_mnt(struct mount *old, struct dentry *root,
return
ERR_PTR
(
err
);
}
static
inline
void
mntfree
(
struct
mount
*
mnt
)
{
struct
vfsmount
*
m
=
&
mnt
->
mnt
;
struct
super_block
*
sb
=
m
->
mnt_sb
;
/*
* This probably indicates that somebody messed
* up a mnt_want/drop_write() pair. If this
* happens, the filesystem was probably unable
* to make r/w->r/o transitions.
*/
/*
* The locking used to deal with mnt_count decrement provides barriers,
* so mnt_get_writers() below is safe.
*/
WARN_ON
(
mnt_get_writers
(
mnt
));
fsnotify_vfsmount_delete
(
m
);
dput
(
m
->
mnt_root
);
free_vfsmnt
(
mnt
);
deactivate_super
(
sb
);
}
static
void
mntput_no_expire
(
struct
mount
*
mnt
)
{
put_again:
...
...
@@ -929,7 +907,22 @@ static void mntput_no_expire(struct mount *mnt)
list_del
(
&
mnt
->
mnt_instance
);
br_write_unlock
(
&
vfsmount_lock
);
mntfree
(
mnt
);
/*
* This probably indicates that somebody messed
* up a mnt_want/drop_write() pair. If this
* happens, the filesystem was probably unable
* to make r/w->r/o transitions.
*/
/*
* The locking used to deal with mnt_count decrement provides barriers,
* so mnt_get_writers() below is safe.
*/
WARN_ON
(
mnt_get_writers
(
mnt
));
fsnotify_vfsmount_delete
(
&
mnt
->
mnt
);
dput
(
mnt
->
mnt
.
mnt_root
);
deactivate_super
(
mnt
->
mnt
.
mnt_sb
);
free_vfsmnt
(
mnt
);
}
void
mntput
(
struct
vfsmount
*
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