diff options
Diffstat (limited to 'include/linux/sched.h')
| -rw-r--r-- | include/linux/sched.h | 14 | 
1 files changed, 8 insertions, 6 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 7eb7f31af796..3ed40e9f6155 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1261,6 +1261,7 @@ struct task_struct {  	/* Protected by alloc_lock: */  	struct mempolicy		*mempolicy;  	short				il_prev; +	u8				il_weight;  	short				pref_node_fork;  #endif  #ifdef CONFIG_NUMA_BALANCING @@ -1625,25 +1626,26 @@ extern struct pid *cad_pid;  #define PF_SUPERPRIV		0x00000100	/* Used super-user privileges */  #define PF_DUMPCORE		0x00000200	/* Dumped core */  #define PF_SIGNALED		0x00000400	/* Killed by a signal */ -#define PF_MEMALLOC		0x00000800	/* Allocating memory */ +#define PF_MEMALLOC		0x00000800	/* Allocating memory to free memory. See memalloc_noreclaim_save() */  #define PF_NPROC_EXCEEDED	0x00001000	/* set_user() noticed that RLIMIT_NPROC was exceeded */  #define PF_USED_MATH		0x00002000	/* If unset the fpu must be initialized before use */  #define PF_USER_WORKER		0x00004000	/* Kernel thread cloned from userspace thread */  #define PF_NOFREEZE		0x00008000	/* This thread should not be frozen */  #define PF__HOLE__00010000	0x00010000  #define PF_KSWAPD		0x00020000	/* I am kswapd */ -#define PF_MEMALLOC_NOFS	0x00040000	/* All allocation requests will inherit GFP_NOFS */ -#define PF_MEMALLOC_NOIO	0x00080000	/* All allocation requests will inherit GFP_NOIO */ +#define PF_MEMALLOC_NOFS	0x00040000	/* All allocations inherit GFP_NOFS. See memalloc_nfs_save() */ +#define PF_MEMALLOC_NOIO	0x00080000	/* All allocations inherit GFP_NOIO. See memalloc_noio_save() */  #define PF_LOCAL_THROTTLE	0x00100000	/* Throttle writes only against the bdi I write to,  						 * I am cleaning dirty pages from some other bdi. */  #define PF_KTHREAD		0x00200000	/* I am a kernel thread */  #define PF_RANDOMIZE		0x00400000	/* Randomize virtual address space */ -#define PF__HOLE__00800000	0x00800000 -#define PF__HOLE__01000000	0x01000000 +#define PF_MEMALLOC_NORECLAIM	0x00800000	/* All allocation requests will clear __GFP_DIRECT_RECLAIM */ +#define PF_MEMALLOC_NOWARN	0x01000000	/* All allocation requests will inherit __GFP_NOWARN */  #define PF__HOLE__02000000	0x02000000  #define PF_NO_SETAFFINITY	0x04000000	/* Userland is not allowed to meddle with cpus_mask */  #define PF_MCE_EARLY		0x08000000      /* Early kill for mce process policy */ -#define PF_MEMALLOC_PIN		0x10000000	/* Allocation context constrained to zones which allow long term pinning. */ +#define PF_MEMALLOC_PIN		0x10000000	/* Allocations constrained to zones which allow long term pinning. +						 * See memalloc_pin_save() */  #define PF_BLOCK_TS		0x20000000	/* plug has ts that needs updating */  #define PF__HOLE__40000000	0x40000000  #define PF_SUSPEND_TASK		0x80000000      /* This thread called freeze_processes() and should not be frozen */  | 
