Skip to contentSkip to conversation

backports: fix version check for page_is_pfmemalloc

PATCH In review Felix Fietkau 2 participants 2 messages Oct 29, 2015 – Nov 1, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 backports: fix version check for page_is_pfmemalloc

The upstream commit that added it was backported in 4.1.9

---
 backport/backport-include/linux/mm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
backport/backport-include/linux/mm.h +1 -1
index ddb8813..7e6f77c 100644
@@ -95,7 +95,7 @@ static inline unsigned long *frame_vector_pfns(struct frame_vector *vec)
 }
 #endif
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0) && \
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,1,9) && \
      LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0)
 #define page_is_pfmemalloc LINUX_BACKPORT(page_is_pfmemalloc)
 static inline bool page_is_pfmemalloc(struct page *page)
Signature · 4 lines
2.2.2

--
To unsubscribe from this list: send the line "unsubscribe backports" in
#1 lore raw
Quoted 7 lines · Felix Fietkau

The upstream commit that added it was backported in 4.1.9

---
 backport/backport-include/linux/mm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Thank you for the patch I applied it.

Hauke
--
To unsubscribe from this list: send the line "unsubscribe backports" in