X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2F9p%2Fvfs_super.c;h=63320d4e15d260fc0e7800d2bc0d2a54141666ff;hb=6bfe5c9d6f4dcaa998f67e691359cf7b1c4b443d;hp=872943004e595de4772f7f44fa781360d19613f9;hpb=37224470c8c6d90a4062e76a08d4dc1fcf91fc89;p=mv-sheeva.git diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c index 872943004e5..63320d4e15d 100644 --- a/fs/9p/vfs_super.c +++ b/fs/9p/vfs_super.c @@ -25,7 +25,6 @@ */ #include -#include #include #include #include @@ -256,11 +255,12 @@ static int v9fs_show_options(struct seq_file *m, struct vfsmount *mnt) } static void -v9fs_umount_begin(struct super_block *sb) +v9fs_umount_begin(struct vfsmount *vfsmnt, int flags) { - struct v9fs_session_info *v9ses = sb->s_fs_info; + struct v9fs_session_info *v9ses = vfsmnt->mnt_sb->s_fs_info; - v9fs_session_cancel(v9ses); + if (flags & MNT_FORCE) + v9fs_session_cancel(v9ses); } static struct super_operations v9fs_super_ops = {