kernel-ark/sound/core
Nick Piggin b5810039a5 [PATCH] core remove PageReserved
Remove PageReserved() calls from core code by tightening VM_RESERVED
handling in mm/ to cover PageReserved functionality.

PageReserved special casing is removed from get_page and put_page.

All setting and clearing of PageReserved is retained, and it is now flagged
in the page_alloc checks to help ensure we don't introduce any refcount
based freeing of Reserved pages.

MAP_PRIVATE, PROT_WRITE of VM_RESERVED regions is tentatively being
deprecated.  We never completely handled it correctly anyway, and is be
reintroduced in future if required (Hugh has a proof of concept).

Once PageReserved() calls are removed from kernel/power/swsusp.c, and all
arch/ and driver code, the Set and Clear calls, and the PG_reserved bit can
be trivially removed.

Last real user of PageReserved is swsusp, which uses PageReserved to
determine whether a struct page points to valid memory or not.  This still
needs to be addressed (a generic page_is_ram() should work).

A last caveat: the ZERO_PAGE is now refcounted and managed with rmap (and
thus mapcounted and count towards shared rss).  These writes to the struct
page could cause excessive cacheline bouncing on big systems.  There are a
number of ways this could be addressed if it is an issue.

Signed-off-by: Nick Piggin <npiggin@suse.de>

Refcount bug fix for filemap_xip.c

Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-29 21:40:39 -07:00
..
oss [ALSA] Replace with kzalloc() - core stuff 2005-09-12 10:47:59 +02:00
seq [PATCH] gfp_t: sound 2005-10-28 08:16:50 -07:00
control_compat.c [ALSA] Replace with kzalloc() - core stuff 2005-09-12 10:47:59 +02:00
control.c [ALSA] Replace with kzalloc() - core stuff 2005-09-12 10:47:59 +02:00
device.c [ALSA] Replace with kzalloc() - core stuff 2005-09-12 10:47:59 +02:00
hwdep_compat.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hwdep.c [ALSA] Replace with kzalloc() - core stuff 2005-09-12 10:47:59 +02:00
info_oss.c [PATCH] create a kstrdup library function 2005-06-23 09:45:18 -07:00
info.c [ALSA] Replace with kzalloc() - core stuff 2005-09-12 10:47:59 +02:00
init.c [PATCH] DRIVER MODEL: Get rid of the obsolete tri-level suspend/resume callbacks 2005-10-28 09:52:56 -07:00
isadma.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig [ALSA] rtctimer: add option to make RTC timer the default sequencer timer 2005-09-12 10:42:05 +02:00
Makefile [PATCH] Kconfig fix (ISA_DMA_API and sound/*) 2005-08-23 18:43:40 -07:00
memalloc.c [PATCH] gfp_t: sound 2005-10-28 08:16:50 -07:00
memory.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
misc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pcm_compat.c [ALSA] pcm - Fix zero-division in 32bit compat layer 2005-08-30 08:47:40 +02:00
pcm_lib.c [ALSA] Fix DocBook warnings 2005-09-12 10:42:22 +02:00
pcm_memory.c [ALSA] Replace with kzalloc() - core stuff 2005-09-12 10:47:59 +02:00
pcm_misc.c [ALSA] Export missing snd_pcm_format_*() 2005-05-29 10:11:11 +02:00
pcm_native.c [PATCH] core remove PageReserved 2005-10-29 21:40:39 -07:00
pcm_timer.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pcm.c [ALSA] Replace with kzalloc() - core stuff 2005-09-12 10:47:59 +02:00
rawmidi_compat.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
rawmidi.c [ALSA] Replace with kzalloc() - core stuff 2005-09-12 10:47:59 +02:00
rtctimer.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sgbuf.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sound_oss.c [PATCH] Assign device pointer to OSS devices 2005-08-30 08:58:37 +02:00
sound.c [PATCH] Driver Core: fix up all callers of class_device_create() 2005-10-28 09:52:52 -07:00
timer_compat.c [ALSA] Change some timer ioctls due to confliction 2005-05-29 10:10:53 +02:00
timer.c [ALSA] Replace with kzalloc() - core stuff 2005-09-12 10:47:59 +02:00
wrappers.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00