diff options
author | Christoph Lameter <clameter@sgi.com> | 2006-06-25 08:46:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-25 13:00:55 -0400 |
commit | 68402ddc677005ed1b1359bbc1f279548cfc0928 (patch) | |
tree | 83da62a2b55e2ea7e0c46ed79c0d6498d36e1942 /arch/ia64/pci | |
parent | 9f1a3cfcffaed2fbb3206179295c79ca8289f5c3 (diff) |
[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>
Diffstat (limited to 'arch/ia64/pci')
-rw-r--r-- | arch/ia64/pci/pci.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c index 61dd8608da4f..77375a55da31 100644 --- a/arch/ia64/pci/pci.c +++ b/arch/ia64/pci/pci.c | |||
@@ -602,8 +602,6 @@ pci_mmap_page_range (struct pci_dev *dev, struct vm_area_struct *vma, | |||
602 | * Leave vm_pgoff as-is, the PCI space address is the physical | 602 | * Leave vm_pgoff as-is, the PCI space address is the physical |
603 | * address on this platform. | 603 | * address on this platform. |
604 | */ | 604 | */ |
605 | vma->vm_flags |= (VM_SHM | VM_RESERVED | VM_IO); | ||
606 | |||
607 | if (write_combine && efi_range_is_wc(vma->vm_start, | 605 | if (write_combine && efi_range_is_wc(vma->vm_start, |
608 | vma->vm_end - vma->vm_start)) | 606 | vma->vm_end - vma->vm_start)) |
609 | vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot); | 607 | vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot); |
@@ -666,7 +664,6 @@ pci_mmap_legacy_page_range(struct pci_bus *bus, struct vm_area_struct *vma) | |||
666 | 664 | ||
667 | vma->vm_pgoff += (unsigned long)addr >> PAGE_SHIFT; | 665 | vma->vm_pgoff += (unsigned long)addr >> PAGE_SHIFT; |
668 | vma->vm_page_prot = prot; | 666 | vma->vm_page_prot = prot; |
669 | vma->vm_flags |= (VM_SHM | VM_RESERVED | VM_IO); | ||
670 | 667 | ||
671 | if (remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, | 668 | if (remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, |
672 | size, vma->vm_page_prot)) | 669 | size, vma->vm_page_prot)) |