diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2008-03-26 17:11:34 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-04-23 00:04:45 -0400 |
commit | 73cd49ecdde92fdce131938bdaff4993010d181b (patch) | |
tree | 90c9cd3597a915c1f820a3cd1fde1689e9a7ab1f /include/linux/mount.h | |
parent | 9d1bc60138977d9c79471b344a64f2df13b2ccef (diff) |
[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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mount.h b/include/linux/mount.h index 87b24cea1863..f0dfb17ffccc 100644 --- a/include/linux/mount.h +++ b/include/linux/mount.h | |||
@@ -56,6 +56,7 @@ struct vfsmount { | |||
56 | struct list_head mnt_slave; /* slave list entry */ | 56 | struct list_head mnt_slave; /* slave list entry */ |
57 | struct vfsmount *mnt_master; /* slave is on master->mnt_slave_list */ | 57 | struct vfsmount *mnt_master; /* slave is on master->mnt_slave_list */ |
58 | struct mnt_namespace *mnt_ns; /* containing namespace */ | 58 | struct mnt_namespace *mnt_ns; /* containing namespace */ |
59 | int mnt_id; /* mount identifier */ | ||
59 | /* | 60 | /* |
60 | * We put mnt_count & mnt_expiry_mark at the end of struct vfsmount | 61 | * We put mnt_count & mnt_expiry_mark at the end of struct vfsmount |
61 | * to let these frequently modified fields in a separate cache line | 62 | * to let these frequently modified fields in a separate cache line |