Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Do previous better. Use FSYNC_RECLAIM as it was bef...
details: https://anonhg.NetBSD.org/src/rev/8eaba744b61c
branches: trunk
changeset: 483747:8eaba744b61c
user: fvdl <fvdl%NetBSD.org@localhost>
date: Fri Mar 17 01:25:06 2000 +0000
description:
Do previous better. Use FSYNC_RECLAIM as it was before.
diffstat:
sys/kern/vfs_subr.c | 20 +++++++++-----------
1 files changed, 9 insertions(+), 11 deletions(-)
diffs (34 lines):
diff -r b52d8acdfa3a -r 8eaba744b61c sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c Fri Mar 17 00:10:24 2000 +0000
+++ b/sys/kern/vfs_subr.c Fri Mar 17 01:25:06 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_subr.c,v 1.121 2000/03/16 18:08:20 jdolecek Exp $ */
+/* $NetBSD: vfs_subr.c,v 1.122 2000/03/17 01:25:06 fvdl Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -614,16 +614,14 @@
tsleep((caddr_t)&vp->v_numoutput, PRIBIO + 1,
"vbwait", 0);
}
- if (vp->v_dirtyblkhd.lh_first != NULL || vp->v_mount == NULL ||
- !(vp->v_mount->mnt_flag & MNT_SOFTDEP)) {
- splx(s);
- if ((error = VOP_FSYNC(vp, cred, FSYNC_WAIT, p)) != 0)
- return (error);
- s = splbio();
- if (vp->v_numoutput > 0 ||
- vp->v_dirtyblkhd.lh_first != NULL)
- panic("vinvalbuf: dirty bufs");
- }
+ splx(s);
+ error = VOP_FSYNC(vp, cred, FSYNC_WAIT|FSYNC_RECLAIM, p);
+ if (error != 0)
+ return (error);
+ s = splbio();
+ if (vp->v_numoutput > 0 ||
+ vp->v_dirtyblkhd.lh_first != NULL)
+ panic("vinvalbuf: dirty bufs");
splx(s);
}
Home |
Main Index |
Thread Index |
Old Index