aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p/vfs_super.c
diff options
context:
space:
mode:
authorEric Van Hensbergen <ericvh@gmail.com>2005-09-09 16:04:23 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-09 16:57:57 -0400
commit322b329ab787de5f45abca9c9eabfd33bc5927e8 (patch)
tree63088ab90e6677c5c74134e7cc1cfb0e0b1eae84 /fs/9p/vfs_super.c
parent426cc91aa651b50713d06d45e5c3c3e90cfd40d9 (diff)
[PATCH] v9fs: Support to force umount
Support for force umount Signed-off-by: Latchesar Ionkov <lucho@ionkov.net> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/9p/vfs_super.c')
-rw-r--r--fs/9p/vfs_super.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c
index ce0778acc90a..868f350b2c5f 100644
--- a/fs/9p/vfs_super.c
+++ b/fs/9p/vfs_super.c
@@ -257,10 +257,19 @@ static int v9fs_show_options(struct seq_file *m, struct vfsmount *mnt)
257 return 0; 257 return 0;
258} 258}
259 259
260static void
261v9fs_umount_begin(struct super_block *sb)
262{
263 struct v9fs_session_info *v9ses = sb->s_fs_info;
264
265 v9fs_session_cancel(v9ses);
266}
267
260static struct super_operations v9fs_super_ops = { 268static struct super_operations v9fs_super_ops = {
261 .statfs = simple_statfs, 269 .statfs = simple_statfs,
262 .clear_inode = v9fs_clear_inode, 270 .clear_inode = v9fs_clear_inode,
263 .show_options = v9fs_show_options, 271 .show_options = v9fs_show_options,
272 .umount_begin = v9fs_umount_begin,
264}; 273};
265 274
266struct file_system_type v9fs_fs_type = { 275struct file_system_type v9fs_fs_type = {