diff options
author | alc <alc@FreeBSD.org> | 2010-05-25 02:26:25 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2010-05-25 02:26:25 +0000 |
commit | 54739180f58e45d974d8c6ef01214f98e9af2868 (patch) | |
tree | 77daf3209507e8a9eb6a0f531e60c14752af2a35 /sys/kern/vfs_bio.c | |
parent | e326b6b301594e3e1b6cdc9e7f0922dddc89becc (diff) | |
download | FreeBSD-src-54739180f58e45d974d8c6ef01214f98e9af2868.zip FreeBSD-src-54739180f58e45d974d8c6ef01214f98e9af2868.tar.gz |
Eliminate the acquisition and release of the page queues lock from
vfs_busy_pages(). It is no longer needed.
Submitted by: kib
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r-- | sys/kern/vfs_bio.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index e2207dc..efdb77d 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -3508,7 +3508,6 @@ vfs_page_set_validclean(struct buf *bp, vm_ooffset_t off, vm_page_t m) { vm_ooffset_t soff, eoff; - mtx_assert(&vm_page_queue_mtx, MA_OWNED); /* * Start and end offsets in buffer. eoff - soff may not cross a * page boundry or cross the end of the buffer. The end of the @@ -3571,8 +3570,6 @@ retry: goto retry; } bogus = 0; - if (clear_modify) - vm_page_lock_queues(); for (i = 0; i < bp->b_npages; i++) { m = bp->b_pages[i]; @@ -3605,8 +3602,6 @@ retry: } foff = (foff + PAGE_SIZE) & ~(off_t)PAGE_MASK; } - if (clear_modify) - vm_page_unlock_queues(); VM_OBJECT_UNLOCK(obj); if (bogus) pmap_qenter(trunc_page((vm_offset_t)bp->b_data), |