Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Dec 2008 03:00:27 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r185504 - head/sys/kern
Message-ID:  <200812010300.mB130Rfp010088@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: attilio
Date: Mon Dec  1 03:00:26 2008
New Revision: 185504
URL: http://svn.freebsd.org/changeset/base/185504

Log:
  Fix an inverted check introduced in r184554.
  
  Submitted by:	tegge
  Pointy hat to:	me

Modified:
  head/sys/kern/vfs_mount.c

Modified: head/sys/kern/vfs_mount.c
==============================================================================
--- head/sys/kern/vfs_mount.c	Mon Dec  1 02:13:32 2008	(r185503)
+++ head/sys/kern/vfs_mount.c	Mon Dec  1 03:00:26 2008	(r185504)
@@ -1240,7 +1240,7 @@ dounmount(mp, flags, td)
 		mp->mnt_kern_flag |= MNTK_UNMOUNTF;
 	error = 0;
 	if (mp->mnt_lockref) {
-		if (flags & MNT_FORCE) {
+		if ((flags & MNT_FORCE) == 0) {
 			mp->mnt_kern_flag &= ~(MNTK_UNMOUNT | MNTK_NOINSMNTQ |
 			    MNTK_UNMOUNTF);
 			if (mp->mnt_kern_flag & MNTK_MWAIT) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812010300.mB130Rfp010088>