]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 30 Mar 2014 23:18:50 +0000 (19:18 -0400)
commit8c52cdf33a355e0a3872fb92368f44d3dcd65dfc
tree72aa314fd3f3c37d152aba79b302b86ce7f6a1f6
parent156c1b9e6bcf8251483a8c84f123f77549323c19
don't bother with propagate_mnt() unless the target is shared

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.

Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c