Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/ufs/ffs Pull up revision 1.71 (requested by fvdl):



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

description:
Pull up revision 1.71 (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/ufs/ffs/ffs_vfsops.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 0b6b72e54a04 -r 4490e637d2f6 sys/ufs/ffs/ffs_vfsops.c
--- a/sys/ufs/ffs/ffs_vfsops.c  Thu Dec 14 23:36:40 2000 +0000
+++ b/sys/ufs/ffs/ffs_vfsops.c  Thu Dec 14 23:36:45 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_vfsops.c,v 1.67.2.1 2000/07/03 17:44:03 fvdl Exp $ */
+/*     $NetBSD: ffs_vfsops.c,v 1.67.2.2 2000/12/14 23:36:45 he Exp $   */
 
 /*
  * Copyright (c) 1989, 1991, 1993, 1994
@@ -851,7 +851,7 @@
         * Flush filesystem metadata.
         */
        vn_lock(ump->um_devvp, LK_EXCLUSIVE | LK_RETRY);
-       error = VOP_FSYNC(ump->um_devvp, p->p_ucred, FSYNC_WAIT, p);
+       error = VOP_FSYNC(ump->um_devvp, p->p_ucred, FSYNC_WAIT, 0, 0, p);
        VOP_UNLOCK(ump->um_devvp, 0);
        return (error);
 }
@@ -952,7 +952,7 @@
                        continue;
                }
                if ((error = VOP_FSYNC(vp, cred,
-                   waitfor == MNT_WAIT ? FSYNC_WAIT : 0, p)) != 0)
+                   waitfor == MNT_WAIT ? FSYNC_WAIT : 0, 0, 0, p)) != 0)
                        allerror = error;
                vput(vp);
                simple_lock(&mntvnode_slock);
@@ -966,7 +966,7 @@
                        waitfor = MNT_NOWAIT;
                vn_lock(ump->um_devvp, LK_EXCLUSIVE | LK_RETRY);
                if ((error = VOP_FSYNC(ump->um_devvp, cred,
-                   waitfor == MNT_WAIT ? FSYNC_WAIT : 0, p)) != 0)
+                   waitfor == MNT_WAIT ? FSYNC_WAIT : 0, 0, 0, p)) != 0)
                        allerror = error;
                VOP_UNLOCK(ump->um_devvp, 0);
        }



Home | Main Index | Thread Index | Old Index