diff options
author | jeff <jeff@FreeBSD.org> | 2003-02-09 22:39:51 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2003-02-09 22:39:51 +0000 |
commit | 6bab19f3acd2ddd0981a4ba20a40208d410e7535 (patch) | |
tree | 8a91644ceceb65eb9c937b13c2b33cbf71577c44 | |
parent | b56ce9f887a3a2f426a777731e371d794c6f9f0d (diff) | |
download | FreeBSD-src-6bab19f3acd2ddd0981a4ba20a40208d410e7535.zip FreeBSD-src-6bab19f3acd2ddd0981a4ba20a40208d410e7535.tar.gz |
- Correct another atomic op.
Spotted by: alc
-rw-r--r-- | sys/kern/vfs_bio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 5723ed1..1fab37d 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; |