summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2010-05-18 16:40:29 +0000
committeralc <alc@FreeBSD.org>2010-05-18 16:40:29 +0000
commitf8bed5b2883af9c45d87310d9d10a81e6fd75834 (patch)
tree9326e3aa8a7f9c8b44936b69518038347cc385d8 /sys/kern/vfs_bio.c
parentf11cb3f4b947ea3d659a1b883a71986d52f3efb7 (diff)
downloadFreeBSD-src-f8bed5b2883af9c45d87310d9d10a81e6fd75834.zip
FreeBSD-src-f8bed5b2883af9c45d87310d9d10a81e6fd75834.tar.gz
The page queues lock is no longer required by vm_page_set_invalid(), so
eliminate it. Assert that the object containing the page is locked in vm_page_test_dirty(). Perform some style clean up while I'm here. Reviewed by: kib
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index cc76a3c..1ec7ea3 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -1353,9 +1353,7 @@ brelse(struct buf *bp)
(PAGE_SIZE - poffset) : resid;
KASSERT(presid >= 0, ("brelse: extra page"));
- vm_page_lock_queues();
vm_page_set_invalid(m, poffset, presid);
- vm_page_unlock_queues();
if (had_bogus)
printf("avoided corruption bug in bogus_page/brelse code\n");
}
OpenPOWER on IntegriCloud