From: Eric W. Biederman Date: Tue, 7 Oct 2014 23:22:52 +0000 (-0700) Subject: mnt: Move the clear of MNT_LOCKED from copy_tree to it's callers. X-Git-Tag: omap-for-v3.19/fixes-rc1~48^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8486a7882b5ba906992fd78bbfcefaae7fe285cc;p=pandora-kernel.git mnt: Move the clear of MNT_LOCKED from copy_tree to it's callers. Clear MNT_LOCKED in the callers of copy_tree except copy_mnt_ns, and collect_mounts. In copy_mnt_ns it is necessary to create an exact copy of a mount tree, so not clearing MNT_LOCKED is important. Similarly collect_mounts is used to take a snapshot of the mount tree for audit logging purposes and auditing using a faithful copy of the tree is important. This becomes particularly significant when we start setting MNT_LOCKED on rootfs to prevent it from being unmounted. Signed-off-by: "Eric W. Biederman" --- Reading git-diff-tree failed