diff options
author | attilio <attilio@FreeBSD.org> | 2008-12-01 03:00:26 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2008-12-01 03:00:26 +0000 |
commit | 2f606e171ca8e75c96e2c7507207cb2902ac6b02 (patch) | |
tree | 0355e634e908edeb14cf681603c78af934aa4f79 /sys/kern | |
parent | 25ef38d002f6a5b621e4714209b37eddb8f0f059 (diff) | |
download | FreeBSD-src-2f606e171ca8e75c96e2c7507207cb2902ac6b02.zip FreeBSD-src-2f606e171ca8e75c96e2c7507207cb2902ac6b02.tar.gz |
Fix an inverted check introduced in r184554.
Submitted by: tegge
Pointy hat to: me
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index 2421260..12368c9 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -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) { |