[RHEL7,COMMIT] mm/tswap: Add missing include

Submitted by Konstantin Khorenko on July 4, 2018, 10:40 a.m.

Details

Message ID 201807041040.w64Aeni6024666@finist_ce7.work
State New
Series "mm/tswap: Add missing include"
Headers show

Commit Message

Konstantin Khorenko July 4, 2018, 10:40 a.m.
The commit is pushed to "branch-rh7-3.10.0-862.3.2.vz7.61.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-862.3.2.vz7.61.11
------>
commit 3667f2148c23e7d851cfffc7caba814c75529126
Author: Andrey Ryabinin <aryabinin@virtuozzo.com>
Date:   Wed Jul 4 13:40:49 2018 +0300

    mm/tswap: Add missing include
    
    Add #include <linux/swap_slots.h>. Needed for swap_slot_cache_enabled
    variable.
    
    Fixes: 4dac0975970e ("mm/tswap: fix lockup in tswap_evict_page()")
    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 */