diff options
Diffstat (limited to 'sys/ufs/ffs/ffs_balloc.c')
-rw-r--r-- | sys/ufs/ffs/ffs_balloc.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/ufs/ffs/ffs_balloc.c b/sys/ufs/ffs/ffs_balloc.c index 6656b817eac..4fc440ceedb 100644 --- a/sys/ufs/ffs/ffs_balloc.c +++ b/sys/ufs/ffs/ffs_balloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_balloc.c,v 1.11 2001/03/15 11:43:20 art Exp $ */ +/* $OpenBSD: ffs_balloc.c,v 1.12 2001/03/20 19:33:06 art Exp $ */ /* $NetBSD: ffs_balloc.c,v 1.3 1996/02/09 22:22:21 christos Exp $ */ /* @@ -95,7 +95,7 @@ ffs_balloc(v) lbn = lblkno(fs, ap->a_startoffset); size = blkoff(fs, ap->a_startoffset) + ap->a_size; if (size > fs->fs_bsize) - panic("ffs_balloc; blk too big"); + panic("ffs_balloc: blk too big"); *ap->a_bpp = NULL; if (lbn < 0) return (EFBIG); @@ -163,7 +163,7 @@ ffs_balloc(v) } } else { error = ffs_realloccg(ip, lbn, - ffs_blkpref(ip, lbn, (int)lbn, + ffs_blkpref(ip, lbn, (int)lbn, &ip->i_ffs_db[0]), osize, nsize, cred, &bp); if (error) @@ -171,7 +171,7 @@ ffs_balloc(v) if (DOINGSOFTDEP(vp)) softdep_setup_allocdirect(ip, lbn, dbtofsb(fs, bp->b_blkno), nb, - nsize, osize, bp); + nsize, osize, bp); } } else { if (ip->i_ffs_size < lblktosize(fs, lbn + 1)) @@ -190,7 +190,6 @@ ffs_balloc(v) if (DOINGSOFTDEP(vp)) softdep_setup_allocdirect(ip, lbn, newb, 0, nsize, 0, bp); - } ip->i_ffs_db[lbn] = dbtofsb(fs, bp->b_blkno); ip->i_flag |= IN_CHANGE | IN_UPDATE; |