projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor formatting and comment changes; removed some old #if 0'd code.
[unix-history]
/
sys
/
kern
/
vfs__bio.c
diff --git
a/sys/kern/vfs__bio.c
b/sys/kern/vfs__bio.c
index
68de769
..
b26af6f
100644
(file)
--- a/
sys/kern/vfs__bio.c
+++ b/
sys/kern/vfs__bio.c
@@
-45,7
+45,7
@@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: vfs__bio.c,v 1.1
4 1993/12/30 05:20:12 davidg
Exp $
+ * $Id: vfs__bio.c,v 1.1
6 1994/03/19 22:19:11 wollman
Exp $
*/
#include "param.h"
*/
#include "param.h"
@@
-593,6
+593,10
@@
biowait(register struct buf *bp)
void
biodone(register struct buf *bp)
{
void
biodone(register struct buf *bp)
{
+#ifndef NOBOUNCE
+ if (bp->b_flags & B_BOUNCE)
+ vm_bounce_free(bp);
+#endif
bp->b_flags |= B_DONE;
if ((bp->b_flags & B_READ) == 0) {
bp->b_flags |= B_DONE;
if ((bp->b_flags & B_READ) == 0) {
@@
-625,12
+629,18
@@
biodone(register struct buf *bp)
* The variable vfs_update_wakeup allows for internal syncs.
*/
int vfs_update_wakeup;
* The variable vfs_update_wakeup allows for internal syncs.
*/
int vfs_update_wakeup;
+#ifndef UPDATE_INTERVAL
+int vfs_update_interval = 30;
+#else
+int vfs_update_interval = UPDATE_INTERVAL;
+#endif
void
vfs_update() {
(void) spl0();
while(1) {
void
vfs_update() {
(void) spl0();
while(1) {
- tsleep((caddr_t)&vfs_update_wakeup, PRIBIO, "update", hz*30);
+ tsleep((caddr_t)&vfs_update_wakeup, PRIBIO, "update",
+ hz * vfs_update_interval);
vfs_update_wakeup = 0;
sync(curproc, NULL, NULL);
}
vfs_update_wakeup = 0;
sync(curproc, NULL, NULL);
}