Skip to contentSkip to conversation

mm: swap: Fix confusing comment in release_pages()

PATCH Applied Miaohe Lin 1 participant 1 message Sep 5, 2020 Memory management

lore
Share & tools
lore

Miaohe Lin

author
#0 lore raw

PATCH 1/1 mm: swap: Fix confusing comment in release_pages()

Since commit 07d802699528 ("mm: devmap: refactor 1-based refcounting for ZONE_DEVICE pages"), we have renamed the func put_devmap_managed_page() to page_is_devmap_managed().

---
 mm/swap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/swap.c +1 -1
index 999a84dbe12c..041e4e31fb01 100644
@@ -859,7 +859,7 @@ void release_pages(struct page **pages, int nr)
 			}
 			/*
 			 * ZONE_DEVICE pages that return 'false' from
-			 * put_devmap_managed_page() do not require special
+			 * page_is_devmap_managed() do not require special
 			 * processing, and instead, expect a call to
 			 * put_page_testzero().
 			 */
Signature · 1 line
2.19.1