kernel-hacking-2024-linux-s.../fs/proc
Petr Holasek a6fc86d2b4 kpagecount: add slab page checking because _mapcount is in a union
Add a PageSlab() check before adding the _mapcount value to /kpagecount.
page->_mapcount is in a union with the SLAB structure so for pages
controlled by SLAB, page_mapcount() returns nonsense.

Signed-off-by: Petr Holasek <pholasek@redhat.com>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Cc: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-01-13 08:03:17 -08:00
..
array.c proc: use seq_puts()/seq_putc() where possible 2011-01-13 08:03:16 -08:00
base.c proc: use single_open() correctly 2011-01-13 08:03:16 -08:00
cmdline.c
cpuinfo.c
devices.c proc: use seq_puts()/seq_putc() where possible 2011-01-13 08:03:16 -08:00
generic.c proc: ->low_ino cleanup 2011-01-13 08:03:16 -08:00
inode.c proc: ->low_ino cleanup 2011-01-13 08:03:16 -08:00
internal.h proc: ->low_ino cleanup 2011-01-13 08:03:16 -08:00
interrupts.c
Kconfig
kcore.c
kmsg.c
loadavg.c
Makefile console: add /proc/consoles 2010-11-16 12:50:17 -08:00
meminfo.c
mmu.c
nommu.c
page.c kpagecount: add slab page checking because _mapcount is in a union 2011-01-13 08:03:17 -08:00
proc_console.c console: add /proc/consoles 2010-11-16 12:50:17 -08:00
proc_devtree.c
proc_net.c
proc_sysctl.c fs: provide rcu-walk aware permission i_ops 2011-01-07 17:50:29 +11:00
proc_tty.c proc: use seq_puts()/seq_putc() where possible 2011-01-13 08:03:16 -08:00
root.c switch procfs to ->mount() 2010-10-29 04:17:01 -04:00
softirqs.c proc: use seq_puts()/seq_putc() where possible 2011-01-13 08:03:16 -08:00
stat.c proc: use seq_puts()/seq_putc() where possible 2011-01-13 08:03:16 -08:00
task_mmu.c proc: use unsigned long inside /proc/*/statm 2011-01-13 08:03:16 -08:00
task_nommu.c proc: use unsigned long inside /proc/*/statm 2011-01-13 08:03:16 -08:00
uptime.c
version.c
vmcore.c ARM: 6485/5: proc/vmcore - allow archs to override vmcore_elf_check_arch() 2010-11-30 13:39:55 +00:00