diff options
| author | Eric W. Biederman <ebiederm@xmission.com> | 2014-12-24 07:20:01 -0600 |
|---|---|---|
| committer | Luis Henriques <luis.henriques@canonical.com> | 2015-05-05 11:09:42 +0100 |
| commit | e894d0714423566ea57dbd8cc35106e62472c142 (patch) | |
| tree | ba6c34a7954731e9b2419f0d2a9b5086f8d6e231 /include | |
| parent | 25cd274a4e91f83942054d94b840b3e3867a3863 (diff) | |
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>
[ luis: backported to 3.16:
- dropped change to __detach_mounts() ]
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
