integ/kernel-std/centos/patches/Fix-compile-issue-when-transparent-hugepages-are-off.patch
jmckenna 42a05dcd81 Update std and rt kernels to CentOS 7.5 versions
This commit updates the standard kernel to 3.10.0-838 and the rt
kernel to 3.10.0-802.  Driver updates to ensure compilation also
added (Mellanox driver, specifically)

Depends-On:  https://review.openstack.org/580689
Change-Id: Ie52d7df2f097ea03158b3b3a3334b61833cbdf57
Story: 2002761
Signed-off-by: Jason McKenna <jason.mckenna@windriver.com>
Story: 2002761
Task: 22841
2018-07-06 11:35:10 -04:00

30 lines
872 B
Diff

From b6ceef1c915827b50ce3f76da4dc47f3eb768b44 Mon Sep 17 00:00:00 2001
Message-Id: <b6ceef1c915827b50ce3f76da4dc47f3eb768b44.1527544850.git.Jim.Somerville@windriver.com>
From: Jim Somerville <Jim.Somerville@windriver.com>
Date: Thu, 15 Dec 2016 14:27:48 -0500
Subject: [PATCH 01/26] Fix compile issue when transparent hugepages are off
Signed-off-by: Jim Somerville <Jim.Somerville@windriver.com>
---
mm/swap.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mm/swap.c b/mm/swap.c
index 0982a35..6dcf38c 100644
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -998,8 +998,10 @@ void release_pages(struct page **pages, int nr, bool cold)
if (!put_page_testzero(page))
continue;
+#ifdef CONFIG_TRANSPARENT_HUGEPAGE
VM_BUG_ON_PAGE(check_mmu_gather &&
trans_huge_mmu_gather_count(page), page);
+#endif
if (PageLRU(page)) {
if (!was_thp)
--
1.8.3.1