[RFC PATCH v2, part4 01/39] vmlinux.lds: add comments for global variables and clean up useless declarations

2013-03-24 Thread Jiang Liu
This patch documents global variables exported from vmlinux.lds. 1) Add comments about usage guidelines for global variables exported from vmlinux.lds.S. 2) Remove unused __initdata_begin[] and __initdata_end[]. Signed-off-by: Jiang Liu Cc: Arnd Bergmann Cc: linux-a...@vger.kernel.org Cc:

[RFC PATCH v2, part4 02/39] avr32: normalize global variables exported by vmlinux.lds

2013-03-24 Thread Jiang Liu
Normalize global variables exported by vmlinux.lds to conform usage guidelines from include/asm-generic/sections.h. Use _text to mark the start of the kernel image including the head text, and _stext to mark the start of the .text section. Signed-off-by: Jiang Liu Cc: Haavard Skinnemoen Cc:

Re: [patch] mm: speedup in __early_pfn_to_nid

2013-03-24 Thread Ingo Molnar
* Russ Anderson wrote: > --- linux.orig/mm/page_alloc.c2013-03-19 16:09:03.736450861 -0500 > +++ linux/mm/page_alloc.c 2013-03-22 17:07:43.895405617 -0500 > @@ -4161,10 +4161,23 @@ int __meminit __early_pfn_to_nid(unsigne > { > unsigned long start_pfn, end_pfn; > int i,

[RFC PATCH v2, part4 38/39] mm/hotplug: prepare for removing num_physpages

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages. Signed-off-by: Jiang Liu Cc: Wen Congyang Cc: Tang Chen Cc: Yasuaki Ishimatsu Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org --- mm/memory_hotplug.c |4 1 file changed, 4 deletions(-) diff --git a/mm/memory_hotplug.c

[RFC PATCH v2, part4 39/39] mm: kill global variable num_physpages

2013-03-24 Thread Jiang Liu
Now all references to num_physpages have been removed, so kill it. Signed-off-by: Jiang Liu Cc: Mel Gorman Cc: Michel Lespinasse Cc: Rik van Riel Cc: Jiang Liu Cc: Hugh Dickins Cc: David Rientjes Cc: Al Viro Cc: Konstantin Khlebnikov Cc: linux...@kvack.org Cc:

[RFC PATCH v2, part4 37/39] mm/xtensa: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Chris Zankel Cc: Max Filippov Cc: Geert Uytterhoeven Cc: linux-xte...@linux-xtensa.org Cc: linux-kernel@vger.kernel.org --- arch/xtensa/mm/init.c | 27 ++- 1 file changed, 2

[RFC PATCH v2, part4 36/39] mm/x86: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc: Andreas Herrmann Cc: Tang Chen Cc: Wen Congyang Cc: Jianguo Wu Cc: linux-kernel@vger.kernel.org ---

[RFC PATCH v2, part4 34/39] mm/um: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Jeff Dike Cc: Richard Weinberger Cc: user-mode-linux-de...@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org --- arch/um/kernel/mem.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff

[RFC PATCH v2, part4 35/39] mm/unicore32: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Guan Xuetao Cc: Michal Hocko Cc: David Rientjes Cc: linux-kernel@vger.kernel.org --- arch/unicore32/mm/init.c | 49 ++ 1 file changed, 2 insertions(+), 47

[RFC PATCH v2, part4 18/39] mm/hexagon: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Richard Kuo Cc: linux-hexa...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/hexagon/mm/init.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/hexagon/mm/init.c

[RFC PATCH v2, part4 21/39] mm/m68k: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Geert Uytterhoeven Cc: Greg Ungerer Cc: linux-m...@lists.linux-m68k.org Cc: linux-kernel@vger.kernel.org --- arch/m68k/mm/init.c | 31 ++- 1 file changed, 2 insertions(+), 29

[RFC PATCH v2, part4 30/39] mm/score: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Chen Liqin Cc: Lennox Wu Cc: linux-kernel@vger.kernel.org --- arch/score/mm/init.c | 26 ++ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/arch/score/mm/init.c

[RFC PATCH v2, part4 38/39] mm/hotplug: prepare for removing num_physpages

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages. Signed-off-by: Jiang Liu Cc: Wen Congyang Cc: Tang Chen Cc: Yasuaki Ishimatsu Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org --- mm/memory_hotplug.c |4 1 file changed, 4 deletions(-) diff --git a/mm/memory_hotplug.c

[RFC PATCH v2, part4 39/39] mm: kill global variable num_physpages

2013-03-24 Thread Jiang Liu
Now all references to num_physpages have been removed, so kill it. Signed-off-by: Jiang Liu Cc: Mel Gorman Cc: Michel Lespinasse Cc: Rik van Riel Cc: Jiang Liu Cc: Hugh Dickins Cc: David Rientjes Cc: Al Viro Cc: Konstantin Khlebnikov Cc: linux...@kvack.org Cc:

[RFC PATCH v2, part4 37/39] mm: use totalram_pages instead of num_physpages at runtime

2013-03-24 Thread Jiang Liu
The global variable num_physpages is scheduled to be removed, so use totalram_pages instead of num_physpages at runtime. Signed-off-by: Jiang Liu Cc: Miklos Szeredi Cc: "David S. Miller" Cc: Alexey Kuznetsov Cc: James Morris Cc: Hideaki YOSHIFUJI Cc: Patrick McHardy Cc:

[RFC PATCH v2, part4 37/39] mm/xtensa: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Chris Zankel Cc: Max Filippov Cc: Geert Uytterhoeven Cc: linux-xte...@linux-xtensa.org Cc: linux-kernel@vger.kernel.org --- arch/xtensa/mm/init.c | 27 ++- 1 file changed, 2

[RFC PATCH v2, part4 36/39] mm/x86: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc: Andreas Herrmann Cc: Tang Chen Cc: Wen Congyang Cc: Jianguo Wu Cc: linux-kernel@vger.kernel.org ---

[RFC PATCH v2, part4 36/39] mm/xtensa: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Chris Zankel Cc: Max Filippov Cc: Geert Uytterhoeven Cc: linux-xte...@linux-xtensa.org Cc: linux-kernel@vger.kernel.org --- arch/xtensa/mm/init.c | 27 ++- 1 file changed, 2

[RFC PATCH v2, part4 35/39] mm/x86: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc: Andreas Herrmann Cc: Tang Chen Cc: Wen Congyang Cc: Jianguo Wu Cc: linux-kernel@vger.kernel.org ---

Re: [PATCH] memcg: fix memcg_cache_name() to use cgroup_name()

2013-03-24 Thread Li Zefan
>> I read the code as lockdep_assert(memcg_cache_mutex), and then later on >> mutex_lock(_mutex). But reading again, that was a just an >> rcu_read_lock(). Good thing it is Friday >> >> You guys can add my Acked-by, and thanks again > > Li, are you ok to take the page via your tree? > I don't

[RFC PATCH v2, part4 35/39] mm/unicore32: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Guan Xuetao Cc: Michal Hocko Cc: David Rientjes Cc: linux-kernel@vger.kernel.org --- arch/unicore32/mm/init.c | 49 ++ 1 file changed, 2 insertions(+), 47

[RFC PATCH v2, part4 34/39] mm/unicore32: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Guan Xuetao Cc: Michal Hocko Cc: David Rientjes Cc: linux-kernel@vger.kernel.org --- arch/unicore32/mm/init.c | 49 ++ 1 file changed, 2 insertions(+), 47

[RFC PATCH v2, part4 34/39] mm/um: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Jeff Dike Cc: Richard Weinberger Cc: user-mode-linux-de...@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org --- arch/um/kernel/mem.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff

[RFC PATCH v2, part4 33/39] mm/um: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Jeff Dike Cc: Richard Weinberger Cc: user-mode-linux-de...@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org --- arch/um/kernel/mem.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff

[RFC PATCH v2, part4 32/39] mm/tile: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Chris Metcalf Cc: Bjorn Helgaas Cc: "David S. Miller" Cc: Wen Congyang Cc: linux-kernel@vger.kernel.org --- arch/tile/kernel/setup.c | 16 arch/tile/mm/init.c | 15

[RFC PATCH v2, part4 33/39] mm/tile: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Chris Metcalf Cc: Bjorn Helgaas Cc: "David S. Miller" Cc: Wen Congyang Cc: linux-kernel@vger.kernel.org --- arch/tile/kernel/setup.c | 16 arch/tile/mm/init.c | 15

[RFC PATCH v2, part4 31/39] mm/SPARC: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: "David S. Miller" Cc: Sam Ravnborg Cc: Yasuaki Ishimatsu Cc: Tang Chen Cc: sparcli...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/sparc/kernel/leon_smp.c |3 ---

[RFC PATCH v2, part4 32/39] mm/SPARC: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: "David S. Miller" Cc: Sam Ravnborg Cc: Yasuaki Ishimatsu Cc: Tang Chen Cc: sparcli...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/sparc/kernel/leon_smp.c |3 ---

[RFC PATCH v2, part4 31/39] mm/SH: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Paul Mundt Cc: Wen Congyang Cc: Tang Chen Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/sh/mm/init.c | 25 - 1 file changed, 4 insertions(+), 21

Re: [PATCH] memcg: fix memcg_cache_name() to use cgroup_name()

2013-03-24 Thread Li Zefan
>> Thanks for identifying and fixing this. >> >> Li is right. The cache name will live long, but this is because the >> slab/slub caches will strdup it internally. So the actual memcg >> allocation is short lived. > > OK, I have totally missed that. Sorry about the confusion. Then all the > churn

[RFC PATCH v2, part4 30/39] mm/SH: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Paul Mundt Cc: Wen Congyang Cc: Tang Chen Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/sh/mm/init.c | 25 - 1 file changed, 4 insertions(+), 21

[RFC PATCH v2, part4 29/39] mm/s390: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: linux...@de.ibm.com Cc: linux-s...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/s390/mm/init.c | 17 ++--- 1 file changed, 2

[RFC PATCH v2, part4 29/39] mm/score: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Chen Liqin Cc: Lennox Wu Cc: linux-kernel@vger.kernel.org --- arch/score/mm/init.c | 26 ++ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/arch/score/mm/init.c

[RFC PATCH v2, part4 28/39] mm/ppc: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-...@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org --- arch/powerpc/mm/mem.c | 56 +++-- 1 file

[RFC PATCH v2, part4 28/39] mm/s390: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: linux...@de.ibm.com Cc: linux-s...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/s390/mm/init.c | 17 ++--- 1 file changed, 2

[RFC PATCH v2, part4 27/39] mm/PARISC: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: "James E.J. Bottomley" Cc: Helge Deller Cc: Thomas Gleixner Cc: Michal Hocko Cc: David Rientjes Cc: linux-par...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/parisc/mm/init.c | 46

[RFC PATCH v2, part4 27/39] mm/ppc: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-...@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org --- arch/powerpc/mm/mem.c | 56 +++-- 1 file

[RFC PATCH v2, part4 26/39] mm/PARISC: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: "James E.J. Bottomley" Cc: Helge Deller Cc: Thomas Gleixner Cc: Michal Hocko Cc: David Rientjes Cc: linux-par...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/parisc/mm/init.c | 46

[RFC PATCH v2, part4 25/39] mm/openrisc: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Jonas Bonn Cc: David Howells Cc: Arnd Bergmann Cc: li...@lists.openrisc.net Cc: linux-kernel@vger.kernel.org --- arch/openrisc/mm/init.c | 44 1 file

[RFC PATCH v2, part4 26/39] mm/openrisc: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Jonas Bonn Cc: David Howells Cc: Arnd Bergmann Cc: li...@lists.openrisc.net Cc: linux-kernel@vger.kernel.org --- arch/openrisc/mm/init.c | 44 1 file

[RFC PATCH v2, part4 24/39] mm/mn10300: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: David Howells Cc: Koichi Yasutake Cc: linux-am33-l...@redhat.com Cc: linux-kernel@vger.kernel.org --- arch/mn10300/mm/init.c | 26 ++ 1 file changed, 2 insertions(+), 24

[RFC PATCH v2, part4 25/39] mm/mn10300: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: David Howells Cc: Koichi Yasutake Cc: linux-am33-l...@redhat.com Cc: linux-kernel@vger.kernel.org --- arch/mn10300/mm/init.c | 26 ++ 1 file changed, 2 insertions(+), 24

[RFC PATCH v2, part4 24/39] mm/MIPS: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Ralf Baechle Cc: David Daney Cc: Arnd Bergmann Cc: Jiri Kosina Cc: John Crispin Cc: Greg Kroah-Hartman Cc: Minchan Kim Cc: linux-m...@linux-mips.org Cc: linux-kernel@vger.kernel.org ---

[RFC PATCH v2, part4 23/39] mm/MIPS: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Ralf Baechle Cc: David Daney Cc: Arnd Bergmann Cc: Jiri Kosina Cc: John Crispin Cc: Greg Kroah-Hartman Cc: Minchan Kim Cc: linux-m...@linux-mips.org Cc: linux-kernel@vger.kernel.org ---

[RFC PATCH v2, part4 22/39] mm/microblaze: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Michal Simek Cc: microblaze-ucli...@itee.uq.edu.au Cc: linux-kernel@vger.kernel.org --- arch/microblaze/mm/init.c | 51 ++--- 1 file changed, 6 insertions(+), 45

[RFC PATCH v2, part4 23/39] mm/microblaze: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Michal Simek Cc: microblaze-ucli...@itee.uq.edu.au Cc: linux-kernel@vger.kernel.org --- arch/microblaze/mm/init.c | 51 ++--- 1 file changed, 6 insertions(+), 45

[RFC PATCH v2, part4 22/39] mm/m68k: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Geert Uytterhoeven Cc: Greg Ungerer Cc: linux-m...@lists.linux-m68k.org Cc: linux-kernel@vger.kernel.org --- arch/m68k/mm/init.c | 31 ++- 1 file changed, 2 insertions(+), 29

[RFC PATCH v2, part4 20/39] mm/m32r: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Hirokazu Takata Cc: linux-m...@ml.linux-m32r.org Cc: linux-m32r...@ml.linux-m32r.org Cc: linux-kernel@vger.kernel.org --- arch/m32r/mm/discontig.c |6 +- arch/m32r/mm/init.c | 49

[RFC PATCH v2, part4 21/39] mm/m32r: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Hirokazu Takata Cc: linux-m...@ml.linux-m32r.org Cc: linux-m32r...@ml.linux-m32r.org Cc: linux-kernel@vger.kernel.org --- arch/m32r/mm/discontig.c |6 +- arch/m32r/mm/init.c | 49

[RFC PATCH v2, part4 19/39] mm/IA64: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Tony Luck Cc: Fenghua Yu Cc: Andrew Morton Cc: Zhang Yanfei Cc: linux-i...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/ia64/mm/contig.c| 11 --- arch/ia64/mm/discontig.c |

[RFC PATCH v2, part4 20/39] mm/IA64: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Tony Luck Cc: Fenghua Yu Cc: Andrew Morton Cc: Zhang Yanfei Cc: linux-i...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/ia64/mm/contig.c| 11 --- arch/ia64/mm/discontig.c |

[RFC PATCH v2, part4 19/39] mm/hexagon: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Richard Kuo Cc: linux-hexa...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/hexagon/mm/init.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/hexagon/mm/init.c

[RFC PATCH v2, part4 17/39] mm/h8300: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Yoshinori Sato Cc: Geert Uytterhoeven Cc: linux-kernel@vger.kernel.org --- arch/h8300/mm/init.c | 34 -- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git

[RFC PATCH v2, part4 18/39] mm/h8300: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Yoshinori Sato Cc: Geert Uytterhoeven Cc: linux-kernel@vger.kernel.org --- arch/h8300/mm/init.c | 34 -- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git

[RFC PATCH v2, part4 17/39] mm/frv: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: David Howells Cc: Andi Kleen Cc: Geert Uytterhoeven Cc: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org --- arch/frv/kernel/setup.c | 14 +++--- arch/frv/mm/init.c | 49

[RFC PATCH v2, part4 16/39] mm/cris: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Mikael Starvik Cc: Jesper Nilsson Cc: linux-cris-ker...@axis.com Cc: linux-kernel@vger.kernel.org --- arch/cris/mm/init.c | 33 ++--- 1 file changed, 2 insertions(+), 31

[RFC PATCH v2, part4 16/39] mm/frv: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: David Howells Cc: Andi Kleen Cc: Geert Uytterhoeven Cc: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org --- arch/frv/kernel/setup.c | 14 +++--- arch/frv/mm/init.c | 49

[RFC PATCH v2, part4 15/39] mm/c6x: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Mark Salter Cc: Aurelien Jacquiot Cc: linux-c6x-...@linux-c6x.org Cc: linux-kernel@vger.kernel.org --- arch/c6x/mm/init.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git

[RFC PATCH v2, part4 15/39] mm/cris: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Mikael Starvik Cc: Jesper Nilsson Cc: linux-cris-ker...@axis.com Cc: linux-kernel@vger.kernel.org --- arch/cris/mm/init.c | 33 ++--- 1 file changed, 2 insertions(+), 31

[RFC PATCH v2, part4 14/39] mm/c6x: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Mark Salter Cc: Aurelien Jacquiot Cc: linux-c6x-...@linux-c6x.org Cc: linux-kernel@vger.kernel.org --- arch/c6x/mm/init.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git

[RFC PATCH v2, part4 13/39] mm/blackfin: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Mike Frysinger Cc: Bob Liu Cc: uclinux-dist-de...@blackfin.uclinux.org Cc: linux-kernel@vger.kernel.org --- arch/blackfin/mm/init.c | 38 ++ 1 file changed, 6

[RFC PATCH v2, part4 14/39] mm/blackfin: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Mike Frysinger Cc: Bob Liu Cc: uclinux-dist-de...@blackfin.uclinux.org Cc: linux-kernel@vger.kernel.org --- arch/blackfin/mm/init.c | 38 ++ 1 file changed, 6

[RFC PATCH v2, part4 12/39] mm/AVR32: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Haavard Skinnemoen Cc: Hans-Christian Egtvedt Cc: linux-kernel@vger.kernel.org (open list) --- arch/avr32/mm/init.c | 29 - 1 file changed, 4 insertions(+), 25 deletions(-)

[RFC PATCH v2, part4 13/39] mm/AVR32: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Haavard Skinnemoen Cc: Hans-Christian Egtvedt Cc: linux-kernel@vger.kernel.org (open list) --- arch/avr32/mm/init.c | 29 - 1 file changed, 4 insertions(+), 25 deletions(-)

[RFC PATCH v2, part4 12/39] mm/ARM64: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm64/mm/init.c | 48 +++-

[RFC PATCH v2, part4 11/39] mm/ARM64: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm64/mm/init.c | 48 +++-

[RFC PATCH v2, part4 11/39] mm/ARM: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm/mm/init.c | 47 ++- 1

[RFC PATCH v2, part4 10/39] mm/ARM: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm/mm/init.c | 47 ++- 1

[RFC PATCH v2, part4 10/39] mm/alpha: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Cc: David Howells Cc: linux-al...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/alpha/mm/init.c | 32 ++--

[RFC PATCH v2, part4 09/39] mm/alpha: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Cc: David Howells Cc: linux-al...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/alpha/mm/init.c | 32 ++--

[RFC PATCH v2, part4 09/39] mm: use totalram_pages instead of num_physpages at runtime

2013-03-24 Thread Jiang Liu
The global variable num_physpages is scheduled to be removed, so use totalram_pages instead of num_physpages at runtime. Signed-off-by: Jiang Liu Cc: Miklos Szeredi Cc: "David S. Miller" Cc: Alexey Kuznetsov Cc: James Morris Cc: Hideaki YOSHIFUJI Cc: Patrick McHardy Cc:

[RFC PATCH v2, part4 08/39] mm: introduce helper function mem_init_print_info() to simplify mem_init()

2013-03-24 Thread Jiang Liu
Introduce helper function mem_init_print_info() to simplify mem_init() across different architectures, which also unifies the format and information printed. Function mem_init_print_info() calculates memory statistics information without walking each page, so it should be a little faster on some

[RFC PATCH v2, part4 07/39] UML: normalize global variables exported by vmlinux.lds

2013-03-24 Thread Jiang Liu
Normalize global variables exported by vmlinux.lds to conform usage guidelines from include/asm-generic/sections.h. 1) Use _text to mark the start of the kernel image including the head text, and _stext to mark the start of the .text section. 2) Export mandatory global variables __bss_stop. 3)

