diff --git a/include/linux/oom.h b/include/linux/oom.h index 3d7647536b0304ba40013aa2399d551b6779b4cf..f047a543211ae27437b577508b9a37ebbaae7943 100644 --- a/include/linux/oom.h +++ b/include/linux/oom.h @@ -67,6 +67,9 @@ static inline void oom_killer_enable(void) extern struct task_struct *find_lock_task_mm(struct task_struct *p); +extern void dump_tasks(const struct mem_cgroup *memcg, + const nodemask_t *nodemask); + /* sysctls */ extern int sysctl_oom_dump_tasks; extern int sysctl_oom_kill_allocating_task; diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 46bf2ed5594c73a86cbbe61fec40669bcfea74a3..b9615b0dccaa4fde1c4442493c27d6f40e8a83f8 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -389,7 +389,7 @@ static struct task_struct *select_bad_process(unsigned int *ppoints, * * Call with tasklist_lock read-locked. */ -static void dump_tasks(const struct mem_cgroup *memcg, const nodemask_t *nodemask) +void dump_tasks(const struct mem_cgroup *memcg, const nodemask_t *nodemask) { struct task_struct *p; struct task_struct *task;