vfs: mnt_ns moved to struct mount
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/pnode.c b/fs/pnode.c
index 12cc151..cec3298 100644
--- a/fs/pnode.c
+++ b/fs/pnode.c
@@ -36,7 +36,7 @@
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 @@
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 @@
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 @@
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 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);