diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2012-08-04 18:16:43 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2012-08-04 18:16:43 +0000 |
commit | 0055cbd3c570204a06928927c64b0b61a430328d (patch) | |
tree | 6ac153a747b185932191fda117e5d5ee749c7fd6 /sys/nfsclient | |
parent | 843dcea09e00a22494df2f0efe5c2b4ea4a1705a (diff) | |
download | src-test2-0055cbd3c570204a06928927c64b0b61a430328d.tar.gz src-test2-0055cbd3c570204a06928927c64b0b61a430328d.zip |
Notes
Diffstat (limited to 'sys/nfsclient')
-rw-r--r-- | sys/nfsclient/nfs_bio.c | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c index 2ffd82258f74..568f990625dc 100644 --- a/sys/nfsclient/nfs_bio.c +++ b/sys/nfsclient/nfs_bio.c @@ -217,36 +217,8 @@ nfs_getpages(struct vop_getpages_args *ap) */ ; } - if (i != ap->a_reqpage) { - /* - * Whether or not to leave the page activated is up in - * the air, but we should put the page on a page queue - * somewhere (it already is in the object). Result: - * It appears that emperical results show that - * deactivating pages is best. - */ - - /* - * Just in case someone was asking for this page we - * now tell them that it is ok to use. - */ - if (!error) { - if (m->oflags & VPO_WANTED) { - vm_page_lock(m); - vm_page_activate(m); - vm_page_unlock(m); - } else { - vm_page_lock(m); - vm_page_deactivate(m); - vm_page_unlock(m); - } - vm_page_wakeup(m); - } else { - vm_page_lock(m); - vm_page_free(m); - vm_page_unlock(m); - } - } + if (i != ap->a_reqpage) + vm_page_readahead_finish(m, error); } VM_OBJECT_UNLOCK(object); return (0); |