diff options
author | Eric W. Biederman <ebiederman@twitter.com> | 2013-09-22 19:37:01 -0700 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-10-09 02:38:54 -0400 |
commit | 0a5eb7c8189922e86a840972cd0b57e41de6f031 (patch) | |
tree | ee3f026727cff4acf5d7adbd7674d4177677f12f /fs/mount.h | |
parent | 7af1364ffa64db61e386628594836e13d2ef04b5 (diff) | |
download | op-kernel-dev-0a5eb7c8189922e86a840972cd0b57e41de6f031.zip op-kernel-dev-0a5eb7c8189922e86a840972cd0b57e41de6f031.tar.gz |
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 <miklos@szeredi.hu>
Signed-off-by: Eric W. Biederman <ebiederman@twitter.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/mount.h')
-rw-r--r-- | fs/mount.h | 2 |
1 files changed, 2 insertions, 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; |