From ce58200fbc33843a81bdd67e4b63beb624d35641 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 14 Jul 1994 20:08:55 +0000 Subject: Formerly subr.c.~4~ --- ufs/subr.c | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/ufs/subr.c b/ufs/subr.c index c251b16e..1730e737 100644 --- a/ufs/subr.c +++ b/ufs/subr.c @@ -33,17 +33,10 @@ * @(#)ffs_subr.c 8.2 (Berkeley) 9/21/93 */ -#include -#include - -#ifdef KERNEL -#include -#include -#include -#include -#include -#include +#include "ufs.h" +#include "fs.h" +#if 0 /* Not needed in GNU Hurd ufs. */ /* * Return buffer with the contents of block "offset" from the beginning of * directory "ip". If "res" is non-zero, fill it in with a pointer to the @@ -79,7 +72,7 @@ ffs_blkatoff(ap) *ap->a_bpp = bp; return (0); } -#endif +#endif /* 0 */ /* * Update the frsum fields to reflect addition or deletion @@ -87,7 +80,7 @@ ffs_blkatoff(ap) */ void ffs_fragacct(fs, fragmap, fraglist, cnt) - struct fs *fs; + struct fs *fs; int fragmap; long fraglist[]; int cnt; @@ -116,7 +109,7 @@ ffs_fragacct(fs, fragmap, fraglist, cnt) } } -#if defined(KERNEL) && defined(DIAGNOSTIC) +#if 0 /* Not needed in GNU Hurd ufs. */ void ffs_checkoverlap(bp, ip) struct buf *bp; @@ -148,7 +141,7 @@ ffs_checkoverlap(bp, ip) panic("Disk buffer overlap"); } } -#endif /* DIAGNOSTIC */ +#endif /* 0 */ /* * block operations -- cgit v1.2.3