diff options
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index 08bc54e80862..2f0390161c0e 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -742,7 +742,8 @@ static void shrink_active_list(unsigned long nr_pages, struct zone *zone, | |||
742 | * how much memory | 742 | * how much memory |
743 | * is mapped. | 743 | * is mapped. |
744 | */ | 744 | */ |
745 | mapped_ratio = (global_page_state(NR_FILE_MAPPED) * 100) / | 745 | mapped_ratio = ((global_page_state(NR_FILE_MAPPED) + |
746 | global_page_state(NR_ANON_PAGES)) * 100) / | ||
746 | vm_total_pages; | 747 | vm_total_pages; |
747 | 748 | ||
748 | /* | 749 | /* |