- spell add 'add' and not 'subtract' in an atomic op.

Spotted by:	alc
Pointy hat to:	jeff
This commit is contained in:
Jeff Roberson 2003-02-09 11:21:40 +00:00
parent 233b1b978b
commit 15553af710

View File

@ -342,7 +342,7 @@ runningbufwakeup(struct buf *bp)
static __inline void
bufcountwakeup(void)
{
atomic_subtract_int(&numfreebuffers, 1);
atomic_add_int(&numfreebuffers, 1);
mtx_lock(&nblock);
if (needsbuffer) {
needsbuffer &= ~VFS_BIO_NEED_ANY;