Skip to contentSkip to conversation

mm/swap.c: put activate_page_pvecs and other pagevecs together

PATCH New [email protected] 1 participant 1 message May 20, 2016 Memory management

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 31/162 mm/swap.c: put activate_page_pvecs and other pagevecs together

From: Ming Li <[email protected]>
Subject: mm/swap.c: put activate_page_pvecs and other pagevecs together

Put the activate_page_pvecs definition next to those of the other pagevecs, for clarity.

---

 mm/swap.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
mm/swap.c renamed from mm/swap.c~mm-put-activate_page_pvecs-and-others-pagevec-together +3 -1
diff -puN mm/swap.c~mm-put-activate_page_pvecs-and-others-pagevec-together mm/swap.c
@@ -47,6 +47,9 @@ static DEFINE_PER_CPU(struct pagevec, lr
 static DEFINE_PER_CPU(struct pagevec, lru_rotate_pvecs);
 static DEFINE_PER_CPU(struct pagevec, lru_deactivate_file_pvecs);
 static DEFINE_PER_CPU(struct pagevec, lru_deactivate_pvecs);
+#ifdef CONFIG_SMP
+static DEFINE_PER_CPU(struct pagevec, activate_page_pvecs);
+#endif
 
 /*
  * This path almost never happens for VM activity - pages are normally
@@ -274,8 +277,6 @@ static void __activate_page(struct page
 }
 
 #ifdef CONFIG_SMP
-static DEFINE_PER_CPU(struct pagevec, activate_page_pvecs);