[RFC PATCH v2, part4 06/39] tile: normalize global variables exported by vmlinux.lds

2013-03-24 Thread Jiang Liu
Normalize global variables exported by vmlinux.lds to conform usage guidelines from include/asm-generic/sections.h. 1) Use _text to mark the start of the kernel image including the head text, and _stext to mark the start of the .text section. 2) Export mandatory global variables __init_begin and

[RFC PATCH v2, part4 05/39] score: normalize global variables exported by vmlinux.lds

2013-03-24 Thread Jiang Liu
Generate mandatory global variables _sdata in file vmlinux.lds. Signed-off-by: Jiang Liu Cc: Chen Liqin Cc: Lennox Wu Cc: linux-kernel@vger.kernel.org --- arch/score/kernel/vmlinux.lds.S |1 + 1 file changed, 1 insertion(+) diff --git a/arch/score/kernel/vmlinux.lds.S

[RFC PATCH v2, part4 00/39] Simplify mem_init() implementations and kill num_physpages

2013-03-24 Thread Jiang Liu
The original goal of this patchset is to fix the bug reported by https://bugzilla.kernel.org/show_bug.cgi?id=53501 Now it has also been expanded to reduce common code used by memory initializion. This is the last part, previous three patch sets could be accessed at:

[RFC PATCH v2, part4 03/39] c6x: normalize global variables exported by vmlinux.lds

