patch-1.3.69 linux/include/linux/mm.h

Next file: linux/include/linux/optcd.h
Previous file: linux/include/linux/md.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.68/linux/include/linux/mm.h linux/include/linux/mm.h
@@ -239,8 +239,8 @@
 
 #define GFP_LEVEL_MASK 0xf
 
-#define avl_empty	(struct vm_area_struct *) NULL
-
+/* vma is the first one with  address < vma->vm_end,
+ * and even  address < vma->vm_start. Have to extend vma. */
 static inline int expand_stack(struct vm_area_struct * vma, unsigned long address)
 {
 	unsigned long grow;
@@ -256,6 +256,8 @@
 		vma->vm_mm->locked_vm += grow >> PAGE_SHIFT;
 	return 0;
 }
+
+#define avl_empty	(struct vm_area_struct *) NULL
 
 /* Look up the first VMA which satisfies  addr < vm_end,  NULL if none. */
 static inline struct vm_area_struct * find_vma (struct task_struct * task, unsigned long addr)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this