Skip to contentSkip to conversation

+ mm-implement-map_pages-for-shmem-tmpfs.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Mar 13, 2014

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + mm-implement-map_pages-for-shmem-tmpfs.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 13 Mar 2014 15:36:24 -0700

The patch titled

     Subject: mm: implement ->map_pages for shmem/tmpfs

has been added to the -mm tree. Its filename is
mm-implement-map_pages-for-shmem-tmpfs.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-implement-map_pages-for-shmem-tmpfs.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-implement-map_pages-for-shmem-tmpfs.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Ning Qu <[email protected]>
Subject: 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.

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]>

---

 mm/shmem.c |    1 +
 1 file changed, 1 insertion(+)
mm/shmem.c renamed from mm/shmem.c~mm-implement-map_pages-for-shmem-tmpfs +1 -0
diff -puN mm/shmem.c~mm-implement-map_pages-for-shmem-tmpfs mm/shmem.c
@@ -2723,6 +2723,7 @@ static const struct super_operations shm
 
 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,

_

Patches currently in -mm which might be from [email protected] are

mm-implement-map_pages-for-page-cache-fix.patch
mm-implement-map_pages-for-shmem-tmpfs.patch