diff options
author | Nick Piggin <npiggin@suse.de> | 2008-04-28 05:13:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 11:58:23 -0400 |
commit | 423bad600443c590f34ed7ce357591f76f48f137 (patch) | |
tree | 79487f811bf1097f2592c4d20f688d1b1ec41e25 /include | |
parent | 7e675137a8e1a4d45822746456dd389b65745bf6 (diff) |
mm: add vm_insert_mixed
vm_insert_mixed will insert either a raw pfn or a refcounted struct page into
the page tables, depending on whether vm_normal_page() will return the page or
not. With the introduction of the new pte bit, this is now a too tricky for
drivers to be doing themselves.
filemap_xip uses this in a subsequent patch.
Signed-off-by: Nick Piggin <npiggin@suse.de>
Cc: Jared Hulbert <jaredeh@gmail.com>
Cc: Carsten Otte <cotte@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index ba86ddaa2bb8..bc0ad24cf8c0 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -1152,6 +1152,8 @@ int remap_pfn_range(struct vm_area_struct *, unsigned long addr, | |||
1152 | int vm_insert_page(struct vm_area_struct *, unsigned long addr, struct page *); | 1152 | int vm_insert_page(struct vm_area_struct *, unsigned long addr, struct page *); |
1153 | int vm_insert_pfn(struct vm_area_struct *vma, unsigned long addr, | 1153 | int vm_insert_pfn(struct vm_area_struct *vma, unsigned long addr, |
1154 | unsigned long pfn); | 1154 | unsigned long pfn); |
1155 | int vm_insert_mixed(struct vm_area_struct *vma, unsigned long addr, | ||
1156 | unsigned long pfn); | ||
1155 | 1157 | ||
1156 | struct page *follow_page(struct vm_area_struct *, unsigned long address, | 1158 | struct page *follow_page(struct vm_area_struct *, unsigned long address, |
1157 | unsigned int foll_flags); | 1159 | unsigned int foll_flags); |