Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/lfs Fix i_ffs_blocks in fragment extension case wher...



details:   https://anonhg.NetBSD.org/src/rev/1511f93a0bd5
branches:  trunk
changeset: 494205:1511f93a0bd5
user:      perseant <perseant%NetBSD.org@localhost>
date:      Mon Jul 03 20:12:42 2000 +0000

description:
Fix i_ffs_blocks in fragment extension case where fragment has not yet
been written to disk.

diffstat:

 sys/ufs/lfs/lfs_balloc.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 93619eb0fcc0 -r 1511f93a0bd5 sys/ufs/lfs/lfs_balloc.c
--- a/sys/ufs/lfs/lfs_balloc.c  Mon Jul 03 18:51:45 2000 +0000
+++ b/sys/ufs/lfs/lfs_balloc.c  Mon Jul 03 20:12:42 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_balloc.c,v 1.22 2000/07/03 08:20:58 perseant Exp $ */
+/*     $NetBSD: lfs_balloc.c,v 1.23 2000/07/03 20:12:42 perseant Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -385,10 +385,9 @@
                LFS_SEGENTRY(sup, fs, datosn(fs,(*bpp)->b_blkno), ibp);
                sup->su_nbytes += (nsize-osize);
                VOP_BWRITE(ibp);
+               ip->i_ffs_blocks += bb;
        }
-
        fs->lfs_bfree -= bb;
-       ip->i_ffs_blocks += bb;
        ip->i_lfs_effnblks += bb;
        ip->i_flag |= IN_CHANGE | IN_UPDATE;
        if((*bpp)->b_flags & B_LOCKED)



Home | Main Index | Thread Index | Old Index