1 /****************************************************************************
2 ****************************************************************************
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
10 ****************************************************************************
11 ****************************************************************************/
15 #include <linux/spinlock.h>
16 #include <linux/linkage.h>
17 #include <linux/mmzone.h>
18 #include <linux/list.h>
19 #include <linux/sched.h>
21 #include <asm/atomic.h>
24 #define SWAP_FLAG_PREFER 0x8000
25 #define SWAP_FLAG_PRIO_MASK 0x7fff
26 #define SWAP_FLAG_PRIO_SHIFT 0
28 #define MAX_SWAPFILES_SHIFT 5
29 #define MAX_SWAPFILES (1 << MAX_SWAPFILES_SHIFT)
35 struct reclaim_state
{
36 unsigned long reclaimed_slab
;