syncdelay, filedelay, dirdelay, metadelay are ints, not time_t's,
and can also be made static.
This commit is contained in:
parent
1521c8f921
commit
b37309f764
@ -222,12 +222,12 @@ static struct synclist *syncer_workitem_pending;
|
||||
|
||||
#define SYNCER_MAXDELAY 32
|
||||
static int syncer_maxdelay = SYNCER_MAXDELAY; /* maximum delay time */
|
||||
time_t syncdelay = 30; /* max time to delay syncing data */
|
||||
time_t filedelay = 30; /* time to delay syncing files */
|
||||
static int syncdelay = 30; /* max time to delay syncing data */
|
||||
static int filedelay = 30; /* time to delay syncing files */
|
||||
SYSCTL_INT(_kern, OID_AUTO, filedelay, CTLFLAG_RW, &filedelay, 0, "");
|
||||
time_t dirdelay = 29; /* time to delay syncing directories */
|
||||
static int dirdelay = 29; /* time to delay syncing directories */
|
||||
SYSCTL_INT(_kern, OID_AUTO, dirdelay, CTLFLAG_RW, &dirdelay, 0, "");
|
||||
time_t metadelay = 28; /* time to delay syncing metadata */
|
||||
static int metadelay = 28; /* time to delay syncing metadata */
|
||||
SYSCTL_INT(_kern, OID_AUTO, metadelay, CTLFLAG_RW, &metadelay, 0, "");
|
||||
static int rushjob; /* number of slots to run ASAP */
|
||||
static int stat_rush_requests; /* number of times I/O speeded up */
|
||||
|
@ -288,10 +288,6 @@ extern int vttoif_tab[];
|
||||
*/
|
||||
extern struct vnode *rootvnode; /* root (i.e. "/") vnode */
|
||||
extern int desiredvnodes; /* number of vnodes desired */
|
||||
extern time_t syncdelay; /* max time to delay syncing data */
|
||||
extern time_t filedelay; /* time to delay syncing files */
|
||||
extern time_t dirdelay; /* time to delay syncing directories */
|
||||
extern time_t metadelay; /* time to delay syncing metadata */
|
||||
extern struct vm_zone *namei_zone;
|
||||
extern int prtactive; /* nonzero to call vprint() */
|
||||
extern struct vattr va_null; /* predefined null vattr structure */
|
||||
|
Loading…
Reference in New Issue
Block a user