2013-03-24 Thread Jiang Liu
Normalize global variables exported by vmlinux.lds to conform usage guidelines from include/asm-generic/sections.h. Use _text to mark the start of the kernel image including the head text, and _stext to mark the start of the .text section. This patch also fixes possible bugs due to current

Re: I/O blocked while dirty pages are being flushed

2013-03-24 Thread Eric Wong
Fredrik Tolf wrote: > It is worth noting, also, that this seems to be a situation > introduced somewhere between 2.6.26 and 2.6.32, because I started > noticing it when I upgraded from Debian 5.0 to 6.0. I've since tried > it on 3.2.0, 3.5.4 and 3.7.1, and it appears in every version. > However,

Re: clk: x86: build failure

2013-03-24 Thread Mika Westerberg
On Sat, Mar 23, 2013 at 01:57:01PM -0400, Corey Richardson wrote: > With the attached config, I get the following build failure: > > LD init/built-in.o > drivers/built-in.o:clk-lpt.c:function v4l2_device_unregister: error: > undefined reference to 'i2c_unregister_device' I get following

[PATCH] documentation: DocBook/media : Fix typo in dvbproperty.xml

2013-03-24 Thread Masanari Iida
Correct spelling typos. Signed-off-by: Masanari Iida --- Documentation/DocBook/media/dvb/dvbproperty.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/DocBook/media/dvb/dvbproperty.xml b/Documentation/DocBook/media/dvb/dvbproperty.xml index

