]> git.baikalelectronics.ru Git - kernel.git/commit
mnt: Improve the umount_tree flags
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 24 Dec 2014 13:20:01 +0000 (07:20 -0600)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 3 Apr 2015 01:34:17 +0000 (20:34 -0500)
commit0b43c268698059308bb5fc2e8d50142c2e8bae41
treee2f08411e078cce21fe838aea1ed7d9ca3be7812
parente26e1a00b53e9a7842032f7958bce3d545fbac1f
mnt: Improve the umount_tree flags

- 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>
fs/namespace.c
fs/pnode.h