|
@@ -61,6 +61,7 @@ void *high_memory;
|
|
struct page *mem_map;
|
|
struct page *mem_map;
|
|
unsigned long max_mapnr;
|
|
unsigned long max_mapnr;
|
|
unsigned long num_physpages;
|
|
unsigned long num_physpages;
|
|
|
|
+unsigned long highest_memmap_pfn;
|
|
struct percpu_counter vm_committed_as;
|
|
struct percpu_counter vm_committed_as;
|
|
int sysctl_overcommit_memory = OVERCOMMIT_GUESS; /* heuristic overcommit */
|
|
int sysctl_overcommit_memory = OVERCOMMIT_GUESS; /* heuristic overcommit */
|
|
int sysctl_overcommit_ratio = 50; /* default is 50% */
|
|
int sysctl_overcommit_ratio = 50; /* default is 50% */
|
|
@@ -169,7 +170,7 @@ unsigned int kobjsize(const void *objp)
|
|
}
|
|
}
|
|
|
|
|
|
int __get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
|
|
int __get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
|
|
- unsigned long start, int nr_pages, int foll_flags,
|
|
|
|
|
|
+ unsigned long start, int nr_pages, unsigned int foll_flags,
|
|
struct page **pages, struct vm_area_struct **vmas)
|
|
struct page **pages, struct vm_area_struct **vmas)
|
|
{
|
|
{
|
|
struct vm_area_struct *vma;
|
|
struct vm_area_struct *vma;
|