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/lfs Pull up revisions 1.47-1.49 (requested by p...



details:   https://anonhg.NetBSD.org/src/rev/352c71891435
branches:  netbsd-1-5
changeset: 490632:352c71891435
user:      he <he%NetBSD.org@localhost>
date:      Sat Feb 03 21:58:42 2001 +0000

description:
Pull up revisions 1.47-1.49 (requested by perseant):
  o Don't write anything if the filesystem is idle (PR#10979).
  o Close up accounting holes in LFS' accounting of immediately-
    available-space, number of clean segments, and amount of dirty
    space taken up by metadata (PR#11468, PR#11470, PR#11534).

diffstat:

 sys/ufs/lfs/lfs_vnops.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r f8441568f9f0 -r 352c71891435 sys/ufs/lfs/lfs_vnops.c
--- a/sys/ufs/lfs/lfs_vnops.c   Sat Feb 03 21:55:41 2001 +0000
+++ b/sys/ufs/lfs/lfs_vnops.c   Sat Feb 03 21:58:42 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_vnops.c,v 1.38.2.5 2000/12/14 23:36:31 he Exp $    */
+/*     $NetBSD: lfs_vnops.c,v 1.38.2.6 2001/02/03 21:58:42 he Exp $    */
 
 /*-
  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -289,6 +289,10 @@
                struct proc *a_p;
        } */ *ap = v;
        
+       /* Ignore the trickle syncer */
+       if (ap->a_flags & FSYNC_LAZY)
+               return 0;
+
        return (VOP_UPDATE(ap->a_vp, NULL, NULL,
                           (ap->a_flags & FSYNC_WAIT) != 0 ? UPDATE_WAIT : 0));
 }



Home | Main Index | Thread Index | Old Index