mm: convert totalram_pages and totalhigh_pages variables to atomic
[linux-2.6-microblaze.git] / fs / proc / base.c
index ce34654..d7fd1ca 100644 (file)
@@ -530,7 +530,7 @@ static const struct file_operations proc_lstats_operations = {
 static int proc_oom_score(struct seq_file *m, struct pid_namespace *ns,
                          struct pid *pid, struct task_struct *task)
 {
-       unsigned long totalpages = totalram_pages + total_swap_pages;
+       unsigned long totalpages = totalram_pages() + total_swap_pages;
        unsigned long points = 0;
 
        points = oom_badness(task, NULL, NULL, totalpages) *