summaryrefslogtreecommitdiffstats
path: root/include/linux/mount.h
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2008-03-26 22:11:34 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2008-04-23 00:04:45 -0400
commit73cd49ecdde92fdce131938bdaff4993010d181b (patch)
tree90c9cd3597a915c1f820a3cd1fde1689e9a7ab1f /include/linux/mount.h
parent9d1bc60138977d9c79471b344a64f2df13b2ccef (diff)
downloadop-kernel-dev-73cd49ecdde92fdce131938bdaff4993010d181b.zip
op-kernel-dev-73cd49ecdde92fdce131938bdaff4993010d181b.tar.gz
[patch 3/7] vfs: mountinfo: add mount ID
Add a unique ID to each vfsmount using the IDR infrastructure. The identifiers are reused after the vfsmount is freed. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/mount.h')
-rw-r--r--include/linux/mount.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mount.h b/include/linux/mount.h
index 87b24ce..f0dfb17 100644
--- a/include/linux/mount.h
+++ b/include/linux/mount.h
@@ -56,6 +56,7 @@ struct vfsmount {
struct list_head mnt_slave; /* slave list entry */
struct vfsmount *mnt_master; /* slave is on master->mnt_slave_list */
struct mnt_namespace *mnt_ns; /* containing namespace */
+ int mnt_id; /* mount identifier */
/*
* We put mnt_count & mnt_expiry_mark at the end of struct vfsmount
* to let these frequently modified fields in a separate cache line
OpenPOWER on IntegriCloud