Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/miscfs/union Pull up revision 1.48 (requested by fv...



details:   https://anonhg.NetBSD.org/src/rev/02a200c4e999
branches:  netbsd-1-5
changeset: 490325:02a200c4e999
user:      he <he%NetBSD.org@localhost>
date:      Thu Dec 14 23:36:22 2000 +0000

description:
Pull up revision 1.48 (requested by fvdl):
  Improve NFS performance, possibly with as much as 100% in
  throughput.  Please note: this implies a kernel interface change,
  VOP_FSYNC gains two arguments.

diffstat:

 sys/miscfs/union/union_vnops.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 75c125e96f40 -r 02a200c4e999 sys/miscfs/union/union_vnops.c
--- a/sys/miscfs/union/union_vnops.c    Thu Dec 14 23:36:19 2000 +0000
+++ b/sys/miscfs/union/union_vnops.c    Thu Dec 14 23:36:22 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: union_vnops.c,v 1.47 2000/03/30 12:22:14 augustss Exp $        */
+/*     $NetBSD: union_vnops.c,v 1.47.4.1 2000/12/14 23:36:22 he Exp $  */
 
 /*
  * Copyright (c) 1992, 1993, 1994, 1995 Jan-Simon Pendry.
@@ -1127,6 +1127,8 @@
                struct vnode *a_vp;
                struct ucred *a_cred;
                int  a_flags;
+               off_t offhi;
+               off_t offlo;
                struct proc *a_p;
        } */ *ap = v;
        int error = 0;
@@ -1153,7 +1155,8 @@
                        vn_lock(targetvp, LK_EXCLUSIVE | LK_RETRY);
                else
                        FIXUP(VTOUNION(ap->a_vp));
-               error = VOP_FSYNC(targetvp, ap->a_cred, ap->a_flags, p);
+               error = VOP_FSYNC(targetvp, ap->a_cred, ap->a_flags,
+                           ap->a_offlo, ap->a_offhi, p);
                if (dolock)
                        VOP_UNLOCK(targetvp, 0);
        }



Home | Main Index | Thread Index | Old Index