diff options
author | alc <alc@FreeBSD.org> | 2010-06-02 15:46:37 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2010-06-02 15:46:37 +0000 |
commit | 24ac89cf14c282421af2638eaf20a08c0649ab78 (patch) | |
tree | 7da5c63c04fad0ef79b4758aad12c540642e9863 /sys/vm/vnode_pager.c | |
parent | b16b48273ab37f4a59084d43d95bb66e8434c813 (diff) | |
download | FreeBSD-src-24ac89cf14c282421af2638eaf20a08c0649ab78.zip FreeBSD-src-24ac89cf14c282421af2638eaf20a08c0649ab78.tar.gz |
Minimize the use of the page queues lock for synchronizing access to the
page's dirty field. With the exception of one case, access to this field
is now synchronized by the object lock.
Diffstat (limited to 'sys/vm/vnode_pager.c')
-rw-r--r-- | sys/vm/vnode_pager.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c index c1f8cff..f497d41 100644 --- a/sys/vm/vnode_pager.c +++ b/sys/vm/vnode_pager.c @@ -429,9 +429,7 @@ vnode_pager_setsize(vp, nsize) * bits. This would prevent bogus_page * replacement from working properly. */ - vm_page_lock_queues(); vm_page_clear_dirty(m, base, PAGE_SIZE - base); - vm_page_unlock_queues(); } else if ((nsize & PAGE_MASK) && __predict_false(object->cache != NULL)) { vm_page_cache_free(object, OFF_TO_IDX(nsize), |