|
@@ -274,7 +274,7 @@ static enum oom_constraint constrained_alloc(struct oom_control *oc,
|
|
#endif
|
|
#endif
|
|
|
|
|
|
enum oom_scan_t oom_scan_process_thread(struct oom_control *oc,
|
|
enum oom_scan_t oom_scan_process_thread(struct oom_control *oc,
|
|
- struct task_struct *task, unsigned long totalpages)
|
|
|
|
|
|
+ struct task_struct *task)
|
|
{
|
|
{
|
|
if (oom_unkillable_task(task, NULL, oc->nodemask))
|
|
if (oom_unkillable_task(task, NULL, oc->nodemask))
|
|
return OOM_SCAN_CONTINUE;
|
|
return OOM_SCAN_CONTINUE;
|
|
@@ -311,7 +311,7 @@ static struct task_struct *select_bad_process(struct oom_control *oc,
|
|
for_each_process(p) {
|
|
for_each_process(p) {
|
|
unsigned int points;
|
|
unsigned int points;
|
|
|
|
|
|
- switch (oom_scan_process_thread(oc, p, totalpages)) {
|
|
|
|
|
|
+ switch (oom_scan_process_thread(oc, p)) {
|
|
case OOM_SCAN_SELECT:
|
|
case OOM_SCAN_SELECT:
|
|
chosen = p;
|
|
chosen = p;
|
|
chosen_points = ULONG_MAX;
|
|
chosen_points = ULONG_MAX;
|