git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
put initialization code into init() function
[linux-2.6.git]
/
mm
/
nommu.c
diff --git
a/mm/nommu.c
b/mm/nommu.c
index
1a8051e
..
d4d25f8
100644
(file)
--- a/
mm/nommu.c
+++ b/
mm/nommu.c
@@
-27,6
+27,8
@@
#include <linux/personality.h>
#include <linux/security.h>
#include <linux/syscalls.h>
#include <linux/personality.h>
#include <linux/security.h>
#include <linux/syscalls.h>
+#include <linux/vs_base.h>
+#include <linux/vs_memory.h>
#include <asm/uaccess.h>
#include <asm/tlb.h>
#include <asm/uaccess.h>
#include <asm/tlb.h>
@@
-1070,6
+1072,7
@@
int remap_pfn_range(struct vm_area_struct *vma, unsigned long from,
vma->vm_start = vma->vm_pgoff << PAGE_SHIFT;
return 0;
}
vma->vm_start = vma->vm_pgoff << PAGE_SHIFT;
return 0;
}
+EXPORT_SYMBOL(remap_pfn_range);
void swap_unplug_io_fn(struct backing_dev_info *bdi, struct page *page)
{
void swap_unplug_io_fn(struct backing_dev_info *bdi, struct page *page)
{
@@
-1090,6
+1093,7
@@
void unmap_mapping_range(struct address_space *mapping,
int even_cows)
{
}
int even_cows)
{
}
+EXPORT_SYMBOL(unmap_mapping_range);
/*
* Check that a process has enough memory to allocate a new virtual
/*
* Check that a process has enough memory to allocate a new virtual
@@
-1122,7
+1126,7
@@
int __vm_enough_memory(long pages, int cap_sys_admin)
if (sysctl_overcommit_memory == OVERCOMMIT_GUESS) {
unsigned long n;
if (sysctl_overcommit_memory == OVERCOMMIT_GUESS) {
unsigned long n;
- free = g
et_page_cache_size(
);
+ free = g
lobal_page_state(NR_FILE_PAGES
);
free += nr_swap_pages;
/*
free += nr_swap_pages;
/*