Source-Changes-HG archive

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

[src/chs-ubc2]: src/sys/ufs/ufs in WRITE(), VOP_BALLOC() no longer does what ...



details:   https://anonhg.NetBSD.org/src/rev/1ec34e234c87
branches:  chs-ubc2
changeset: 471407:1ec34e234c87
user:      chs <chs%NetBSD.org@localhost>
date:      Sat Jul 31 18:53:44 1999 +0000

description:
in WRITE(), VOP_BALLOC() no longer does what we want, so switch to using
ffs_balloc1().

diffstat:

 sys/ufs/ufs/ufs_readwrite.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r c811d0474340 -r 1ec34e234c87 sys/ufs/ufs/ufs_readwrite.c
--- a/sys/ufs/ufs/ufs_readwrite.c       Sat Jul 31 18:52:38 1999 +0000
+++ b/sys/ufs/ufs/ufs_readwrite.c       Sat Jul 31 18:53:44 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ufs_readwrite.c,v 1.22.4.5 1999/07/11 05:44:00 chs Exp $       */
+/*     $NetBSD: ufs_readwrite.c,v 1.22.4.6 1999/07/31 18:53:44 chs Exp $       */
 
 /*-
  * Copyright (c) 1993
@@ -264,7 +264,7 @@
                /*
                 * make sure the range of file offsets to be written
                 * is fully allocated.  updating of ip->i_ffs_size
-                * is handled by ffs_balloc_range().
+                * is handled by ufs_balloc_range().
                 */
 
                if ((error = ufs_balloc_range(vp, uio->uio_offset,
@@ -311,8 +311,9 @@
                else
                        flags &= ~B_CLRBUF;
 
-               error = VOP_BALLOC(vp, uio->uio_offset, blkoffset + xfersize,
-                                  ap->a_cred, flags, &bp);
+               error = ffs_balloc1(vp, lblkno(fs, uio->uio_offset),
+                                   blkoffset + xfersize,
+                                   ap->a_cred, flags, &bp);
 #endif
                if (error)
                        break;



Home | Main Index | Thread Index | Old Index