summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2002-10-30 18:34:04 -0800
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-10-30 18:34:04 -0800
commitd38c229c53ee983627366352b6039a50ee89613a (patch)
tree2952bb35ad505ca397819faedfcaa9b69fd97f56 /include/linux
parente66c772cdaf98470ba672d07da146209af53893f (diff)
[PATCH] hugetlbpages: factor out some code for hugetlbfs
In order for hugetlbfs to operate, prefaulting the vma at mmap()-time while simultaneously instantiating and performing lookups on its ratcache entries is needed as an isolated operation. This is implemented as part of a different function within hugetlbpage.c that ties it to inode and key lookup and allocation. The following patch simply moves the code already present into its own function, calls it, and makes it available for hugetlbfs to use.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index d9d2f20732d4..473366e6318e 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -381,7 +381,7 @@ int __set_page_dirty_nobuffers(struct page *page);
extern int copy_hugetlb_page_range(struct mm_struct *, struct mm_struct *, struct vm_area_struct *);
extern int follow_hugetlb_page(struct mm_struct *, struct vm_area_struct *, struct page **, struct vm_area_struct **, unsigned long *, int *, int);
extern int free_hugepages(struct vm_area_struct *);
-
+extern int hugetlb_prefault(struct address_space *, struct vm_area_struct *);
#else
#define is_vm_hugetlb_page(vma) (0)
#define follow_hugetlb_page(mm, vma, pages, vmas, start, len, i) (0)