summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2003-02-09 22:39:51 +0000
committerJeff Roberson <jeff@FreeBSD.org>2003-02-09 22:39:51 +0000
commit3306adcfcf3c19b52b7bad81f372ad2d75d42708 (patch)
tree8a91644ceceb65eb9c937b13c2b33cbf71577c44 /sys
parent3f54508cbabeef8ba4fb1efbb86ec05b2bb39619 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_bio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 5723ed1af5fa4..1fab37d44029b 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -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;