]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - drivers/staging/android/lowmemorykiller.c
mm: move most file-based accounting to the node
[thirdparty/kernel/stable.git] / drivers / staging / android / lowmemorykiller.c
index 93dbcc38eb0fd820db9363ae50f1cb0ff749db36..45a1b4ec4ca33000e96faee0cb1cff7933b91580 100644 (file)
@@ -91,8 +91,8 @@ static unsigned long lowmem_scan(struct shrinker *s, struct shrink_control *sc)
        short selected_oom_score_adj;
        int array_size = ARRAY_SIZE(lowmem_adj);
        int other_free = global_page_state(NR_FREE_PAGES) - totalreserve_pages;
-       int other_file = global_page_state(NR_FILE_PAGES) -
-                                               global_page_state(NR_SHMEM) -
+       int other_file = global_node_page_state(NR_FILE_PAGES) -
+                                               global_node_page_state(NR_SHMEM) -
                                                total_swapcache_pages();
 
        if (lowmem_adj_size < array_size)