From: akpm@linux-foundation.org Subject: + mm-implement-map_pages-for-shmem-tmpfs.patch added to -mm tree Date: Thu, 13 Mar 2014 15:36:24 -0700 Message-ID: <532232e8.kaC/1fp2xi0Nrrt+%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:43150 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754036AbaCMWgZ (ORCPT ); Thu, 13 Mar 2014 18:36:25 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: mm-commits@vger.kernel.org, riel@redhat.com, mgorman@suse.de, kirill@shutemov.name, hughd@google.com, david@fromorbit.com, dave.hansen@linux.intel.com, quning@google.com Subject: + mm-implement-map_pages-for-shmem-tmpfs.patch added to -mm tree To: quning@google.com,dave.hansen@linux.intel.com,david@fromorbit.com,hughd@google.com,kirill@shutemov.name,mgorman@suse.de,riel@redhat.com From: akpm@linux-foundation.org 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 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. 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 --- mm/shmem.c | 1 + 1 file changed, 1 insertion(+) diff -puN mm/shmem.c~mm-implement-map_pages-for-shmem-tmpfs mm/shmem.c --- a/mm/shmem.c~mm-implement-map_pages-for-shmem-tmpfs +++ a/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 quning@google.com are mm-implement-map_pages-for-page-cache-fix.patch mm-implement-map_pages-for-shmem-tmpfs.patch