diff options
Diffstat (limited to 'include/linux/sched.h')
| -rw-r--r-- | include/linux/sched.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 37543876ddf5..f2f842db03ce 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -1453,10 +1453,8 @@ struct task_struct { | |||
| 1453 | gfp_t lockdep_reclaim_gfp; | 1453 | gfp_t lockdep_reclaim_gfp; |
| 1454 | #endif | 1454 | #endif |
| 1455 | 1455 | ||
| 1456 | #ifdef CONFIG_FS_JOURNAL_INFO | ||
| 1457 | /* journalling filesystem info */ | 1456 | /* journalling filesystem info */ |
| 1458 | void *journal_info; | 1457 | void *journal_info; |
| 1459 | #endif | ||
| 1460 | 1458 | ||
| 1461 | /* stacked block device info */ | 1459 | /* stacked block device info */ |
| 1462 | struct bio *bio_list, **bio_tail; | 1460 | struct bio *bio_list, **bio_tail; |
| @@ -1551,10 +1549,18 @@ struct task_struct { | |||
| 1551 | unsigned long trace_recursion; | 1549 | unsigned long trace_recursion; |
| 1552 | #endif /* CONFIG_TRACING */ | 1550 | #endif /* CONFIG_TRACING */ |
| 1553 | unsigned long stack_start; | 1551 | unsigned long stack_start; |
| 1552 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR /* memcg uses this to do batch job */ | ||
| 1553 | struct memcg_batch_info { | ||
| 1554 | int do_batch; /* incremented when batch uncharge started */ | ||
| 1555 | struct mem_cgroup *memcg; /* target memcg of uncharge */ | ||
| 1556 | unsigned long bytes; /* uncharged usage */ | ||
| 1557 | unsigned long memsw_bytes; /* uncharged mem+swap usage */ | ||
| 1558 | } memcg_batch; | ||
| 1559 | #endif | ||
| 1554 | }; | 1560 | }; |
| 1555 | 1561 | ||
| 1556 | /* Future-safe accessor for struct task_struct's cpus_allowed. */ | 1562 | /* Future-safe accessor for struct task_struct's cpus_allowed. */ |
| 1557 | #define tsk_cpumask(tsk) (&(tsk)->cpus_allowed) | 1563 | #define tsk_cpus_allowed(tsk) (&(tsk)->cpus_allowed) |
| 1558 | 1564 | ||
| 1559 | /* | 1565 | /* |
| 1560 | * Priority of a process goes from 0..MAX_PRIO-1, valid RT | 1566 | * Priority of a process goes from 0..MAX_PRIO-1, valid RT |
| @@ -2082,7 +2088,6 @@ extern int kill_proc_info(int, struct siginfo *, pid_t); | |||
| 2082 | extern int do_notify_parent(struct task_struct *, int); | 2088 | extern int do_notify_parent(struct task_struct *, int); |
| 2083 | extern void __wake_up_parent(struct task_struct *p, struct task_struct *parent); | 2089 | extern void __wake_up_parent(struct task_struct *p, struct task_struct *parent); |
| 2084 | extern void force_sig(int, struct task_struct *); | 2090 | extern void force_sig(int, struct task_struct *); |
| 2085 | extern void force_sig_specific(int, struct task_struct *); | ||
| 2086 | extern int send_sig(int, struct task_struct *, int); | 2091 | extern int send_sig(int, struct task_struct *, int); |
| 2087 | extern void zap_other_threads(struct task_struct *p); | 2092 | extern void zap_other_threads(struct task_struct *p); |
| 2088 | extern struct sigqueue *sigqueue_alloc(void); | 2093 | extern struct sigqueue *sigqueue_alloc(void); |
| @@ -2101,11 +2106,6 @@ static inline int kill_cad_pid(int sig, int priv) | |||
| 2101 | #define SEND_SIG_PRIV ((struct siginfo *) 1) | 2106 | #define SEND_SIG_PRIV ((struct siginfo *) 1) |
| 2102 | #define SEND_SIG_FORCED ((struct siginfo *) 2) | 2107 | #define SEND_SIG_FORCED ((struct siginfo *) 2) |
| 2103 | 2108 | ||
| 2104 | static inline int is_si_special(const struct siginfo *info) | ||
| 2105 | { | ||
| 2106 | return info <= SEND_SIG_FORCED; | ||
| 2107 | } | ||
| 2108 | |||
| 2109 | /* | 2109 | /* |
| 2110 | * True if we are on the alternate signal stack. | 2110 | * True if we are on the alternate signal stack. |
| 2111 | */ | 2111 | */ |
