From owner-svn-src-all@FreeBSD.ORG Mon Dec 1 03:00:27 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A759106567B; Mon, 1 Dec 2008 03:00:27 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3B7228FC0A; Mon, 1 Dec 2008 03:00:27 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mB130R5H010089; Mon, 1 Dec 2008 03:00:27 GMT (envelope-from attilio@svn.freebsd.org) Received: (from attilio@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mB130Rfp010088; Mon, 1 Dec 2008 03:00:27 GMT (envelope-from attilio@svn.freebsd.org) Message-Id: <200812010300.mB130Rfp010088@svn.freebsd.org> From: Attilio Rao Date: Mon, 1 Dec 2008 03:00:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r185504 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Dec 2008 03:00:27 -0000 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) {