diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-05-05 20:37:08 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-05-05 20:37:08 +0000 |
commit | 81e017430a90a8c1c7b43ffd46651adcda79f61f (patch) | |
tree | 2609a18365c693b4ee1ad5f36f115b861d42d3d8 | |
parent | d08961bec32ee2c11b045c4bf8ff233e12a94c09 (diff) | |
download | src-81e017430a90a8c1c7b43ffd46651adcda79f61f.tar.gz src-81e017430a90a8c1c7b43ffd46651adcda79f61f.zip |
Expand the one-line function pbreassignbuf() the only place it is or could
be used.
Notes
Notes:
svn path=/head/; revision=96073
-rw-r--r-- | sys/kern/vfs_subr.c | 14 | ||||
-rw-r--r-- | sys/sys/buf.h | 1 | ||||
-rw-r--r-- | sys/vm/vm_swap.c | 2 |
3 files changed, 1 insertions, 16 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index c7d5c54214f0..6ec9007ba43b 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1442,20 +1442,6 @@ pbrelvp(bp) } /* - * Change the vnode a pager buffer is associated with. - */ -void -pbreassignbuf(bp, newvp) - struct buf *bp; - struct vnode *newvp; -{ - - KASSERT(bp->b_flags & B_PAGING, - ("pbreassignbuf() on non phys bp %p", bp)); - bp->b_vp = newvp; -} - -/* * Reassign a buffer from one vnode to another. * Used to assign file specific control information * (indirect blocks) to the vnode to which they belong. diff --git a/sys/sys/buf.h b/sys/sys/buf.h index 0369060934c8..3f0e259b9f21 100644 --- a/sys/sys/buf.h +++ b/sys/sys/buf.h @@ -499,7 +499,6 @@ void pbgetvp(struct vnode *, struct buf *); void pbrelvp(struct buf *); int allocbuf(struct buf *bp, int size); void reassignbuf(struct buf *, struct vnode *); -void pbreassignbuf(struct buf *, struct vnode *); struct buf *trypbuf(int *); #endif /* _KERNEL */ diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c index f1f2271a2c1b..c953bff84655 100644 --- a/sys/vm/vm_swap.c +++ b/sys/vm/vm_swap.c @@ -150,7 +150,7 @@ swapdev_strategy(ap) } sp->sw_vp->v_numoutput++; } - pbreassignbuf(bp, sp->sw_vp); + bp->b_vp = sp->sw_vp; splx(s); BUF_STRATEGY(bp); return 0; |