diff options
author | mckusick <mckusick@FreeBSD.org> | 1999-06-15 23:37:29 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 1999-06-15 23:37:29 +0000 |
commit | 02e5fe8035792e74f2b2f78aac949d51e5ae0758 (patch) | |
tree | 8ac5630ec9b3793afa68586b475e20ff9fda7eba /sys/kern/vfs_bio.c | |
parent | 06fe6c5ca381b1685b94871a46780a3424e43a4c (diff) | |
download | FreeBSD-src-02e5fe8035792e74f2b2f78aac949d51e5ae0758.zip FreeBSD-src-02e5fe8035792e74f2b2f78aac949d51e5ae0758.tar.gz |
Get rid of the global variable rushjob and replace it with a function in
kern/vfs_subr.c named speedup_syncer() which handles the speedup request.
Change the various clients of rushjob to use the new function.
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r-- | sys/kern/vfs_bio.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 59dd730..e15e396 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -11,7 +11,7 @@ * 2. Absolutely no warranty of function or purpose is made by the author * John S. Dyson. * - * $Id: vfs_bio.c,v 1.210 1999/05/06 20:00:26 phk Exp $ + * $Id: vfs_bio.c,v 1.211 1999/05/12 22:30:50 peter Exp $ */ /* @@ -1475,8 +1475,7 @@ dosleep: else flags = VFS_BIO_NEED_ANY; - if (rushjob < syncdelay / 2) - ++rushjob; + (void) speedup_syncer(); needsbuffer |= flags; while (needsbuffer & flags) { if (tsleep(&needsbuffer, (PRIBIO + 4) | slpflag, |