aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/array.c')
-rw-r--r--fs/proc/array.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c
index 77a8eacbe032..6f6fc1672ad1 100644
--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0
1/* 2/*
2 * linux/fs/proc/array.c 3 * linux/fs/proc/array.c
3 * 4 *
@@ -137,7 +138,7 @@ static const char * const task_state_array[] = {
137static inline const char *get_task_state(struct task_struct *tsk) 138static inline const char *get_task_state(struct task_struct *tsk)
138{ 139{
139 BUILD_BUG_ON(1 + ilog2(TASK_REPORT_MAX) != ARRAY_SIZE(task_state_array)); 140 BUILD_BUG_ON(1 + ilog2(TASK_REPORT_MAX) != ARRAY_SIZE(task_state_array));
140 return task_state_array[__get_task_state(tsk)]; 141 return task_state_array[task_state_index(tsk)];
141} 142}
142 143
143static inline int get_task_umask(struct task_struct *tsk) 144static inline int get_task_umask(struct task_struct *tsk)
@@ -453,7 +454,7 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
453 cutime = sig->cutime; 454 cutime = sig->cutime;
454 cstime = sig->cstime; 455 cstime = sig->cstime;
455 cgtime = sig->cgtime; 456 cgtime = sig->cgtime;
456 rsslim = ACCESS_ONCE(sig->rlim[RLIMIT_RSS].rlim_cur); 457 rsslim = READ_ONCE(sig->rlim[RLIMIT_RSS].rlim_cur);
457 458
458 /* add up live thread stats at the group level */ 459 /* add up live thread stats at the group level */
459 if (whole) { 460 if (whole) {