summaryrefslogtreecommitdiffstats
path: root/fs/pnode.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-11-25 06:46:35 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-04 04:57:09 +0100
commit143c8c91cee7efdd732ec5f61b3471fc46192f20 (patch)
treedd3e9a9b8b88f1876a258fe1bf274532aeb72a62 /fs/pnode.c
parentvfs: spread struct mount - mntput_no_expire (diff)
downloadlinux-143c8c91cee7efdd732ec5f61b3471fc46192f20.tar.xz
linux-143c8c91cee7efdd732ec5f61b3471fc46192f20.zip
vfs: mnt_ns moved to struct mount
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/pnode.c')
-rw-r--r--fs/pnode.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/pnode.c b/fs/pnode.c
index 12cc1518e0cd..cec329822a16 100644
--- a/fs/pnode.c
+++ b/fs/pnode.c
@@ -36,7 +36,7 @@ static struct mount *get_peer_under_root(struct mount *mnt,
do {
/* Check the namespace first for optimization */
- if (m->mnt.mnt_ns == ns && is_path_reachable(m, m->mnt.mnt_root, root))
+ if (m->mnt_ns == ns && is_path_reachable(m, m->mnt.mnt_root, root))
return m;
m = next_peer(m);
@@ -56,7 +56,7 @@ int get_dominating_id(struct mount *mnt, const struct path *root)
struct mount *m;
for (m = mnt->mnt_master; m != NULL; m = m->mnt_master) {
- struct mount *d = get_peer_under_root(m, mnt->mnt.mnt_ns, root);
+ struct mount *d = get_peer_under_root(m, mnt->mnt_ns, root);
if (d)
return d->mnt.mnt_group_id;
}
@@ -145,7 +145,7 @@ static struct mount *propagation_next(struct mount *m,
struct mount *origin)
{
/* are there any slaves of this mount? */
- if (!IS_MNT_NEW(&m->mnt) && !list_empty(&m->mnt_slave_list))
+ if (!IS_MNT_NEW(m) && !list_empty(&m->mnt_slave_list))
return first_slave(m);
while (1) {
@@ -189,7 +189,7 @@ static struct mount *get_source(struct mount *dest,
if (p_last_dest) {
do {
p_last_dest = next_peer(p_last_dest);
- } while (IS_MNT_NEW(&p_last_dest->mnt));
+ } while (IS_MNT_NEW(p_last_dest));
/* is that a peer of the earlier? */
if (dest == p_last_dest) {
*type = CL_MAKE_SHARED;
@@ -232,7 +232,7 @@ int propagate_mnt(struct mount *dest_mnt, struct dentry *dest_dentry,
int type;
struct mount *source;
- if (IS_MNT_NEW(&m->mnt))
+ if (IS_MNT_NEW(m))
continue;
source = get_source(m, prev_dest_mnt, prev_src_mnt, &type);