History

oom: move badness() declaration into oom.h

Andrew Morton committed 16 years ago

Commit 74bcbf41 parent cef1d352 files · +6 −3Browse files

Unified · Split

2 files
  1. fs/proc/base.c +0 −3
  2. include/linux/oom.h +6 −0
fs/proc/base.c+0−3
@@ -427,9 +427,6 @@ static const struct file_operations proc_lstats_operations = { · 426 unmodified lines
427427
428428 #endif
429429
430−/* The badness from the OOM killer */
431−unsigned long badness(struct task_struct *p, struct mem_cgroup *mem,
432− nodemask_t *nodemask, unsigned long uptime);
433430 static int proc_oom_score(struct task_struct *task, char *buffer)
434431 {
435432 unsigned long points = 0;
include/linux/oom.h+6−0
@@ -14,6 +14,8 @@ · 13 unmodified lines
1414
1515 struct zonelist;
1616 struct notifier_block;
17+struct mem_cgroup;
18+struct task_struct;
1719
1820 /*
1921 * Types of limitations to the nodes from which allocations may occur
@@ -45,6 +47,10 @@ static inline void oom_killer_enable(void) · 25 unmodified lines
4547 oom_killer_disabled = false;
4648 }
4749
50+/* The badness from the OOM killer */
51+extern unsigned long badness(struct task_struct *p, struct mem_cgroup *mem,
52+ const nodemask_t *nodemask, unsigned long uptime);
53+
4854 /* sysctls */
4955 extern int sysctl_oom_dump_tasks;
5056 extern int sysctl_oom_kill_allocating_task;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t