change on us. also, remove unused second arg to bufq_wait.
from pedro at bitrig via david hill.
ok beck kettenis
-/* $OpenBSD: kern_bufq.c,v 1.28 2014/07/12 18:43:32 tedu Exp $ */
+/* $OpenBSD: kern_bufq.c,v 1.29 2015/01/09 05:04:22 tedu Exp $ */
/*
* Copyright (c) 2010 Thordur I. Bjornsson <thib@openbsd.org>
* Copyright (c) 2010 David Gwynne <dlg@openbsd.org>
}
void
-bufq_wait(struct bufq *bq, struct buf *bp)
+bufq_wait(struct bufq *bq)
{
if (bq->bufq_hi) {
assertwaitok();
-/* $OpenBSD: vfs_bio.c,v 1.165 2014/12/16 18:30:04 tedu Exp $ */
+/* $OpenBSD: vfs_bio.c,v 1.166 2015/01/09 05:04:22 tedu Exp $ */
/* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */
/*
int rv, async, wasdelayed, s;
struct vnode *vp;
struct mount *mp;
+ struct bufq *bq;
vp = bp->b_vp;
if (vp != NULL)
/* Initiate disk write. Make sure the appropriate party is charged. */
bp->b_vp->v_numoutput++;
+ bq = bp->b_bq;
splx(s);
SET(bp->b_flags, B_WRITEINPROG);
VOP_STRATEGY(bp);
* the number of outstanding write bufs drops below the low
* water mark.
*/
- if (bp->b_bq)
- bufq_wait(bp->b_bq, bp);
+ if (bq)
+ bufq_wait(bq);
if (async)
return (0);
-/* $OpenBSD: buf.h,v 1.96 2014/11/17 16:48:33 tedu Exp $ */
+/* $OpenBSD: buf.h,v 1.97 2015/01/09 05:04:22 tedu Exp $ */
/* $NetBSD: buf.h,v 1.25 1997/04/09 21:12:17 mycroft Exp $ */
/*
int bufq_peek(struct bufq *);
void bufq_drain(struct bufq *);
-void bufq_wait(struct bufq *, struct buf *);
+void bufq_wait(struct bufq *);
void bufq_done(struct bufq *, struct buf *);
void bufq_quiesce(void);
void bufq_restart(void);