- Correct another atomic op.

Spotted by:	alc
This commit is contained in:
Jeff Roberson 2003-02-09 22:39:51 +00:00
parent 3f54508cba
commit 3306adcfcf

View File

@ -2702,7 +2702,8 @@ allocbuf(struct buf *bp, int size)
} else {
free(bp->b_data, M_BIOBUF);
if (bp->b_bufsize) {
atomic_add_int(&bufmallocspace,
atomic_subtract_int(
&bufmallocspace,
bp->b_bufsize);
bufspacewakeup();
bp->b_bufsize = 0;