diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2000-04-15 19:52:49 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2000-04-15 19:52:49 +0000 |
commit | e10ec859602a89f0b0b0cdd20e39e2057c84f54d (patch) | |
tree | fe29b1306077a3ec128d850fc22fd12fcb98e522 /sys/kern | |
parent | 08d2140815513f384fe832bdb75696d1ab736e64 (diff) |
Fix sys_sync to actually sync all file systems.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_syscalls.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 0c0fd129028..896640a6198 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_syscalls.c,v 1.63 2000/03/03 11:31:43 art Exp $ */ +/* $OpenBSD: vfs_syscalls.c,v 1.64 2000/04/15 19:52:48 csapuntz Exp $ */ /* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */ /* @@ -498,7 +498,7 @@ sys_sync(p, v, retval) simple_lock(&mountlist_slock); for (mp = mountlist.cqh_last; mp != (void *)&mountlist; mp = nmp) { if (vfs_busy(mp, LK_NOWAIT, &mountlist_slock, p)) { - nmp = mp->mnt_list.cqe_next; + nmp = mp->mnt_list.cqe_prev; continue; } if ((mp->mnt_flag & MNT_RDONLY) == 0) { @@ -512,7 +512,7 @@ sys_sync(p, v, retval) mp->mnt_flag |= MNT_ASYNC; } simple_lock(&mountlist_slock); - nmp = mp->mnt_list.cqe_next; + nmp = mp->mnt_list.cqe_prev; vfs_unbusy(mp, p); } simple_unlock(&mountlist_slock); |