]> err.no Git - linux-2.6/blobdiff - fs/cifs/cifsfs.c
ocfs2: do not send master requests to localhost
[linux-2.6] / fs / cifs / cifsfs.c
index 7520f4687158d2e1bec34bf96846499fd1a44746..8b4de6eaabd0ee11bf329e02fa1060cd32a44d0c 100644 (file)
@@ -403,12 +403,14 @@ static struct quotactl_ops cifs_quotactl_ops = {
 #endif
 
 #ifdef CONFIG_CIFS_EXPERIMENTAL
-static void cifs_umount_begin(struct super_block * sblock)
+static void cifs_umount_begin(struct vfsmount * vfsmnt, int flags)
 {
        struct cifs_sb_info *cifs_sb;
        struct cifsTconInfo * tcon;
 
-       cifs_sb = CIFS_SB(sblock);
+       if (!(flags & MNT_FORCE))
+               return;
+       cifs_sb = CIFS_SB(vfsmnt->mnt_sb);
        if(cifs_sb == NULL)
                return;