aboutsummaryrefslogtreecommitdiffstats
path: root/mm/nommu.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>2014-04-07 18:37:19 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-07 19:35:53 -0400
commitf1820361f83d556a7f0a9f629100f3825e594328 (patch)
tree1fc18989613d72ef115b355864786dd934b4d317 /mm/nommu.c
parent8c6e50b0290c4c708a3e6462729e1e9151a9a7df (diff)
mm: implement ->map_pages for page cache
filemap_map_pages() is generic implementation of ->map_pages() for filesystems who uses page cache. It should be safe to use filemap_map_pages() for ->map_pages() if filesystem use filemap_fault() for ->fault(). Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mel Gorman <mgorman@suse.de> Cc: Rik van Riel <riel@redhat.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Matthew Wilcox <matthew.r.wilcox@intel.com> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Cc: Dave Chinner <david@fromorbit.com> Cc: Ning Qu <quning@gmail.com> Cc: Hugh Dickins <hughd@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/nommu.c')
-rw-r--r--mm/nommu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mm/nommu.c b/mm/nommu.c
index a554e5a451cd..e19482533ce3 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -1985,6 +1985,12 @@ int filemap_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
1985} 1985}
1986EXPORT_SYMBOL(filemap_fault); 1986EXPORT_SYMBOL(filemap_fault);
1987 1987
1988void filemap_map_pages(struct vm_area_struct *vma, struct vm_fault *vmf)
1989{
1990 BUG();
1991}
1992EXPORT_SYMBOL(filemap_map_pages);
1993
1988int generic_file_remap_pages(struct vm_area_struct *vma, unsigned long addr, 1994int generic_file_remap_pages(struct vm_area_struct *vma, unsigned long addr,
1989 unsigned long size, pgoff_t pgoff) 1995 unsigned long size, pgoff_t pgoff)
1990{ 1996{