Index: head/sys/compat/linuxkpi/common/include/linux/swap.h =================================================================== --- head/sys/compat/linuxkpi/common/include/linux/swap.h +++ head/sys/compat/linuxkpi/common/include/linux/swap.h @@ -45,7 +45,8 @@ static inline int current_is_kswapd(void) { - return vm_curproc_is_vmproc(); + + return (curproc == pageproc); } #endif Index: head/sys/vm/vm_pageout.h =================================================================== --- head/sys/vm/vm_pageout.h +++ head/sys/vm/vm_pageout.h @@ -107,7 +107,5 @@ void vm_swapout_run(void); void vm_swapout_run_idle(void); -bool vm_curproc_is_vmproc(void); - #endif /* _KERNEL */ #endif /* _VM_VM_PAGEOUT_H_ */ Index: head/sys/vm/vm_swapout.c =================================================================== --- head/sys/vm/vm_swapout.c +++ head/sys/vm/vm_swapout.c @@ -961,10 +961,3 @@ p->p_swtick = ticks; return (0); } - -/* Used to determine if the current process is itself the reaper. */ -bool -vm_curproc_is_vmproc(void) -{ - return curproc == vmproc; -}