[PATCH v2] bnx2x: fix assignment of signed expression to unsigned variable

2013-03-24 Thread Kumar Amit Mehta
fix for incorrect assignment of signed expression to unsigned variable. Signed-off-by: Kumar Amit Mehta --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c

[PATCH v2] bnx2x: fix assignment of signed expression to unsigned variable

2013-03-24 Thread Kumar Amit Mehta
fix for incorrect assignment of signed expression to unsigned variable. Signed-off-by: Kumar Amit Mehta gmate.a...@gmail.com --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git

[PATCH] documentation: DocBook/media : Fix typo in dvbproperty.xml

2013-03-24 Thread Masanari Iida
Correct spelling typos. Signed-off-by: Masanari Iida standby2...@gmail.com --- Documentation/DocBook/media/dvb/dvbproperty.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/DocBook/media/dvb/dvbproperty.xml

Re: clk: x86: build failure

2013-03-24 Thread Mika Westerberg
On Sat, Mar 23, 2013 at 01:57:01PM -0400, Corey Richardson wrote: With the attached config, I get the following build failure: LD init/built-in.o drivers/built-in.o:clk-lpt.c:function v4l2_device_unregister: error: undefined reference to 'i2c_unregister_device' I get following with

Re: I/O blocked while dirty pages are being flushed

