]> git.baikalelectronics.ru Git - kernel.git/commit
mnt: In umount_tree reuse mnt_list instead of mnt_hash
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 18 Dec 2014 19:10:48 +0000 (13:10 -0600)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 3 Apr 2015 01:34:18 +0000 (20:34 -0500)
commit576705671bce7a371415dae673961fd8f5b6bbde
tree0d48f9edeed164c03b02494cf129ef76a0ffb91c
parent451911e91f0c4a80f3648b6d2a6e87fb7c2c136b
mnt: In umount_tree reuse mnt_list instead of mnt_hash

umount_tree builds a list of mounts that need to be unmounted.
Utilize mnt_list for this purpose instead of mnt_hash.  This begins to
allow keeping a mount on the mnt_hash after it is unmounted, which is
necessary for a properly functioning MNT_LOCKED implementation.

The fact that mnt_list is an ordinary list makding available list_move
is nice bonus.

Cc: stable@vger.kernel.org
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/namespace.c
fs/pnode.c
fs/pnode.h