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
83adc753
Commit
83adc753
authored
Nov 24, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vfs: spread struct mount - work with counters
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
a73324da
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
62 deletions
+66
-62
fs/namespace.c
fs/namespace.c
+64
-60
fs/pnode.c
fs/pnode.c
+1
-1
fs/pnode.h
fs/pnode.h
+1
-1
No files found.
fs/namespace.c
View file @
83adc753
This diff is collapsed.
Click to expand it.
fs/pnode.c
View file @
83adc753
...
@@ -274,7 +274,7 @@ int propagate_mnt(struct vfsmount *dest_mnt, struct dentry *dest_dentry,
...
@@ -274,7 +274,7 @@ int propagate_mnt(struct vfsmount *dest_mnt, struct dentry *dest_dentry,
*/
*/
static
inline
int
do_refcount_check
(
struct
mount
*
mnt
,
int
count
)
static
inline
int
do_refcount_check
(
struct
mount
*
mnt
,
int
count
)
{
{
int
mycount
=
mnt_get_count
(
&
mnt
->
mnt
)
-
mnt
->
mnt
.
mnt_ghosts
;
int
mycount
=
mnt_get_count
(
mnt
)
-
mnt
->
mnt
.
mnt_ghosts
;
return
(
mycount
>
count
);
return
(
mycount
>
count
);
}
}
...
...
fs/pnode.h
View file @
83adc753
...
@@ -36,7 +36,7 @@ int propagate_umount(struct list_head *);
...
@@ -36,7 +36,7 @@ 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
vfsmount
*
mnt
,
const
struct
path
*
root
);
int
get_dominating_id
(
struct
vfsmount
*
mnt
,
const
struct
path
*
root
);
unsigned
int
mnt_get_count
(
struct
vfs
mount
*
mnt
);
unsigned
int
mnt_get_count
(
struct
mount
*
mnt
);
void
mnt_set_mountpoint
(
struct
vfsmount
*
,
struct
dentry
*
,
void
mnt_set_mountpoint
(
struct
vfsmount
*
,
struct
dentry
*
,
struct
mount
*
);
struct
mount
*
);
void
release_mounts
(
struct
list_head
*
);
void
release_mounts
(
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