aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>2020-01-15 18:53:32 +0000
committerKirk McKusick <mckusick@FreeBSD.org>2020-01-15 18:53:32 +0000
commitbbb1e07d65242f6aaab7941c1e61a676eaec37b4 (patch)
treebf2f2b10b85dfe8e6c3eedc28f47ef84f383228e
parent92471f7ab7b454e634652c427b49ba59a54d7db1 (diff)
Notes
-rw-r--r--sys/kern/vfs_mount.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
index 9eafce9168cd..55e46c085d46 100644
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -1696,9 +1696,7 @@ dounmount(struct mount *mp, int flags, struct thread *td)
MNT_IUNLOCK(mp);
cache_purgevfs(mp, false); /* remove cache entries for this file sys */
vfs_deallocate_syncvnode(mp);
- if ((mp->mnt_flag & MNT_RDONLY) != 0 || (flags & MNT_FORCE) != 0 ||
- (error = VFS_SYNC(mp, MNT_WAIT)) == 0)
- error = VFS_UNMOUNT(mp, flags);
+ error = VFS_UNMOUNT(mp, flags);
vn_finished_write(mp);
/*
* If we failed to flush the dirty blocks for this mount point,