projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mm: use helper functions for allocating and freeing vm_area structs
[linux-2.6-microblaze.git]
/
include
/
linux
/
mm.h
diff --git
a/include/linux/mm.h
b/include/linux/mm.h
index
a0fbb9f
..
de2fd86
100644
(file)
--- a/
include/linux/mm.h
+++ b/
include/linux/mm.h
@@
-155,7
+155,9
@@
extern int overcommit_kbytes_handler(struct ctl_table *, int, void __user *,
* mmap() functions).
*/
* mmap() functions).
*/
-extern struct kmem_cache *vm_area_cachep;
+struct vm_area_struct *vm_area_alloc(void);
+struct vm_area_struct *vm_area_dup(struct vm_area_struct *);
+void vm_area_free(struct vm_area_struct *);
#ifndef CONFIG_MMU
extern struct rb_root nommu_region_tree;
#ifndef CONFIG_MMU
extern struct rb_root nommu_region_tree;
@@
-2132,7
+2134,7
@@
extern int __meminit __early_pfn_to_nid(unsigned long pfn,
struct mminit_pfnnid_cache *state);
#endif
struct mminit_pfnnid_cache *state);
#endif
-#if
def CONFIG_HAVE_MEMBLOCK
+#if
defined(CONFIG_HAVE_MEMBLOCK) && !defined(CONFIG_FLAT_NODE_MEM_MAP)
void zero_resv_unavail(void);
#else
static inline void zero_resv_unavail(void) {}
void zero_resv_unavail(void);
#else
static inline void zero_resv_unavail(void) {}