]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/mount.h
vfs: Keep a list of mounts on a mount point
[karo-tx-linux.git] / fs / mount.h
index 64a858143ff923ab80499d5a865bde9de2257314..e4342b8dfab1c763db60fdfcb3974d9b5821ce5c 100644 (file)
@@ -21,6 +21,7 @@ struct mnt_pcp {
 struct mountpoint {
        struct list_head m_hash;
        struct dentry *m_dentry;
+       struct list_head m_list;
        int m_count;
 };
 
@@ -47,6 +48,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 list_head mnt_mp_list;   /* list mounts with the same mountpoint */
 #ifdef CONFIG_FSNOTIFY
        struct hlist_head mnt_fsnotify_marks;
        __u32 mnt_fsnotify_mask;