summaryrefslogtreecommitdiffstats
path: root/fs/pnode.h
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2014-12-24 07:20:01 -0600
committerEric W. Biederman <ebiederm@xmission.com>2015-04-02 20:34:17 -0500
commite819f152104c9f7c9fe50e1aecce6f5d4bf06d65 (patch)
treee2f08411e078cce21fe838aea1ed7d9ca3be7812 /fs/pnode.h
parenta3b3c5627c8301ac850962b04f645dfab81e6a60 (diff)
downloadlinux-e819f152104c9f7c9fe50e1aecce6f5d4bf06d65.tar.gz
linux-e819f152104c9f7c9fe50e1aecce6f5d4bf06d65.tar.bz2
linux-e819f152104c9f7c9fe50e1aecce6f5d4bf06d65.zip
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>
Diffstat (limited to 'fs/pnode.h')
-rw-r--r--fs/pnode.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/pnode.h b/fs/pnode.h
index 4a246358b031..16afc3d6d2f2 100644
--- a/fs/pnode.h
+++ b/fs/pnode.h
@@ -47,7 +47,6 @@ int get_dominating_id(struct mount *mnt, const struct path *root);
unsigned int mnt_get_count(struct mount *mnt);
void mnt_set_mountpoint(struct mount *, struct mountpoint *,
struct mount *);
-void umount_tree(struct mount *, int);
struct mount *copy_tree(struct mount *, struct dentry *, int);
bool is_path_reachable(struct mount *, struct dentry *,
const struct path *root);