]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mmap.c: pass in mapping to __vma_link_file()
authorLiam Howlett <liam.howlett@oracle.com>
Thu, 14 Apr 2022 06:07:24 +0000 (23:07 -0700)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 14 Apr 2022 21:49:49 +0000 (17:49 -0400)
commitd2a795b6a46516d08f93d9ebc6d1fcf289fb8632
tree5f60e6edd6eb7bceb9f39836efe7e9d6ae1da027
parente2f817b4a416989ec5fef7b921bb1d91cd9b61ac
mm/mmap.c: pass in mapping to __vma_link_file()

__vma_link_file() resolves the mapping from the file, if there is one.
Pass through the mapping and check the vm_file externally since most
places already have the required information and check of vm_file.

Link: https://lkml.kernel.org/r/20220404143501.2016403-71-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mmap.c