vfs: spread struct mount - mount group id handling

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2011-11-24 19:54:23 -05:00
parent 4b2619a571
commit 4b8b21f4fe
3 changed files with 20 additions and 20 deletions

View file

@ -83,7 +83,7 @@ static int do_make_slave(struct vfsmount *mnt)
peer_mnt = NULL;
}
if (IS_MNT_SHARED(mnt) && list_empty(&mnt->mnt_share))
mnt_release_group_id(mnt);
mnt_release_group_id(real_mount(mnt));
list_del_init(&mnt->mnt_share);
mnt->mnt_group_id = 0;