2013-03-24 Thread Eric Wong
Fredrik Tolf fred...@dolda2000.com wrote: It is worth noting, also, that this seems to be a situation introduced somewhere between 2.6.26 and 2.6.32, because I started noticing it when I upgraded from Debian 5.0 to 6.0. I've since tried it on 3.2.0, 3.5.4 and 3.7.1, and it appears in every

[RFC PATCH v2, part4 00/39] Simplify mem_init() implementations and kill num_physpages

2013-03-24 Thread Jiang Liu
The original goal of this patchset is to fix the bug reported by https://bugzilla.kernel.org/show_bug.cgi?id=53501 Now it has also been expanded to reduce common code used by memory initializion. This is the last part, previous three patch sets could be accessed at:

[RFC PATCH v2, part4 03/39] c6x: normalize global variables exported by vmlinux.lds

2013-03-24 Thread Jiang Liu
Normalize global variables exported by vmlinux.lds to conform usage guidelines from include/asm-generic/sections.h. Use _text to mark the start of the kernel image including the head text, and _stext to mark the start of the .text section. This patch also fixes possible bugs due to current

[RFC PATCH v2, part4 05/39] score: normalize global variables exported by vmlinux.lds

2013-03-24 Thread Jiang Liu
Generate mandatory global variables _sdata in file vmlinux.lds. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Chen Liqin liqin.c...@sunplusct.com Cc: Lennox Wu lennox...@gmail.com Cc: linux-kernel@vger.kernel.org --- arch/score/kernel/vmlinux.lds.S |1 + 1 file changed, 1 insertion(+)

