Fixed configuration and linkage of ext2_checkoverlap().

This commit is contained in:
bde 1998-02-13 00:28:40 +00:00
parent 227f4a2d7c
commit b28763a6b1
4 changed files with 10 additions and 16 deletions

View File

@ -99,10 +99,6 @@ void mark_buffer_dirty __P((struct buf *bh));
*/
#define IS_EXT2_VNODE(vp) (vp->v_mount->mnt_stat.f_type == MOUNT_EXT2FS)
#ifdef DIAGNOSTIC
void ext2_checkoverlap __P((struct buf *, struct inode *));
#endif
extern vop_t **ext2_vnodeop_p;
extern vop_t **ext2_specop_p;
extern vop_t **ext2_fifoop_p;

View File

@ -51,6 +51,8 @@
#include <ufs/ufs/quota.h>
#include <ufs/ufs/inode.h>
static void ext2_checkoverlap __P((struct buf *, struct inode *));
/*
* 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
@ -85,8 +87,8 @@ ext2_blkatoff(vp, offset, res, bpp)
return (0);
}
#if defined(KERNEL) && defined(DIAGNOSTIC)
void
#ifdef DDB
static void
ext2_checkoverlap(bp, ip)
struct buf *bp;
struct inode *ip;
@ -117,5 +119,4 @@ ext2_checkoverlap(bp, ip)
panic("Disk buffer overlap");
}
}
#endif /* DIAGNOSTIC */
#endif /* DDB */

View File

@ -99,10 +99,6 @@ void mark_buffer_dirty __P((struct buf *bh));
*/
#define IS_EXT2_VNODE(vp) (vp->v_mount->mnt_stat.f_type == MOUNT_EXT2FS)
#ifdef DIAGNOSTIC
void ext2_checkoverlap __P((struct buf *, struct inode *));
#endif
extern vop_t **ext2_vnodeop_p;
extern vop_t **ext2_specop_p;
extern vop_t **ext2_fifoop_p;

View File

@ -51,6 +51,8 @@
#include <ufs/ufs/quota.h>
#include <ufs/ufs/inode.h>
static void ext2_checkoverlap __P((struct buf *, struct inode *));
/*
* 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
@ -85,8 +87,8 @@ ext2_blkatoff(vp, offset, res, bpp)
return (0);
}
#if defined(KERNEL) && defined(DIAGNOSTIC)
void
#ifdef DDB
static void
ext2_checkoverlap(bp, ip)
struct buf *bp;
struct inode *ip;
@ -117,5 +119,4 @@ ext2_checkoverlap(bp, ip)
panic("Disk buffer overlap");
}
}
#endif /* DIAGNOSTIC */
#endif /* DDB */