]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/linux/mm.h
mm, hotplug: fix page online with DEBUG_PAGEALLOC compiled but not enabled
[linux.git] / include / linux / mm.h
index 52269e56c514d24d318d982b805c5c9e9d7d3082..c54fb96cb1e6cc0fd85ab8cd337fe3b1b3f274b3 100644 (file)
@@ -2715,6 +2715,10 @@ static inline bool debug_pagealloc_enabled_static(void)
 #if defined(CONFIG_DEBUG_PAGEALLOC) || defined(CONFIG_ARCH_HAS_SET_DIRECT_MAP)
 extern void __kernel_map_pages(struct page *page, int numpages, int enable);
 
+/*
+ * When called in DEBUG_PAGEALLOC context, the call should most likely be
+ * guarded by debug_pagealloc_enabled() or debug_pagealloc_enabled_static()
+ */
 static inline void
 kernel_map_pages(struct page *page, int numpages, int enable)
 {