1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 29 unchanged lines hidden (view full) --- 38 * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95 39 */ 40 41/* 42 * External virtual filesystem routines 43 */ 44 45#include <sys/cdefs.h> |
46__FBSDID("$FreeBSD: head/sys/kern/vfs_subr.c 126326 2004-02-27 18:52:44Z jhb $"); |
47 48#include "opt_ddb.h" 49#include "opt_mac.h" 50 51#include <sys/param.h> 52#include <sys/systm.h> 53#include <sys/bio.h> 54#include <sys/buf.h> 55#include <sys/conf.h> 56#include <sys/eventhandler.h> 57#include <sys/extattr.h> 58#include <sys/fcntl.h> 59#include <sys/kernel.h> 60#include <sys/kthread.h> 61#include <sys/mac.h> 62#include <sys/malloc.h> 63#include <sys/mount.h> 64#include <sys/namei.h> |
65#include <sys/sleepqueue.h> |
66#include <sys/stat.h> 67#include <sys/sysctl.h> 68#include <sys/syslog.h> 69#include <sys/vmmeter.h> 70#include <sys/vnode.h> 71 72#include <vm/vm.h> 73#include <vm/vm_object.h> --- 1520 unchanged lines hidden (view full) --- 1594 */ 1595int 1596speedup_syncer() 1597{ 1598 struct thread *td; 1599 int ret = 0; 1600 1601 td = FIRST_THREAD_IN_PROC(updateproc); |
1602 sleepq_remove(td, &lbolt); |
1603 mtx_lock(&sync_mtx); 1604 if (rushjob < syncdelay / 2) { 1605 rushjob += 1; 1606 stat_rush_requests += 1; 1607 ret = 1; 1608 } 1609 mtx_unlock(&sync_mtx); 1610 return (ret); --- 2243 unchanged lines hidden --- |