From: Ning Qu Date: Mon, 7 Apr 2014 22:37:24 +0000 (-0700) Subject: mm: implement ->map_pages for shmem/tmpfs X-Git-Tag: v3.15-rc1~57^2~131 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=d7c1755179b82d954f593ca5285b9360f2f62e9c;p=linux.git mm: implement ->map_pages for shmem/tmpfs In shmem/tmpfs, we also use the generic filemap_map_pages, seems the additional checking is not worth a separate version of map_pages for it. Signed-off-by: Ning Qu Acked-by: Hugh Dickins Cc: "Kirill A. Shutemov" Cc: Mel Gorman Cc: Rik van Riel Cc: Dave Hansen Cc: Dave Chinner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/shmem.c b/mm/shmem.c index a3ba988ec946..70709347a1e2 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -2723,6 +2723,7 @@ static const struct super_operations shmem_ops = { static const struct vm_operations_struct shmem_vm_ops = { .fault = shmem_fault, + .map_pages = filemap_map_pages, #ifdef CONFIG_NUMA .set_policy = shmem_set_policy, .get_policy = shmem_get_policy,