summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2015-07-29 03:06:08 +0000
committerjeff <jeff@FreeBSD.org>2015-07-29 03:06:08 +0000
commitb7b72de7da1bacfaf7e37fed7943715dd342af86 (patch)
tree35816d081b113345844560a49975e446798c639e /sys/fs
parent5f3e1e3c1b0e52c8c7e437b0dc3a55fbd40e24a9 (diff)
downloadFreeBSD-src-b7b72de7da1bacfaf7e37fed7943715dd342af86.zip
FreeBSD-src-b7b72de7da1bacfaf7e37fed7943715dd342af86.tar.gz
- Remove some dead code copied from ffs.
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/ext2fs/ext2_subr.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/sys/fs/ext2fs/ext2_subr.c b/sys/fs/ext2fs/ext2_subr.c
index 6b9041d..1c5c3bb 100644
--- a/sys/fs/ext2fs/ext2_subr.c
+++ b/sys/fs/ext2fs/ext2_subr.c
@@ -54,10 +54,6 @@
#include <fs/ext2fs/ext2_mount.h>
#include <fs/ext2fs/ext2_dinode.h>
-#ifdef KDB
-void ext2_checkoverlap(struct buf *, struct inode *);
-#endif
-
/*
* 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
@@ -130,34 +126,6 @@ normal:
return (0);
}
-#ifdef KDB
-void
-ext2_checkoverlap(struct buf *bp, struct inode *ip)
-{
- struct buf *ebp, *ep;
- e4fs_daddr_t start, last;
- struct vnode *vp;
-
- ebp = &buf[nbuf];
- start = bp->b_blkno;
- last = start + btodb(bp->b_bcount) - 1;
- for (ep = buf; ep < ebp; ep++) {
- if (ep == bp || (ep->b_flags & B_INVAL))
- continue;
- vp = ip->i_ump->um_devvp;
- /* look for overlap */
- if (ep->b_bcount == 0 || ep->b_blkno > last ||
- ep->b_blkno + btodb(ep->b_bcount) <= start)
- continue;
- vprint("Disk overlap", vp);
- printf("\tstart %jd, end %jd overlap start %jd, end %jd\n",
- (intmax_t)start, (intmax_t)last, (intmax_t)ep->b_blkno,
- (intmax_t)(ep->b_blkno + btodb(ep->b_bcount) - 1));
- panic("ext2_checkoverlap: Disk buffer overlap");
- }
-}
-#endif /* KDB */
-
/*
* Update the cluster map because of an allocation of free like ffs.
*
OpenPOWER on IntegriCloud