Commit 83adc753 authored by Al Viro's avatar Al Viro

vfs: spread struct mount - work with counters

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent a73324da
This diff is collapsed.
......@@ -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)
{
int mycount = mnt_get_count(&mnt->mnt) - mnt->mnt.mnt_ghosts;
int mycount = mnt_get_count(mnt) - mnt->mnt.mnt_ghosts;
return (mycount > count);
}
......
......@@ -36,7 +36,7 @@ int propagate_umount(struct list_head *);
int propagate_mount_busy(struct mount *, int);
void mnt_release_group_id(struct mount *);
int get_dominating_id(struct vfsmount *mnt, const struct path *root);
unsigned int mnt_get_count(struct vfsmount *mnt);
unsigned int mnt_get_count(struct mount *mnt);
void mnt_set_mountpoint(struct vfsmount *, struct dentry *,
struct mount *);
void release_mounts(struct list_head *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment