[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: http://marc.info/?l=linux-mm&m=

[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 addres

[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 b/arch/score/kernel/

[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) Adj

[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 a

[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: fuse-de...@lists.sou

[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 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 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 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 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(-) d

[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(-) d

[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 insertio

[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 insertio

[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 a/a

[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 a/a

[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 delet

[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 delet

[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 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 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 a/arc

[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 a/arc

[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 b/ar

[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 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 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 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 de

[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 de

[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 --- arch/mips/mm/i

[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 --- arch/mips/mm/i

[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 deletions

[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 deletions

[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 changed

[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 changed

[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 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 chang

[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 chang

[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 insertions(

[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 insertions(

[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 b/a

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 deletion

[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 deletion

[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 --- arch/sparc/mm/init_32.c

[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 --- arch/sparc/mm/init_32.c

[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 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 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 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 del

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(&memcg_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 do

[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 del

[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 --- arch/x86/kernel/cpu/amd

[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 --- arch/x86/kernel/cpu/amd

[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 inse

[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: fuse-de...@lists.sou

[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 inse

[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 b/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: linux-kernel@vger.kernel.org

[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 b/a

[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 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 b/ar

[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 del

[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 --- arch/x86/kernel/cpu/amd

[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 inse

[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 b/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: linux-kernel@vger.kernel.org

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 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: lin

[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: Han

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

2013-03-24 Thread Jiang Liu
Generate mandatory global variables __bss_start/__bss_stop in file vmlinux.lds. Also remove one unused declaration of _text. Signed-off-by: Jiang Liu Cc: Yoshinori Sato Cc: Jiang Liu Cc: linux-kernel@vger.kernel.org --- arch/h8300/boot/compressed/misc.c |1 - arch/h8300/kernel/vmlinux.lds

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

2013-03-24 Thread Dmitry Kravkov
> -Original Message- > From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] On > Behalf Of Kumar Amit Mehta > Sent: Sunday, March 24, 2013 8:10 AM > To: Eilon Greenstein > Cc: da...@davemloft.net; dan.carpen...@oracle.com; net...@vger.kernel.org; > linux-kernel@vger.ke

[PATCH 1/1] Feature: Support ALPS v6.

2013-03-24 Thread Valyushkov Ivan
Tested on Dell 7720. Works fine. Signed-off-by: Valyushkov Ivan --- drivers/input/mouse/alps.c | 464 +--- drivers/input/mouse/alps.h |2 + 2 files changed, 443 insertions(+), 23 deletions(-) diff --git a/drivers/input/mouse/alps.c b/drivers/input/mo

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

2013-03-24 Thread James Bottomley
On Sun, 2013-03-24 at 15:24 +0800, Jiang Liu wrote: > 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

Re: [GIT PULL] nohz: Full dynticks base interface

2013-03-24 Thread Ingo Molnar
* Frederic Weisbecker wrote: > Hi Ingo, > > This settles the initial ground to start a special full dynticks tree in -tip > that we can iterate incrementally to accelerate the development. > It is based on tip:sched/core. > > I tried to rearrange a bit the naming. We are probably not yet done

Re: [-next] fs/eventpoll.c:545 suspicious rcu_dereference_check() usage

2013-03-24 Thread Sergey Senozhatsky
On (03/23/13 17:34), Eric Wong wrote: > Sergey Senozhatsky wrote: > > [3.163894] === > > [3.163895] [ INFO: suspicious RCU usage. ] > > [3.163897] 3.9.0-rc3-next-20130322-dbg-dirty #1 Not tainted > > [3.163898] --- > > [3.

[GIT PULL] pinctrl fixes for v3.9

2013-03-24 Thread Linus Walleij
Hi Linus, here are some assorted pinctrl fixes for the v3.9 rc series. Just bug fixes, basically. Please pull them in, detailed info in the tag. Yours, Linus Walleij The following changes since commit 6dbe51c251a327e012439c4772097a13df43c5b8: Linux 3.9-rc1 (2013-03-03 15:11:05 -0800) are a

Re: [PATCH] net: Add support for handling queueing in hardware

2013-03-24 Thread Guenter Roeck
On Fri, Mar 22, 2013 at 10:43:44AM -0400, Ben Collins wrote: > On Mar 22, 2013, at 10:33 AM, David Miller wrote: > > > From: Fleming Andy-AFLEMING > > Date: Fri, 22 Mar 2013 14:31:50 + > > > >> It would appear one of our customers is attempting to upstream our > >> code for us. We are aware

Re: [PATCH v10 04/12] watchdog: add Palmas Watchdog support

2013-03-24 Thread Guenter Roeck
On Fri, Mar 22, 2013 at 02:55:14PM +, Ian Lartey wrote: > From: Graeme Gregory > > Add support for the Palmas watchdog timer which has a timeout configurable > from 1s to 128s. > > Signed-off-by: Graeme Gregory > Signed-off-by: Ian Lartey > --- > drivers/watchdog/palmas_wdt.c | 169 > ++

Re: [PATCH v10 05/12] watchdog: Kconfig for Palmas watchdog

2013-03-24 Thread Guenter Roeck
On Fri, Mar 22, 2013 at 02:55:15PM +, Ian Lartey wrote: > Add the Kconfig and Makefile for the Palmas watchdog driver > > Signed-off-by: Ian Lartey > Signed-off-by: Graeme Gregory > --- I think this patch should be merged with the previous one. Guenter -- To unsubscribe from this list: sen

Re: mfd: Core driver for Winbond chips

2013-03-24 Thread Guenter Roeck
On Sat, Mar 23, 2013 at 10:49:14AM -0700, Guenter Roeck wrote: > MFD core driver for various variants of Winbond/Nuvoton SuperIO chips. > > Signed-off-by: Guenter Roeck Sorry for sending this twice. I seem to be having trouble with outgoing e-mail being delayed for hours. The first patch didn't

Re: [PATCH] net: Add support for handling queueing in hardware

2013-03-24 Thread Guenter Roeck
On Fri, Mar 22, 2013 at 06:08:40PM -0400, Theodore Ts'o wrote: > On Fri, Mar 22, 2013 at 11:39:20AM -0400, Ben Collins wrote: > > > > If your company had hardware going to production, you'd want it supported > > in mainline too, I suspect. > > And if companies told their hardware partners that t

[RFC] fsfreeze: moving from uniterruptible to killable

2013-03-24 Thread Marco Stornelli
When a fs is frozen, a process can hang because we wait in uniterruptible state. We give the user the possibility to kill the process. Not-signed-off-by: Marco Stornelli --- --- fs/super.c.orig 2013-03-24 09:56:33.0 +0100 +++ fs/super.c 2013-03-24 09:58:41.0 +0100 @@ -1198,7

Re: hybrid raid1 with trim support

2013-03-24 Thread Markus
Hi! Still the same with 3.8.4 ... anybody? Best regards, Markus Markus schrieb am 12.03.2013: > Hello! > > I created a hybrid raid1 with one ssd and one hdd. Used writemostly and > writebehind and put ext4 with discard enabled on it. > This setup worked quite well for the last months (last ker

Re: 3.9-rc3+: reports battery as 0 mWh capacity on thinkpad x60

2013-03-24 Thread Pavel Machek
Hi! > > > >> pavel@amd:~$ cat /proc/acpi/battery/BAT0/info > > > >> present: yes > > > >> design capacity: 0 mWh > > > >> last full capacity: 0 mWh > > > >> battery technology: rechargeable > > > >> design voltage: 14400 mV > > > >> > > > >> This worked

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

2013-03-24 Thread Arnd Bergmann
On Sunday 24 March 2013, Jiang Liu wrote: > 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 > C

Re: [PATCH] KVM: allow host header to be included even for !CONFIG_KVM

2013-03-24 Thread Gleb Natapov
On Thu, Mar 21, 2013 at 05:02:15PM -0700, Kevin Hilman wrote: > Gleb Natapov writes: > > > On Thu, Mar 21, 2013 at 02:33:13PM -0500, Scott Wood wrote: > >> On 03/21/2013 02:16:00 PM, Gleb Natapov wrote: > >> >On Thu, Mar 21, 2013 at 01:42:34PM -0500, Scott Wood wrote: > >> >> On 03/21/2013 09:27:

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

2013-03-24 Thread Bart Van Assche
On 03/24/13 06:12, Fredrik Tolf wrote: While this flush is running, I find that many a process goes into disk sleep waiting for the flush to complete. This includes the process manipulating the mmapped file whenever it tries to redirty a page currently waiting to be flushed, but also, for instanc

Re: Caps lock XOR on multiple keyboards?

2013-03-24 Thread Pavel Machek
Hi! On Mon 2012-12-03 23:58:48, Alan Cox wrote: > On 3 Dec 2012 16:19:11 -0500 > "George Spelvin" wrote: > > > (Not sure who owns this; Cc: to the last few people to touch > > drivers/tty/vt/keyboard.c.) > > linux-input is probably the best place to discuss this Added few more ccs. Yes, I see t

Re: Caps lock XOR on multiple keyboards?

2013-03-24 Thread Pavel Machek
On Sun 2013-03-24 11:30:18, Pavel Machek wrote: > Hi! > On Mon 2012-12-03 23:58:48, Alan Cox wrote: > > On 3 Dec 2012 16:19:11 -0500 > > "George Spelvin" wrote: > > > > > (Not sure who owns this; Cc: to the last few people to touch > > > drivers/tty/vt/keyboard.c.) > > > > linux-input is probabl

kernel 3.8.4 : kernel BUG at fs/locks.c:2093!

2013-03-24 Thread Toralf Förster
Observed it today at a 32 bit Gentoo Linux w/ kernel 3.8.4 : 2013-03-24T11:39:48.749+01:00 n22 kernel: [ cut here ] 2013-03-24T11:39:48.749+01:00 n22 kernel: kernel BUG at fs/locks.c:2093! 2013-03-24T11:39:48.749+01:00 n22 kernel: invalid opcode: [#1] SMP 2013-03-24T1

Re: Zombie stuck in zap_pid_ns_processes()

2013-03-24 Thread Eric W. Biederman
Caj Larsson writes: > Hello, > > We are setting up a container using a CLONE_NEWNS linux namespace. > Previously we used the 3.4.4 kernel, which worked fine. After I > upgraded i also experienced races in netlink, which has been resolved > by placing a monitor around the namespace setup. When we

Re: [RFC 0/2] PCI: Introduce MSI chip infrastructure

2013-03-24 Thread Thomas Petazzoni
Andrew, Thierry, On Fri, 22 Mar 2013 09:30:27 +, Andrew Murray wrote: > I think this could work well. In the future if the use of an independent MSI > controller is required, then new DT bindings for host-bridges could use > phandles to reference independent MSI controllers as their providers

  1   2   3   4   5   >