xref: /openbsd/sys/dev/pci/drm/include/linux/swap.h (revision a4e118ac)
1 /* Public domain. */
2 
3 #ifndef _LINUX_SWAP_H
4 #define _LINUX_SWAP_H
5 
6 #include <uvm/uvm_extern.h>
7 
8 static inline long
9 get_nr_swap_pages(void)
10 {
11 	return uvmexp.swpages - uvmexp.swpginuse;
12 }
13 
14 /*
15  * XXX For now, we don't want the shrinker to be too aggressive, so
16  * pretend we're not called from the pagedaemon even if we are.
17  */
18 #define current_is_kswapd()	0
19 
20 #endif
21