Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/swap.h
| Show All 31 Lines | |||||
| #include <sys/queue.h> | #include <sys/queue.h> | ||||
| #include <sys/proc.h> | #include <sys/proc.h> | ||||
| #include <sys/pcpu.h> | #include <sys/pcpu.h> | ||||
| #include <vm/vm.h> | #include <vm/vm.h> | ||||
| #include <vm/swap_pager.h> | #include <vm/swap_pager.h> | ||||
| #include <vm/vm_pageout.h> | #include <vm/vm_pageout.h> | ||||
| #include <linux/spinlock.h> | |||||
| #include <linux/mmzone.h> | |||||
| #include <linux/list.h> | |||||
| #include <linux/memcontrol.h> | |||||
| #include <linux/sched.h> | |||||
| #include <linux/fs.h> | |||||
| #include <linux/pagemap.h> | #include <linux/pagemap.h> | ||||
| #include <linux/atomic.h> | |||||
| #include <linux/page-flags.h> | #include <linux/page-flags.h> | ||||
| static inline long | static inline long | ||||
| get_nr_swap_pages(void) | get_nr_swap_pages(void) | ||||
| { | { | ||||
| int i, j; | int i, j; | ||||
| /* NB: This could be done cheaply by obtaining swap_total directly */ | /* NB: This could be done cheaply by obtaining swap_total directly */ | ||||
| Show All 23 Lines | |||||