summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2003-02-09 11:21:40 +0000
committerjeff <jeff@FreeBSD.org>2003-02-09 11:21:40 +0000
commit75e9ed76e4bbf5978303d4d7ee581c86bef55c50 (patch)
tree68107458d119a320b24b48fbf011633ec9c0961d
parent51e766f699e3222372b15ccd29d5b01a3e4757e9 (diff)
downloadFreeBSD-src-75e9ed76e4bbf5978303d4d7ee581c86bef55c50.zip
FreeBSD-src-75e9ed76e4bbf5978303d4d7ee581c86bef55c50.tar.gz
- spell add 'add' and not 'subtract' in an atomic op.
Spotted by: alc Pointy hat to: jeff
-rw-r--r--sys/kern/vfs_bio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index baf1851..4c4e14f 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;
OpenPOWER on IntegriCloud