diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-02-27 07:13:32 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-02-27 07:13:32 +0000 |
commit | 16240c4ec5e2a3be1a664e6d9485e058fd0b6589 (patch) | |
tree | 1a7e09d5b03c266802292041c2882ddd89e0855d /sys/ufs/lfs/lfs_balloc.c | |
parent | e4dbdd3a19a2f75d54142f13bcadfed0617a7d12 (diff) |
From NetBSD: update to 960217 sources
Diffstat (limited to 'sys/ufs/lfs/lfs_balloc.c')
-rw-r--r-- | sys/ufs/lfs/lfs_balloc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/ufs/lfs/lfs_balloc.c b/sys/ufs/lfs/lfs_balloc.c index aaadf2d9cb3..72c1fb4ee52 100644 --- a/sys/ufs/lfs/lfs_balloc.c +++ b/sys/ufs/lfs/lfs_balloc.c @@ -1,4 +1,5 @@ -/* $NetBSD: lfs_balloc.c,v 1.2 1994/06/29 06:46:49 cgd Exp $ */ +/* $OpenBSD: lfs_balloc.c,v 1.2 1996/02/27 07:13:20 niklas Exp $ */ +/* $NetBSD: lfs_balloc.c,v 1.3 1996/02/09 22:28:48 christos Exp $ */ /* * Copyright (c) 1989, 1991, 1993 @@ -35,6 +36,7 @@ * @(#)lfs_balloc.c 8.1 (Berkeley) 6/11/93 */ #include <sys/param.h> +#include <sys/systm.h> #include <sys/buf.h> #include <sys/proc.h> #include <sys/vnode.h> @@ -47,6 +49,7 @@ #include <ufs/ufs/quota.h> #include <ufs/ufs/inode.h> #include <ufs/ufs/ufsmount.h> +#include <ufs/ufs/ufs_extern.h> #include <ufs/lfs/lfs.h> #include <ufs/lfs/lfs_extern.h> @@ -79,7 +82,8 @@ lfs_balloc(vp, iosize, lbn, bpp) */ *bpp = NULL; - if (error = ufs_bmaparray(vp, lbn, &daddr, &indirs[0], &num, NULL )) + error = ufs_bmaparray(vp, lbn, &daddr, &indirs[0], &num, NULL); + if (error) return (error); *bpp = bp = getblk(vp, lbn, fs->lfs_bsize, 0, 0); |