mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
- Remove some dead code copied from ffs.
This commit is contained in:
parent
aa255ef6dd
commit
7d07bfd8a3
1 changed files with 0 additions and 32 deletions
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue