mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
vfs: Keep a list of mounts on a mount point
To spot any possible problems call BUG if a mountpoint is put when it's list of mounts is not empty. AV: use hlist instead of list_head Reviewed-by: Miklos Szeredi <[email protected]> Signed-off-by: Eric W. Biederman <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
7af1364ffa
commit
0a5eb7c818
2 changed files with 8 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ struct mnt_pcp {
|
|||
struct mountpoint {
|
||||
struct hlist_node m_hash;
|
||||
struct dentry *m_dentry;
|
||||
struct hlist_head m_list;
|
||||
int m_count;
|
||||
};
|
||||
|
||||
|
|
@ -51,6 +52,7 @@ struct mount {
|
|||
struct mount *mnt_master; /* slave is on master->mnt_slave_list */
|
||||
struct mnt_namespace *mnt_ns; /* containing namespace */
|
||||
struct mountpoint *mnt_mp; /* where is it mounted */
|
||||
struct hlist_node mnt_mp_list; /* list mounts with the same mountpoint */
|
||||
#ifdef CONFIG_FSNOTIFY
|
||||
struct hlist_head mnt_fsnotify_marks;
|
||||
__u32 mnt_fsnotify_mask;
|
||||
|
|
|
|||
Loading…
Reference in a new issue