Re: [RFC][PATCH 1/3] vfs: Keep a list of mounts on a mount point

2013-10-08 Thread Eric W. Biederman
Miklos Szeredi writes: >> @@ -691,6 +693,7 @@ static void detach_mnt(struct mount *mnt, struct path >> *old_path) >> list_del_init(&mnt->mnt_hash); >> put_mountpoint(mnt->mnt_mp); >> mnt->mnt_mp = NULL; >> +list_del_init(&mnt->mnt_mp_list); > > Should be done *before* put_moun

Re: [RFC][PATCH 1/3] vfs: Keep a list of mounts on a mount point

2013-10-08 Thread Miklos Szeredi
On Fri, Oct 04, 2013 at 03:42:37PM -0700, Eric W. Biederman wrote: > > Signed-off-by: Eric W. Biederman > --- > fs/mount.h |2 ++ > fs/namespace.c |5 + > 2 files changed, 7 insertions(+), 0 deletions(-) > > diff --git a/fs/mount.h b/fs/mount.h > index 64a858143ff9..e4342b8dfab1

[RFC][PATCH 1/3] vfs: Keep a list of mounts on a mount point

2013-10-04 Thread Eric W. Biederman
Signed-off-by: Eric W. Biederman --- fs/mount.h |2 ++ fs/namespace.c |5 + 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/fs/mount.h b/fs/mount.h index 64a858143ff9..e4342b8dfab1 100644 --- a/fs/mount.h +++ b/fs/mount.h @@ -21,6 +21,7 @@ struct mnt_pcp { struct