diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index baf1851d43c7..4c4e14f40b70 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -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;