mnt: Improve the umount_tree flags
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 24 Dec 2014 13:20:01 +0000 (07:20 -0600)
committerSasha Levin <sasha.levin@oracle.com>
Sun, 17 May 2015 23:12:08 +0000 (19:12 -0400)
commit6b1353cb2664c93997561fa4f46f055da51f5ee7
treee6b96ed5e94881c4a86917f75d0aa42f555fff22
parent01acccfad385b79863b41177bdbf30e3a0ccb033
mnt: Improve the umount_tree flags

[ Upstream commit e819f152104c9f7c9fe50e1aecce6f5d4bf06d65 ]

- 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.

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