[PATCH] remove set_page_count() outside mm/
authorNick Piggin <npiggin@suse.de>
Wed, 22 Mar 2006 08:08:40 +0000 (00:08 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 22 Mar 2006 15:54:02 +0000 (07:54 -0800)
commit7835e98b2e3c66dba79cb0ff8ebb90a2fe030c29
tree405a96eade34845dabe2f125b6c5eb095846869d
parent70dc991d66cac40fdb07346dba2b5d862d732c34
[PATCH] remove set_page_count() outside mm/

set_page_count usage outside mm/ is limited to setting the refcount to 1.
Remove set_page_count from outside mm/, and replace those users with
init_page_count() and set_page_refcounted().

This allows more debug checking, and tighter control on how code is allowed
to play around with page->_count.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
40 files changed:
arch/alpha/mm/init.c
arch/arm/mm/init.c
arch/arm26/mm/init.c
arch/cris/mm/init.c
arch/frv/mm/init.c
arch/h8300/mm/init.c
arch/i386/mm/init.c
arch/ia64/mm/init.c
arch/m32r/mm/init.c
arch/m68k/mm/init.c
arch/m68k/mm/memory.c
arch/m68k/mm/motorola.c
arch/m68knommu/mm/init.c
arch/mips/arc/memory.c
arch/mips/dec/prom/memory.c
arch/mips/mips-boards/generic/memory.c
arch/mips/mips-boards/sim/sim_mem.c
arch/mips/mm/init.c
arch/mips/sgi-ip27/ip27-memory.c
arch/parisc/mm/init.c
arch/powerpc/mm/init_32.c
arch/powerpc/mm/init_64.c
arch/powerpc/mm/mem.c
arch/powerpc/platforms/cell/setup.c
arch/ppc/mm/init.c
arch/s390/mm/init.c
arch/sh/mm/init.c
arch/sh64/mm/init.c
arch/sparc/kernel/sun4d_smp.c
arch/sparc/kernel/sun4m_smp.c
arch/sparc/mm/init.c
arch/sparc64/mm/init.c
arch/um/kernel/mem.c
arch/x86_64/mm/init.c
arch/xtensa/mm/init.c
drivers/video/acornfb.c
include/linux/mm.h
mm/hugetlb.c
mm/internal.h
mm/page_alloc.c