Skip to contentSkip to conversation

mm: __pagevec_lru_add_fn: typo fix

PATCH In review Peng Fan 3 participants 3 messages Apr 2, 2019 – Apr 4, 2019 Memory management

lore
Share & tools
lore

Peng Fan

author
#0 lore raw

PATCH 1/1 mm: __pagevec_lru_add_fn: typo fix

There is no function named munlock_vma_pages, correct it to munlock_vma_page.

---
 mm/swap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/swap.c +1 -1
index 301ed4e04320..3a75722e68a9 100644
@@ -867,7 +867,7 @@ static void __pagevec_lru_add_fn(struct page *page, struct lruvec *lruvec,
 	SetPageLRU(page);
 	/*
 	 * Page becomes evictable in two ways:
-	 * 1) Within LRU lock [munlock_vma_pages() and __munlock_pagevec()].
+	 * 1) Within LRU lock [munlock_vma_page() and __munlock_pagevec()].
 	 * 2) Before acquiring LRU lock to put the page to correct LRU and then
 	 *   a) do PageLRU check with lock [check_move_unevictable_pages]
 	 *   b) do PageLRU check before lock [clear_page_mlock]
Signature · 1 line
2.16.4
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Peng Fan

There is no function named munlock_vma_pages, correct it to munlock_vma_page.

Quoted 18 lines
---
 mm/swap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/swap.c +1 -1
index 301ed4e04320..3a75722e68a9 100644
@@ -867,7 +867,7 @@ static void __pagevec_lru_add_fn(struct page *page, struct lruvec *lruvec,
 	SetPageLRU(page);
 	/*
 	 * Page becomes evictable in two ways:
-	 * 1) Within LRU lock [munlock_vma_pages() and __munlock_pagevec()].
+	 * 1) Within LRU lock [munlock_vma_page() and __munlock_pagevec()].
 	 * 2) Before acquiring LRU lock to put the page to correct LRU and then
 	 *   a) do PageLRU check with lock [check_move_unevictable_pages]
 	 *   b) do PageLRU check before lock [clear_page_mlock]
Reviewed-by on v1 1/1
#2 lore raw
In reply to Peng Fan
Quoted 4 lines · Peng Fan

There is no function named munlock_vma_pages, correct it to munlock_vma_page.

Cheers,
-Mukesh

Quoted 17 lines
---
  mm/swap.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
mm/swap.c +1 -1
index 301ed4e04320..3a75722e68a9 100644
@@ -867,7 +867,7 @@ static void __pagevec_lru_add_fn(struct page *page, struct lruvec *lruvec,
  	SetPageLRU(page);
  	/*
  	 * Page becomes evictable in two ways:
-	 * 1) Within LRU lock [munlock_vma_pages() and __munlock_pagevec()].
+	 * 1) Within LRU lock [munlock_vma_page() and __munlock_pagevec()].
  	 * 2) Before acquiring LRU lock to put the page to correct LRU and then
  	 *   a) do PageLRU check with lock [check_move_unevictable_pages]
  	 *   b) do PageLRU check before lock [clear_page_mlock]