[Devel] [PATCH rh7] mm/tswap: Add missing include

Andrey Ryabinin aryabinin at virtuozzo.com
Wed Jul 4 13:30:55 MSK 2018


Add #include <linux/swap_slots.h>. Needed for swap_slot_cache_enabled
variable.

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

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 */
-- 
2.16.4



More information about the Devel mailing list