diff options
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index f04fd50..95748df 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1691,52 +1691,6 @@ syncer_shutdown(void *arg, int howto) } /* - * Associate a p-buffer with a vnode. - * - * Also sets B_PAGING flag to indicate that vnode is not fully associated - * with the buffer. i.e. the bp has not been linked into the vnode or - * ref-counted. - */ -void -pbgetvp(vp, bp) - register struct vnode *vp; - register struct buf *bp; -{ - - KASSERT(bp->b_vp == NULL, ("pbgetvp: not free")); - - bp->b_vp = vp; - bp->b_flags |= B_PAGING; - bp->b_bufobj = &vp->v_bufobj; -} - -/* - * Disassociate a p-buffer from a vnode. - */ -void -pbrelvp(bp) - register struct buf *bp; -{ - - KASSERT(bp->b_vp != NULL, ("pbrelvp: NULL")); - KASSERT(bp->b_bufobj != NULL, ("pbrelvp: NULL bufobj")); - - /* XXX REMOVE ME */ - BO_LOCK(bp->b_bufobj); - if (TAILQ_NEXT(bp, b_bobufs) != NULL) { - panic( - "relpbuf(): b_vp was probably reassignbuf()d %p %x", - bp, - (int)bp->b_flags - ); - } - BO_UNLOCK(bp->b_bufobj); - bp->b_vp = NULL; - bp->b_bufobj = NULL; - bp->b_flags &= ~B_PAGING; -} - -/* * Reassign a buffer from one vnode to another. * Used to assign file specific control information * (indirect blocks) to the vnode to which they belong. |