Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/lfs write ifile only when it has dirty buffers.



details:   https://anonhg.NetBSD.org/src/rev/1c4a28d10b9a
branches:  trunk
changeset: 541030:1c4a28d10b9a
user:      yamt <yamt%NetBSD.org@localhost>
date:      Tue Dec 31 14:54:32 2002 +0000

description:
write ifile only when it has dirty buffers.

diffstat:

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

diffs (27 lines):

diff -r 5661c9ad2001 -r 1c4a28d10b9a sys/ufs/lfs/lfs_segment.c
--- a/sys/ufs/lfs/lfs_segment.c Tue Dec 31 14:34:54 2002 +0000
+++ b/sys/ufs/lfs/lfs_segment.c Tue Dec 31 14:54:32 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_segment.c,v 1.87 2002/12/17 14:37:49 yamt Exp $    */
+/*     $NetBSD: lfs_segment.c,v 1.88 2002/12/31 14:54:32 yamt Exp $    */
 
 /*-
  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_segment.c,v 1.87 2002/12/17 14:37:49 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_segment.c,v 1.88 2002/12/31 14:54:32 yamt Exp $");
 
 #define ivndebug(vp,str) printf("ino %d: %s\n",VTOI(vp)->i_number,(str))
 
@@ -620,7 +620,7 @@
                        fs->lfs_flags &= ~LFS_IFDIRTY;
 
                        ip = VTOI(vp);
-                       /* if (LIST_FIRST(&vp->v_dirtyblkhd) != NULL) */
+                       if (LIST_FIRST(&vp->v_dirtyblkhd) != NULL)
                                lfs_writefile(fs, sp, vp);
                        if (ip->i_flag & IN_ALLMOD)
                                ++did_ckp;



Home | Main Index | Thread Index | Old Index