mm: remove unnecessary wrapper function do_mmap_pgoff()
The current split between do_mmap() and do_mmap_pgoff() was introduced in commit 1fcfd8db ("mm, mpx: add "vm_flags_t vm_flags" arg to do_mmap_pgoff()") to support MPX. The wrapper function do_mmap_pgoff() always passed 0 as the value of the vm_flags argument to do_mmap(). However, MPX support has subsequently been removed from the kernel and there were no more direct callers of do_mmap(); all calls were going via do_mmap_pgoff(). Simplify the code by removing do_mmap_pgoff() and changing all callers to directly call do_mmap(), which now no longer takes a vm_flags argument. Signed-off-by:Peter Collingbourne <pcc@google.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Reviewed-by:
Andrew Morton <akpm@linux-foundation.org> Reviewed-by:
David Hildenbrand <david@redhat.com> Link: http://lkml.kernel.org/r/20200727194109.1371462-1-pcc@google.com Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- fs/aio.c 3 additions, 3 deletionsfs/aio.c
- fs/hugetlbfs/inode.c 1 addition, 1 deletionfs/hugetlbfs/inode.c
- include/linux/fs.h 1 addition, 1 deletioninclude/linux/fs.h
- include/linux/mm.h 1 addition, 11 deletionsinclude/linux/mm.h
- ipc/shm.c 1 addition, 1 deletionipc/shm.c
- mm/mmap.c 8 additions, 8 deletionsmm/mmap.c
- mm/nommu.c 3 additions, 3 deletionsmm/nommu.c
- mm/shmem.c 1 addition, 1 deletionmm/shmem.c
- mm/util.c 2 additions, 2 deletionsmm/util.c
Loading
Please register or sign in to comment