Page MenuHomeFreeBSD

D18061.diff
No OneTemporary

D18061.diff

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;
-}

File Metadata

Mime Type
text/plain
Expires
Wed, Mar 12, 12:47 PM (5 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17119577
Default Alt Text
D18061.diff (1 KB)

Event Timeline