mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Acked-by: Hugh Dickins <[email protected]> Cc: "Kirill A. Shutemov" <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Dave Chinner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
1592eef015
commit
d7c1755179
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue