diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2014-12-18 14:10:48 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2015-04-02 21:34:18 -0400 |
commit | c003b26ff98ca04a180ff34c38c007a3998d62f9 (patch) | |
tree | 0d48f9edeed164c03b02494cf129ef76a0ffb91c /fs/pnode.h | |
parent | 8318e667f176f7ea34451a1a530634e293f216ac (diff) |
mnt: In umount_tree reuse mnt_list instead of mnt_hash
umount_tree builds a list of mounts that need to be unmounted.
Utilize mnt_list for this purpose instead of mnt_hash. This begins to
allow keeping a mount on the mnt_hash after it is unmounted, which is
necessary for a properly functioning MNT_LOCKED implementation.
The fact that mnt_list is an ordinary list makding available list_move
is nice bonus.
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/pnode.h b/fs/pnode.h index 16afc3d6d2f2..aa6d65df7204 100644 --- a/fs/pnode.h +++ b/fs/pnode.h | |||
@@ -40,7 +40,7 @@ static inline void set_mnt_shared(struct mount *mnt) | |||
40 | void change_mnt_propagation(struct mount *, int); | 40 | void change_mnt_propagation(struct mount *, int); |
41 | int propagate_mnt(struct mount *, struct mountpoint *, struct mount *, | 41 | int propagate_mnt(struct mount *, struct mountpoint *, struct mount *, |
42 | struct hlist_head *); | 42 | struct hlist_head *); |
43 | int propagate_umount(struct hlist_head *); | 43 | int propagate_umount(struct list_head *); |
44 | int propagate_mount_busy(struct mount *, int); | 44 | int propagate_mount_busy(struct mount *, int); |
45 | void mnt_release_group_id(struct mount *); | 45 | void mnt_release_group_id(struct mount *); |
46 | int get_dominating_id(struct mount *mnt, const struct path *root); | 46 | int get_dominating_id(struct mount *mnt, const struct path *root); |