Fix a bug in vnode_pager_generic_getpages(). This function was improperly
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 28 Aug 2007 01:09:24 +0000 (01:09 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 28 Aug 2007 01:09:24 +0000 (01:09 +0000)
commita55afca2e0fd73436eaab66f5f905a32a42573fc
tree8abc2a70da1a6a834441af734285568cdeaaa082
parent1787385d89ee6d0792a7676ab4345c19bbddd8df
Fix a bug in vnode_pager_generic_getpages().  This function was improperly
setting m->valid to 0 and was also improperly trying to free the page after
it had potentially become wired by the buffer cache.

Add a sysctl to UFS that allows us to force it to call vop_stdgetpages()
for debugging purposes.
sys/kern/kern_exec.c
sys/vfs/ufs/ufs_readwrite.c
sys/vm/vm_fault.c
sys/vm/vnode_pager.c