aboutsummaryrefslogtreecommitdiff
path: root/fs/mount.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-03-30 17:26:08 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-03-30 17:26:08 -0700
commitfedc1ed0f11be666de066b0c78443254736a942e (patch)
treed1911f00911c9fc5d22f90fb8492ee87ff9506e4 /fs/mount.h
parent01358e562a8b97f50ec04025c009c71508e6d373 (diff)
parent38129a13e6e71f666e0468e99fdd932a687b4d7e (diff)
Merge branch 'for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs fixes from Al Viro: "Switch mnt_hash to hlist, turning the races between __lookup_mnt() and hash modifications into false negatives from __lookup_mnt() (instead of hangs)" On the false negatives from __lookup_mnt(): "The *only* thing we care about is not getting stuck in __lookup_mnt(). If it misses an entry because something in front of it just got moved around, etc, we are fine. We'll notice that mount_lock mismatch and that'll be it" * 'for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: switch mnt_hash to hlist don't bother with propagate_mnt() unless the target is shared keep shadowed vfsmounts together resizable namespace.c hashes
Diffstat (limited to 'fs/mount.h')
-rw-r--r--fs/mount.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/mount.h b/fs/mount.h
index a17458ca6f29..b29e42f05f34 100644
--- a/fs/mount.h
+++ b/fs/mount.h
@@ -19,13 +19,13 @@ struct mnt_pcp {
};
struct mountpoint {
- struct list_head m_hash;
+ struct hlist_node m_hash;
struct dentry *m_dentry;
int m_count;
};
struct mount {
- struct list_head mnt_hash;
+ struct hlist_node mnt_hash;
struct mount *mnt_parent;
struct dentry *mnt_mountpoint;
struct vfsmount mnt;