mnt: Improve the umount_tree flags
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 24 Dec 2014 13:20:01 +0000 (07:20 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2015 20:01:53 +0000 (22:01 +0200)
commit6910342c504d04e94b06d661b51afbae98331261
treef45e1476d030f961bcc8675704a1ac9f299f5a43
parent1d71c2af69b76f349707625ad30e63a3e4623816
mnt: Improve the umount_tree flags

commit e819f152104c9f7c9fe50e1aecce6f5d4bf06d65 upstream.

- Remove the unneeded declaration from pnode.h
- Mark umount_tree static as it has no callers outside of namespace.c
- Define an enumeration of umount_tree's flags.
- Pass umount_tree's flags in by name

This removes the magic numbers 0, 1 and 2 making the code a little
clearer and makes it possible for there to be lazy unmounts that don't
propagate.  Which is what __detach_mounts actually wants for example.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/namespace.c
fs/pnode.h