diff options
-rw-r--r-- | include/linux/vm_event_item.h | 1 | ||||
-rw-r--r-- | mm/vmscan.c | 3 | ||||
-rw-r--r-- | mm/vmstat.c | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/vm_event_item.h b/include/linux/vm_event_item.h index c75024e80eed..e02820fc2861 100644 --- a/include/linux/vm_event_item.h +++ b/include/linux/vm_event_item.h | |||
@@ -86,6 +86,7 @@ enum vm_event_item { PGPGIN, PGPGOUT, PSWPIN, PSWPOUT, | |||
86 | THP_ZERO_PAGE_ALLOC, | 86 | THP_ZERO_PAGE_ALLOC, |
87 | THP_ZERO_PAGE_ALLOC_FAILED, | 87 | THP_ZERO_PAGE_ALLOC_FAILED, |
88 | THP_SWPOUT, | 88 | THP_SWPOUT, |
89 | THP_SWPOUT_FALLBACK, | ||
89 | #endif | 90 | #endif |
90 | #ifdef CONFIG_MEMORY_BALLOON | 91 | #ifdef CONFIG_MEMORY_BALLOON |
91 | BALLOON_INFLATE, | 92 | BALLOON_INFLATE, |
diff --git a/mm/vmscan.c b/mm/vmscan.c index 6fbf707c0ce2..13d711dd8776 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -1154,6 +1154,9 @@ static unsigned long shrink_page_list(struct list_head *page_list, | |||
1154 | if (split_huge_page_to_list(page, | 1154 | if (split_huge_page_to_list(page, |
1155 | page_list)) | 1155 | page_list)) |
1156 | goto activate_locked; | 1156 | goto activate_locked; |
1157 | #ifdef CONFIG_TRANSPARENT_HUGEPAGE | ||
1158 | count_vm_event(THP_SWPOUT_FALLBACK); | ||
1159 | #endif | ||
1157 | if (!add_to_swap(page)) | 1160 | if (!add_to_swap(page)) |
1158 | goto activate_locked; | 1161 | goto activate_locked; |
1159 | } | 1162 | } |
diff --git a/mm/vmstat.c b/mm/vmstat.c index bccf426453cd..e131b51654c7 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c | |||
@@ -1072,6 +1072,7 @@ const char * const vmstat_text[] = { | |||
1072 | "thp_zero_page_alloc", | 1072 | "thp_zero_page_alloc", |
1073 | "thp_zero_page_alloc_failed", | 1073 | "thp_zero_page_alloc_failed", |
1074 | "thp_swpout", | 1074 | "thp_swpout", |
1075 | "thp_swpout_fallback", | ||
1075 | #endif | 1076 | #endif |
1076 | #ifdef CONFIG_MEMORY_BALLOON | 1077 | #ifdef CONFIG_MEMORY_BALLOON |
1077 | "balloon_inflate", | 1078 | "balloon_inflate", |