Skip to content

vm_unmapped_area: finish the mission

Michel Lespinasse linux-alpha linux-ia64 linux-mm linux-parisc linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8mm: use vm_unmapped_area() on parisc architecturearch/parisc/kernel/sys_parisc.c+17 -291 reply
2/8mm: use vm_unmapped_area() on alpha architecturearch/alpha/kernel/osf_sys.c+9 -112 replies
3/8mm: use vm_unmapped_area() on frv architecturearch/frv/mm/elf-fdpic.c+17 -321 reply
4/8mm: use vm_unmapped_area() on ia64 architecturearch/ia64/kernel/sys_ia64.c+12 -251 reply
5/8mm: use vm_unmapped_area() in hugetlbfs on ia64 architecturearch/ia64/mm/hugetlbpage.c+9 -111 reply
6/8mm: remove free_area_cache use in powerpc architecturearch/powerpc/include/asm/page_64.h arch/powerpc/mm/hugetlbpage.c arch/powerpc/mm/slice.c +1 more+22 -931 reply
7/8mm: use vm_unmapped_area() on powerpc architecturearch/powerpc/mm/slice.c+81 -476 replies
8/8mm: remove free_area_cachearch/arm/mm/mmap.c arch/arm64/mm/mmap.c arch/mips/mm/mmap.c +14 more+0 -661 reply

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchRik van RielMichael Cree
1/8A-b
2/8A-b T-b
3/8A-b
4/8A-b
5/8A-b
6/8A-b
7/8A-b A-b
8/8A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] vm_unmapped_area: finish the mission

These patches, which apply on top of v3.8-rc kernels, are to complete the VMA gap finding code I introduced (following Rik's initial proposal) in v3.8-rc1.

First 5 patches introduce the use of vm_unmapped_area() to replace brute force searches on parisc, alpha, frv and ia64 architectures (all relatively trivial uses of the vm_unmapped_area() infrastructure)

Next 2 patches do the same as above for the powerpc architecture. This change is not as trivial as for the other architectures, because we need to account for each address space slice potentially having a different page size.

The last patch removes the free_area_cache, which was used by all the brute force searches before they got converted to the vm_unmapped_area() infrastructure.

I did some basic testing on x86 and powerpc; however the first 5 (simpler) patches for parisc, alpha, frv and ia64 architectures are untested.

Michel Lespinasse (8):
mm: use vm_unmapped_area() on parisc architecture
mm: use vm_unmapped_area() on alpha architecture
mm: use vm_unmapped_area() on frv architecture
mm: use vm_unmapped_area() on ia64 architecture
mm: use vm_unmapped_area() in hugetlbfs on ia64 architecture
mm: remove free_area_cache use in powerpc architecture
mm: use vm_unmapped_area() on powerpc architecture
mm: remove free_area_cache

 arch/alpha/kernel/osf_sys.c              |   20 ++--
 arch/arm/mm/mmap.c                       |    2 -
 arch/arm64/mm/mmap.c                     |    2 -
 arch/frv/mm/elf-fdpic.c                  |   49 +++----
 arch/ia64/kernel/sys_ia64.c              |   37 ++----
 arch/ia64/mm/hugetlbpage.c               |   20 ++--
 arch/mips/mm/mmap.c                      |    2 -
 arch/parisc/kernel/sys_parisc.c          |   46 +++----
 arch/powerpc/include/asm/page_64.h       |    3 +-
 arch/powerpc/mm/hugetlbpage.c            |    2 +-
 arch/powerpc/mm/mmap_64.c                |    2 -
 arch/powerpc/mm/slice.c                  |  228 +++++++++++++-----------------
 arch/powerpc/platforms/cell/spufs/file.c |    2 +-
 arch/s390/mm/mmap.c                      |    4 -
 arch/sparc/kernel/sys_sparc_64.c         |    2 -
 arch/tile/mm/mmap.c                      |    2 -
 arch/x86/ia32/ia32_aout.c                |    2 -
 arch/x86/mm/mmap.c                       |    2 -
 fs/binfmt_aout.c                         |    2 -
 fs/binfmt_elf.c                          |    2 -
 include/linux/mm_types.h                 |    3 -
 include/linux/sched.h                    |    2 -
 kernel/fork.c                            |    4 -
 mm/mmap.c                                |   28 ----
 mm/nommu.c                               |    4 -
 mm/util.c                                |    1 -
 26 files changed, 163 insertions(+), 310 deletions(-)
Signature · 1 line
1.7.7.3