diff options
Diffstat (limited to 'fs/9p/vfs_super.c')
-rw-r--r-- | fs/9p/vfs_super.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c index 61c599b4a1e3..00c1f6baf870 100644 --- a/fs/9p/vfs_super.c +++ b/fs/9p/vfs_super.c | |||
@@ -253,11 +253,12 @@ static int v9fs_show_options(struct seq_file *m, struct vfsmount *mnt) | |||
253 | } | 253 | } |
254 | 254 | ||
255 | static void | 255 | static void |
256 | v9fs_umount_begin(struct super_block *sb) | 256 | v9fs_umount_begin(struct vfsmount *vfsmnt, int flags) |
257 | { | 257 | { |
258 | struct v9fs_session_info *v9ses = sb->s_fs_info; | 258 | struct v9fs_session_info *v9ses = vfsmnt->mnt_sb->s_fs_info; |
259 | 259 | ||
260 | v9fs_session_cancel(v9ses); | 260 | if (flags & MNT_FORCE) |
261 | v9fs_session_cancel(v9ses); | ||
261 | } | 262 | } |
262 | 263 | ||
263 | static struct super_operations v9fs_super_ops = { | 264 | static struct super_operations v9fs_super_ops = { |