[rh7] mm/tswap: Add missing include

Submitted by Andrey Ryabinin on July 4, 2018, 10:30 a.m.

Details

Message ID 20180704103055.14378-1-aryabinin@virtuozzo.com
State New
Series "mm/tswap: Add missing include"
Headers show

Commit Message

Andrey Ryabinin July 4, 2018, 10:30 a.m.
Add #include <linux/swap_slots.h>. Needed for swap_slot_cache_enabled
variable.

Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
---
 mm/tswap.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/mm/tswap.c b/mm/tswap.c
index 7b02c1142db2..e6804dcba6e2 100644
--- a/mm/tswap.c
+++ b/mm/tswap.c
@@ -16,6 +16,7 @@ 
 #include <linux/radix-tree.h>
 #include <linux/list.h>
 #include <linux/swap.h>
+#include <linux/swap_slots.h>
 #include <linux/swapops.h>
 #include <linux/pagemap.h>
 #include <linux/shrinker.h>
@@ -247,7 +248,7 @@  static unsigned long tswap_shrink_scan(struct shrinker *shrink,
 
 		if (!lru->nr_items)
 			break;
-		
+
 		page = list_first_entry(&lru->list, struct page, lru);
 		/* lock the page to avoid interference with
 		 * other reclaiming threads */