summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2005-05-18 20:45:33 +0000
committeralc <alc@FreeBSD.org>2005-05-18 20:45:33 +0000
commit1b7ce7e5142942e022149587a3efd7c97f5e34a7 (patch)
tree590aa8d9090b65b0012905aff1d09c1908e59e6e /sys/vm
parent0e9f42833ecf4feced5c43717c621666b9d59cab (diff)
downloadFreeBSD-src-1b7ce7e5142942e022149587a3efd7c97f5e34a7.zip
FreeBSD-src-1b7ce7e5142942e022149587a3efd7c97f5e34a7.tar.gz
Remove calls to spl*().
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_pager.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/vm/vm_pager.c b/sys/vm/vm_pager.c
index 28e0fe7..8cc4839 100644
--- a/sys/vm/vm_pager.c
+++ b/sys/vm/vm_pager.c
@@ -318,10 +318,8 @@ initpbuf(struct buf *bp)
struct buf *
getpbuf(int *pfreecnt)
{
- int s;
struct buf *bp;
- s = splvm();
mtx_lock(&pbuf_mtx);
for (;;) {
@@ -343,7 +341,6 @@ getpbuf(int *pfreecnt)
if (pfreecnt)
--*pfreecnt;
mtx_unlock(&pbuf_mtx);
- splx(s);
initpbuf(bp);
return bp;
@@ -358,14 +355,11 @@ getpbuf(int *pfreecnt)
struct buf *
trypbuf(int *pfreecnt)
{
- int s;
struct buf *bp;
- s = splvm();
mtx_lock(&pbuf_mtx);
if (*pfreecnt == 0 || (bp = TAILQ_FIRST(&bswlist)) == NULL) {
mtx_unlock(&pbuf_mtx);
- splx(s);
return NULL;
}
TAILQ_REMOVE(&bswlist, bp, b_freelist);
@@ -373,7 +367,6 @@ trypbuf(int *pfreecnt)
--*pfreecnt;
mtx_unlock(&pbuf_mtx);
- splx(s);
initpbuf(bp);
@@ -389,9 +382,6 @@ trypbuf(int *pfreecnt)
void
relpbuf(struct buf *bp, int *pfreecnt)
{
- int s;
-
- s = splvm();
if (bp->b_rcred != NOCRED) {
crfree(bp->b_rcred);
@@ -419,7 +409,6 @@ relpbuf(struct buf *bp, int *pfreecnt)
wakeup(pfreecnt);
}
mtx_unlock(&pbuf_mtx);
- splx(s);
}
/*
OpenPOWER on IntegriCloud