Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F112009394
D18061.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D18061.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D18061: linuxkpi: Use pageproc instead of vmproc
Attached
Detach File
Event Timeline
Log In to Comment