-
- Downloads
VM: add "vm_mmap()" helper function
This continues the theme started with vm_brk() and vm_munmap():
vm_mmap() does the same thing as do_mmap(), but additionally does the
required VM locking.
This uninlines (and rewrites it to be clearer) do_mmap(), which sadly
duplicates it in mm/mmap.c and mm/nommu.c. But that way we don't have
to export our internal do_mmap_pgoff() function.
Some day we hopefully don't have to export do_mmap() either, if all
modular users can become the simpler vm_mmap() instead. We're actually
very close to that already, with the notable exception of the (broken)
use in i810, and a couple of stragglers in binfmt_elf.
Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- arch/tile/kernel/single_step.c 1 addition, 3 deletionsarch/tile/kernel/single_step.c
- arch/x86/ia32/ia32_aout.c 3 additions, 9 deletionsarch/x86/ia32/ia32_aout.c
- arch/x86/kvm/x86.c 1 addition, 3 deletionsarch/x86/kvm/x86.c
- drivers/gpu/drm/drm_bufs.c 4 additions, 8 deletionsdrivers/gpu/drm/drm_bufs.c
- drivers/gpu/drm/exynos/exynos_drm_gem.c 1 addition, 3 deletionsdrivers/gpu/drm/exynos/exynos_drm_gem.c
- drivers/gpu/drm/i810/i810_dma.c 1 addition, 0 deletionsdrivers/gpu/drm/i810/i810_dma.c
- drivers/gpu/drm/i915/i915_gem.c 1 addition, 3 deletionsdrivers/gpu/drm/i915/i915_gem.c
- fs/binfmt_aout.c 3 additions, 9 deletionsfs/binfmt_aout.c
- fs/binfmt_elf.c 2 additions, 6 deletionsfs/binfmt_elf.c
- fs/binfmt_elf_fdpic.c 4 additions, 14 deletionsfs/binfmt_elf_fdpic.c
- fs/binfmt_flat.c 3 additions, 9 deletionsfs/binfmt_flat.c
- fs/binfmt_som.c 3 additions, 9 deletionsfs/binfmt_som.c
- include/linux/mm.h 6 additions, 17 deletionsinclude/linux/mm.h
- mm/mmap.c 27 additions, 2 deletionsmm/mmap.c
- mm/nommu.c 27 additions, 2 deletionsmm/nommu.c
Loading
Please register or sign in to comment