aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorRam Pai <linuxram@us.ibm.com>2005-11-07 17:20:17 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-07 21:18:11 -0500
commita05964f3917c7c55368c229d7985f8e7c9977e97 (patch)
tree7ec25550267ef050572c00ba2f37d6a4ff9c469e /include/linux
parent2144440327fa01b2f3f65e355120a78211685702 (diff)
[PATCH] shared mounts handling: umount
An unmount of a mount creates a umount event on the parent. If the parent is a shared mount, it gets propagated to all mounts in the peer group. Signed-off-by: Ram Pai <linuxram@us.ibm.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/dcache.h1
-rw-r--r--include/linux/fs.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h
index ab04b4f9b0db..46a2ba617595 100644
--- a/include/linux/dcache.h
+++ b/include/linux/dcache.h
@@ -329,6 +329,7 @@ static inline int d_mountpoint(struct dentry *dentry)
329} 329}
330 330
331extern struct vfsmount *lookup_mnt(struct vfsmount *, struct dentry *); 331extern struct vfsmount *lookup_mnt(struct vfsmount *, struct dentry *);
332extern struct vfsmount *__lookup_mnt(struct vfsmount *, struct dentry *, int);
332extern struct dentry *lookup_create(struct nameidata *nd, int is_dir); 333extern struct dentry *lookup_create(struct nameidata *nd, int is_dir);
333 334
334extern int sysctl_vfs_cache_pressure; 335extern int sysctl_vfs_cache_pressure;
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 5e188b773e9c..8bdb504be73b 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1251,7 +1251,7 @@ extern int unregister_filesystem(struct file_system_type *);
1251extern struct vfsmount *kern_mount(struct file_system_type *); 1251extern struct vfsmount *kern_mount(struct file_system_type *);
1252extern int may_umount_tree(struct vfsmount *); 1252extern int may_umount_tree(struct vfsmount *);
1253extern int may_umount(struct vfsmount *); 1253extern int may_umount(struct vfsmount *);
1254extern void umount_tree(struct vfsmount *, struct list_head *); 1254extern void umount_tree(struct vfsmount *, int, struct list_head *);
1255extern void release_mounts(struct list_head *); 1255extern void release_mounts(struct list_head *);
1256extern long do_mount(char *, char *, char *, unsigned long, void *); 1256extern long do_mount(char *, char *, char *, unsigned long, void *);
1257extern struct vfsmount *copy_tree(struct vfsmount *, struct dentry *, int); 1257extern struct vfsmount *copy_tree(struct vfsmount *, struct dentry *, int);