[PATCH] mm: remove VM_LOCKED before remap_pfn_range and drop VM_SHM
authorChristoph Lameter <clameter@sgi.com>
Sun, 25 Jun 2006 12:46:47 +0000 (05:46 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:00:55 +0000 (10:00 -0700)
commit68402ddc677005ed1b1359bbc1f279548cfc0928
tree83da62a2b55e2ea7e0c46ed79c0d6498d36e1942
parent9f1a3cfcffaed2fbb3206179295c79ca8289f5c3
[PATCH] mm: remove VM_LOCKED before remap_pfn_range and drop VM_SHM

Remove VM_LOCKED before remap_pfn range from device drivers and get rid of
VM_SHM.

remap_pfn_range() already sets VM_IO.  There is no need to set VM_SHM since
it does nothing.  VM_LOCKED is of no use since the remap_pfn_range does not
place pages on the LRU.  The pages are therefore never subject to swap
anyways.  Remove all the vm_flags settings before calling remap_pfn_range.

After removing all the vm_flag settings no use of VM_SHM is left.  Drop it.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Acked-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
14 files changed:
arch/arm/kernel/bios32.c
arch/cris/arch-v32/drivers/pci/bios.c
arch/i386/pci/i386.c
arch/ia64/pci/pci.c
arch/powerpc/kernel/pci_32.c
arch/powerpc/kernel/pci_64.c
arch/powerpc/kernel/proc_ppc64.c
arch/ppc/kernel/pci.c
arch/xtensa/kernel/pci.c
drivers/char/mmtimer.c
drivers/sbus/char/flash.c
drivers/sbus/char/vfc_dev.c
drivers/video/igafb.c
include/linux/mm.h