Skip to contentSkip to conversation

include/linux/highmem.h: update usage of movableflags

RFC PATCH New Huaisheng Ye 1 participant 1 message May 23, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC PATCH v3 8/9 include/linux/highmem.h: update usage of movableflags

From: Huaisheng Ye <[email protected]>

GFP_HIGHUSER_MOVABLE doesn't equal to GFP_HIGHUSER | __GFP_MOVABLE, modify it to adapt patch of getting rid of GFP_ZONE_TABLE/BAD.

Cc Kate Stewart <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Philippe Ombredanne <pombredanne-od1rfyK75/[email protected]>
Cc Christoph Hellwig <[email protected]>
---
 include/linux/highmem.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/highmem.h +2 -2
index 0690679..5383c9e 100644
@@ -159,8 +159,8 @@ static inline void clear_user_highpage(struct page *page, unsigned long vaddr)
 			struct vm_area_struct *vma,
 			unsigned long vaddr)
 {
-	struct page *page = alloc_page_vma(GFP_HIGHUSER | movableflags,
-			vma, vaddr);
+	struct page *page = alloc_page_vma(movableflags ?
+		GFP_HIGHUSER_MOVABLE : GFP_HIGHUSER, vma, vaddr);
 
 	if (page)
 		clear_user_highpage(page, vaddr);
Signature · 1 line
1.8.3.1