don't bother with propagate_mnt() unless the target is shared
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 21 Mar 2014 14:14:08 +0000 (10:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Apr 2014 19:02:37 +0000 (12:02 -0700)
commit92dbca18848fcc88661cd8a8ec17fd59ecc430cc
tree66be4a3bf17972ba89155ec1529298b00ce49f1b
parent12007ca282cf6f7636d029d61ae4223b59a08088
don't bother with propagate_mnt() unless the target is shared

commit 0b1b901b5a98bb36943d10820efc796f7cd45ff3 upstream.

If the dest_mnt is not shared, propagate_mnt() does nothing -
there's no mounts to propagate to and thus no copies to create.
Might as well don't bother calling it in that case.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/namespace.c