diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-11-25 00:07:16 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:57:08 -0500 |
commit | d10e8def07fc87488c396d2eff2c26c43bb541dd (patch) | |
tree | d0ad0d4c47838a096aafac353e206861cb6d62c1 /fs/namespace.c | |
parent | 14cf1fa8f54353d9caf6174c1e4280c8c4dcfd7a (diff) |
vfs: take mnt_master to struct mount
make IS_MNT_SLAVE take struct mount * at the same time
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namespace.c')
-rw-r--r-- | fs/namespace.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index ee42e671afdc..3439042fc9f2 100644 --- a/fs/namespace.c +++ b/fs/namespace.c | |||
@@ -715,14 +715,14 @@ static struct mount *clone_mnt(struct mount *old, struct dentry *root, | |||
715 | 715 | ||
716 | if (flag & CL_SLAVE) { | 716 | if (flag & CL_SLAVE) { |
717 | list_add(&mnt->mnt.mnt_slave, &old->mnt.mnt_slave_list); | 717 | list_add(&mnt->mnt.mnt_slave, &old->mnt.mnt_slave_list); |
718 | mnt->mnt.mnt_master = &old->mnt; | 718 | mnt->mnt_master = &old->mnt; |
719 | CLEAR_MNT_SHARED(&mnt->mnt); | 719 | CLEAR_MNT_SHARED(&mnt->mnt); |
720 | } else if (!(flag & CL_PRIVATE)) { | 720 | } else if (!(flag & CL_PRIVATE)) { |
721 | if ((flag & CL_MAKE_SHARED) || IS_MNT_SHARED(&old->mnt)) | 721 | if ((flag & CL_MAKE_SHARED) || IS_MNT_SHARED(&old->mnt)) |
722 | list_add(&mnt->mnt.mnt_share, &old->mnt.mnt_share); | 722 | list_add(&mnt->mnt.mnt_share, &old->mnt.mnt_share); |
723 | if (IS_MNT_SLAVE(&old->mnt)) | 723 | if (IS_MNT_SLAVE(old)) |
724 | list_add(&mnt->mnt.mnt_slave, &old->mnt.mnt_slave); | 724 | list_add(&mnt->mnt.mnt_slave, &old->mnt.mnt_slave); |
725 | mnt->mnt.mnt_master = old->mnt.mnt_master; | 725 | mnt->mnt_master = old->mnt_master; |
726 | } | 726 | } |
727 | if (flag & CL_MAKE_SHARED) | 727 | if (flag & CL_MAKE_SHARED) |
728 | set_mnt_shared(mnt); | 728 | set_mnt_shared(mnt); |
@@ -1051,8 +1051,8 @@ static int show_mountinfo(struct seq_file *m, void *v) | |||
1051 | /* Tagged fields ("foo:X" or "bar") */ | 1051 | /* Tagged fields ("foo:X" or "bar") */ |
1052 | if (IS_MNT_SHARED(mnt)) | 1052 | if (IS_MNT_SHARED(mnt)) |
1053 | seq_printf(m, " shared:%i", mnt->mnt_group_id); | 1053 | seq_printf(m, " shared:%i", mnt->mnt_group_id); |
1054 | if (IS_MNT_SLAVE(mnt)) { | 1054 | if (IS_MNT_SLAVE(r)) { |
1055 | int master = mnt->mnt_master->mnt_group_id; | 1055 | int master = r->mnt_master->mnt_group_id; |
1056 | int dom = get_dominating_id(r, &p->root); | 1056 | int dom = get_dominating_id(r, &p->root); |
1057 | seq_printf(m, " master:%i", master); | 1057 | seq_printf(m, " master:%i", master); |
1058 | if (dom && dom != master) | 1058 | if (dom && dom != master) |