diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2001-05-01 09:12:31 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2001-05-01 09:12:31 +0000 |
| commit | 3c7a8027cbbf40f3357312e8e1f13ef6024e412f (patch) | |
| tree | 4315d3cf8ab6f63c9aa07f29f23cd58fd43e5195 | |
| parent | cf94807d033c9cee7aabfaa60bb97d8804bf5935 (diff) | |
Notes
| -rw-r--r-- | sys/ufs/ffs/ffs_softdep.c | 6 | ||||
| -rw-r--r-- | sys/ufs/ffs/ffs_subr.c | 6 |
2 files changed, 3 insertions, 9 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index e8399a61fc48..0d1cd2dd40d0 100644 --- a/sys/ufs/ffs/ffs_softdep.c +++ b/sys/ufs/ffs/ffs_softdep.c @@ -1672,10 +1672,8 @@ setup_allocindir_phase2(bp, ip, aip) newindirdep->ir_state = ATTACHED; LIST_INIT(&newindirdep->ir_deplisthd); LIST_INIT(&newindirdep->ir_donehd); - if (bp->b_blkno == bp->b_lblkno) { - VOP_BMAP(bp->b_vp, bp->b_lblkno, NULL, &bp->b_blkno, - NULL, NULL); - } + if (bp->b_blkno == bp->b_lblkno) + ufs_bmaparray(bp->b_vp, bp->b_lblkno, &bp->b_blkno, NULL, NULL); newindirdep->ir_savebp = getblk(ip->i_devvp, bp->b_blkno, bp->b_bcount, 0, 0); BUF_KERNPROC(newindirdep->ir_savebp); diff --git a/sys/ufs/ffs/ffs_subr.c b/sys/ufs/ffs/ffs_subr.c index c3471deb51cd..b50d1ab80b41 100644 --- a/sys/ufs/ffs/ffs_subr.c +++ b/sys/ufs/ffs/ffs_subr.c @@ -145,11 +145,7 @@ ffs_checkoverlap(bp, ip) if (ep == bp || (ep->b_flags & B_INVAL) || ep->b_vp == NULLVP) continue; - if (VOP_BMAP(ep->b_vp, (ufs_daddr_t)0, &vp, (ufs_daddr_t *)NULL, - (int *)NULL, (int *)NULL)) - continue; - if (vp != ip->i_devvp) - continue; + vp = ip->i_devvp; /* look for overlap */ if (ep->b_bcount == 0 || ep->b_blkno > last || ep->b_blkno + btodb(ep->b_bcount) <= start) |
