diff options
author | dyson <dyson@FreeBSD.org> | 1996-12-29 02:45:28 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1996-12-29 02:45:28 +0000 |
commit | 04a0ee9a2a23ea1925b6625e3268da60ccc7944b (patch) | |
tree | 0be85582a1c640271ed7ce19fc19c0c85527cb9c /sys/kern/kern_descrip.c | |
parent | baa03b956c25159833733ce567a847c13e9bd032 (diff) | |
download | FreeBSD-src-04a0ee9a2a23ea1925b6625e3268da60ccc7944b.zip FreeBSD-src-04a0ee9a2a23ea1925b6625e3268da60ccc7944b.tar.gz |
This commit is the embodiment of some VFS read clustering improvements.
Firstly, now our read-ahead clustering is on a file descriptor basis and not
on a per-vnode basis. This will allow multiple processes reading the
same file to take advantage of read-ahead clustering. Secondly, there
previously was a problem with large reads still using the ramp-up
algorithm. Of course, that was bogus, and now we read the entire
"chunk" off of the disk in one operation. The read-ahead clustering
algorithm should use less CPU than the previous also (I hope :-)).
NOTE: THAT LKMS MUST BE REBUILT!!!
Diffstat (limited to 'sys/kern/kern_descrip.c')
-rw-r--r-- | sys/kern/kern_descrip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index dbbd616..8c6ec05 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)kern_descrip.c 8.6 (Berkeley) 4/19/94 - * $Id: kern_descrip.c,v 1.33 1996/12/19 19:41:35 bde Exp $ + * $Id: kern_descrip.c,v 1.34 1996/12/19 19:59:51 bde Exp $ */ #include <sys/param.h> @@ -674,6 +674,7 @@ falloc(p, resultfp, resultfd) p->p_fd->fd_ofiles[i] = fp; fp->f_count = 1; fp->f_cred = p->p_ucred; + fp->f_seqcount = 1; crhold(fp->f_cred); if (resultfp) *resultfp = fp; |