Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern vn_read: don't bother to allocate read-ahead contex...



details:   https://anonhg.NetBSD.org/src/rev/fafed4c94791
branches:  trunk
changeset: 587957:fafed4c94791
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sat Feb 04 11:58:08 2006 +0000

description:
vn_read: don't bother to allocate read-ahead context here.
it will be done in uvn_get if necessary.

diffstat:

 sys/kern/vfs_vnops.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 87d74d5343d6 -r fafed4c94791 sys/kern/vfs_vnops.c
--- a/sys/kern/vfs_vnops.c      Sat Feb 04 11:52:32 2006 +0000
+++ b/sys/kern/vfs_vnops.c      Sat Feb 04 11:58:08 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_vnops.c,v 1.104 2006/01/01 16:45:42 yamt Exp $     */
+/*     $NetBSD: vfs_vnops.c,v 1.105 2006/02/04 11:58:08 yamt Exp $     */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_vnops.c,v 1.104 2006/01/01 16:45:42 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_vnops.c,v 1.105 2006/02/04 11:58:08 yamt Exp $");
 
 #include "opt_verified_exec.h"
 
@@ -466,7 +466,6 @@
        if (fp->f_flag & FALTIO)
                ioflag |= IO_ALTSEMANTICS;
        vn_lock(vp, LK_SHARED | LK_RETRY);
-       vn_ra_allocctx(vp);
        uio->uio_offset = *offset;
        count = uio->uio_resid;
        error = VOP_READ(vp, uio, ioflag, cred);



Home | Main Index | Thread Index | Old Index