[RFC PATCH v2, part4 06/39] tile: normalize global variables exported by vmlinux.lds

2013-03-24 Thread Jiang Liu
Normalize global variables exported by vmlinux.lds to conform usage guidelines from include/asm-generic/sections.h. 1) Use _text to mark the start of the kernel image including the head text, and _stext to mark the start of the .text section. 2) Export mandatory global variables __init_begin and

[RFC PATCH v2, part4 07/39] UML: normalize global variables exported by vmlinux.lds

2013-03-24 Thread Jiang Liu
Normalize global variables exported by vmlinux.lds to conform usage guidelines from include/asm-generic/sections.h. 1) Use _text to mark the start of the kernel image including the head text, and _stext to mark the start of the .text section. 2) Export mandatory global variables __bss_stop. 3)

[RFC PATCH v2, part4 08/39] mm: introduce helper function mem_init_print_info() to simplify mem_init()

2013-03-24 Thread Jiang Liu
Introduce helper function mem_init_print_info() to simplify mem_init() across different architectures, which also unifies the format and information printed. Function mem_init_print_info() calculates memory statistics information without walking each page, so it should be a little faster on some

[RFC PATCH v2, part4 09/39] mm/alpha: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Richard Henderson r...@twiddle.net Cc: Ivan Kokshaysky i...@jurassic.park.msu.ru Cc: Matt Turner matts...@gmail.com Cc: David Howells dhowe...@redhat.com Cc: linux-al...@vger.kernel.org

