[Devel] [PATCH RHEL7 COMMIT] mm/tswap: Add missing include

Konstantin Khorenko khorenko at virtuozzo.com
Wed Jul 4 13:40:49 MSK 2018


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


More information about the Devel mailing list