summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/mm.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index e173cd297d88..d2948af126ca 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1518,15 +1518,17 @@ unsigned long ra_submit(struct file_ra_state *ra,
1518 struct address_space *mapping, 1518 struct address_space *mapping,
1519 struct file *filp); 1519 struct file *filp);
1520 1520
1521/* Do stack extension */ 1521/* Generic expand stack which grows the stack according to GROWS{UP,DOWN} */
1522extern int expand_stack(struct vm_area_struct *vma, unsigned long address); 1522extern int expand_stack(struct vm_area_struct *vma, unsigned long address);
1523
1524/* CONFIG_STACK_GROWSUP still needs to to grow downwards at some places */
1525extern int expand_downwards(struct vm_area_struct *vma,
1526 unsigned long address);
1523#if VM_GROWSUP 1527#if VM_GROWSUP
1524extern int expand_upwards(struct vm_area_struct *vma, unsigned long address); 1528extern int expand_upwards(struct vm_area_struct *vma, unsigned long address);
1525#else 1529#else
1526 #define expand_upwards(vma, address) do { } while (0) 1530 #define expand_upwards(vma, address) do { } while (0)
1527#endif 1531#endif
1528extern int expand_stack_downwards(struct vm_area_struct *vma,
1529 unsigned long address);
1530 1532
1531/* Look up the first VMA which satisfies addr < vm_end, NULL if none. */ 1533/* Look up the first VMA which satisfies addr < vm_end, NULL if none. */
1532extern struct vm_area_struct * find_vma(struct mm_struct * mm, unsigned long addr); 1534extern struct vm_area_struct * find_vma(struct mm_struct * mm, unsigned long addr);