[RFC PATCH v2, part4 09/39] mm: use totalram_pages instead of num_physpages at runtime

2013-03-24 Thread Jiang Liu
The global variable num_physpages is scheduled to be removed, so use totalram_pages instead of num_physpages at runtime. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Miklos Szeredi mik...@szeredi.hu Cc: David S. Miller da...@davemloft.net Cc: Alexey Kuznetsov kuz...@ms2.inr.ac.ru Cc: James

[RFC PATCH v2, part4 10/39] mm/alpha: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Richard Henderson r...@twiddle.net Cc: Ivan Kokshaysky i...@jurassic.park.msu.ru Cc: Matt Turner matts...@gmail.com Cc: David Howells dhowe...@redhat.com Cc: linux-al...@vger.kernel.org

[RFC PATCH v2, part4 10/39] mm/ARM: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Russell King li...@arm.linux.org.uk Cc: Catalin Marinas catalin.mari...@arm.com Cc: Will Deacon will.dea...@arm.com Cc: linux-arm-ker...@lists.infradead.org Cc:

[RFC PATCH v2, part4 11/39] mm/ARM64: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Russell King li...@arm.linux.org.uk Cc: Catalin Marinas catalin.mari...@arm.com Cc: Will Deacon will.dea...@arm.com Cc: linux-arm-ker...@lists.infradead.org Cc:

[RFC PATCH v2, part4 11/39] mm/ARM: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Russell King li...@arm.linux.org.uk Cc: Catalin Marinas catalin.mari...@arm.com Cc: Will Deacon will.dea...@arm.com Cc: linux-arm-ker...@lists.infradead.org Cc:

[RFC PATCH v2, part4 12/39] mm/ARM64: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Russell King li...@arm.linux.org.uk Cc: Catalin Marinas catalin.mari...@arm.com Cc: Will Deacon will.dea...@arm.com Cc: linux-arm-ker...@lists.infradead.org Cc:

[RFC PATCH v2, part4 12/39] mm/AVR32: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Haavard Skinnemoen hskinnem...@gmail.com Cc: Hans-Christian Egtvedt egtv...@samfundet.no Cc: linux-kernel@vger.kernel.org (open list) --- arch/avr32/mm/init.c | 29

[RFC PATCH v2, part4 13/39] mm/AVR32: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Haavard Skinnemoen hskinnem...@gmail.com Cc: Hans-Christian Egtvedt egtv...@samfundet.no Cc: linux-kernel@vger.kernel.org (open list) --- arch/avr32/mm/init.c | 29

<    1   2   3   4   5   6   7   8   >