linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: put activate_page_pvecs and others pagevec together
@ 2016-04-11  1:16 Ming Li
  0 siblings, 0 replies; 4+ messages in thread
From: Ming Li @ 2016-04-11  1:16 UTC (permalink / raw)
  To: Andrew Morton, Michal Hocko, Kirill A. Shutemov, David Rientjes,
	Vlastimil Babka, Tejun Heo
  Cc: linux-mm, linux-kernel

hi, I have been studying mm and learn agexxx, at the very beginning I felt confuse when I saw activatexxx, after I learned the whole thing I understood that it's similar with other pagevec's function. Can we put it with other pagevec together? I think it is easier for newbies to read and understand.

regards,



Signed-off-by: Ming Li <mingli199x@qq.com>

---
mm/swap.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/mm/swap.c b/mm/swap.c
index 09fe5e9..5c9901c 100644
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -47,6 +47,9 @@ static DEFINE_PER_CPU(struct pagevec, lru_add_pvec);
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 *page, struct lruvec *lruvec,
}

#ifdef CONFIG_SMP
-static DEFINE_PER_CPU(struct pagevec, activate_page_pvecs);
-
static void activate_page_drain(int cpu)
{
struct pagevec *pvec = &per_cpu(activate_page_pvecs, cpu);
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [PATCH] mm: put activate_page_pvecs and others pagevec together
@ 2016-04-11  1:36 Ming Li
  2016-04-27 21:03 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Ming Li @ 2016-04-11  1:36 UTC (permalink / raw)
  To: Andrew Morton, Michal Hocko, Kirill A. Shutemov, David Rientjes,
	Vlastimil Babka, Tejun Heo
  Cc: linux-mm, linux-kernel

hi, i`m sorry, I made some mistakes in last email. I have been studying mm and learn age_activate_anon(), at the very beginning I felt confuse when I saw activate_page_pvecs, after I learned the whole thing I understood that it's similar with other pagevec's function. Can we put it with other pagevec together? I think it is easier for newbies to read and understand.

regards,



Signed-off-by: Ming Li <mingli199x@qq.com>

---
mm/swap.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/mm/swap.c b/mm/swap.c
index 09fe5e9..5c9901c 100644
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -47,6 +47,9 @@ static DEFINE_PER_CPU(struct pagevec, lru_add_pvec);
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 *page, struct lruvec *lruvec,
}

#ifdef CONFIG_SMP
-static DEFINE_PER_CPU(struct pagevec, activate_page_pvecs);
-
static void activate_page_drain(int cpu)
{
struct pagevec *pvec = &per_cpu(activate_page_pvecs, cpu);
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [PATCH] mm: put activate_page_pvecs and others pagevec together
@ 2016-04-11  1:16 Ming Li
  0 siblings, 0 replies; 4+ messages in thread
From: Ming Li @ 2016-04-11  1:16 UTC (permalink / raw)
  To: Andrew Morton, Michal Hocko, Kirill A. Shutemov, David Rientjes,
	Vlastimil Babka, Tejun Heo
  Cc: linux-mm, linux-kernel

hi, I have been studying mm and learn agexxx, at the very beginning I felt confuse when I saw activatexxx, after I learned the whole thing I understood that it's similar with other pagevec's function. Can we put it with other pagevec together? I think it is easier for newbies to read and understand.

regards,



Signed-off-by: Ming Li <mingli199x@qq.com>

---
mm/swap.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/mm/swap.c b/mm/swap.c
index 09fe5e9..5c9901c 100644
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -47,6 +47,9 @@ static DEFINE_PER_CPU(struct pagevec, lru_add_pvec);
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 *page, struct lruvec *lruvec,
}

#ifdef CONFIG_SMP
-static DEFINE_PER_CPU(struct pagevec, activate_page_pvecs);
-
static void activate_page_drain(int cpu)
{
struct pagevec *pvec = &per_cpu(activate_page_pvecs, cpu);
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-27 21:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-11  1:16 [PATCH] mm: put activate_page_pvecs and others pagevec together Ming Li
  -- strict thread matches above, loose matches on Subject: below --
2016-04-11  1:36 Ming Li
2016-04-27 21:03 ` Andrew Morton
2016-04-11  1:16 Ming Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).