Deleted Added
full compact
vfs_subr.c (126253) vfs_subr.c (126326)
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>
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 126253 2004-02-26 00:27:04Z truckman $");
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>
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>
65#include <sys/stat.h>
66#include <sys/sysctl.h>
67#include <sys/syslog.h>
68#include <sys/vmmeter.h>
69#include <sys/vnode.h>
70
71#include <vm/vm.h>
72#include <vm/vm_object.h>

--- 1520 unchanged lines hidden (view full) ---

1593 */
1594int
1595speedup_syncer()
1596{
1597 struct thread *td;
1598 int ret = 0;
1599
1600 td = FIRST_THREAD_IN_PROC(updateproc);
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);
1601 mtx_lock_spin(&sched_lock);
1602 if (td->td_wchan == &lbolt) {
1603 unsleep(td);
1604 TD_CLR_SLEEPING(td);
1605 setrunnable(td);
1606 }
1607 mtx_unlock_spin(&sched_lock);
1602 sleepq_remove(td, &lbolt);
1608 mtx_lock(&sync_mtx);
1609 if (rushjob < syncdelay / 2) {
1610 rushjob += 1;
1611 stat_rush_requests += 1;
1612 ret = 1;
1613 }
1614 mtx_unlock(&sync_mtx);
1615 return (ret);

--- 2243 unchanged lines hidden ---
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 ---