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

Next file: linux/include/linux/pagemap.h
Previous file: linux/include/linux/kernel.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.126/linux/include/linux/mm.h linux/include/linux/mm.h
@@ -254,12 +254,6 @@
 
 /* memory.c & swap.c*/
 
-/*
- * Decide if we should try to do some swapout..
- */
-extern int free_memory_available(void);
-extern struct wait_queue * kswapd_wait;
-
 #define free_page(addr) free_pages((addr),0)
 extern void FASTCALL(free_pages(unsigned long addr, unsigned long order));
 extern void FASTCALL(__free_page(struct page *));
@@ -278,7 +272,7 @@
 extern int zeromap_page_range(unsigned long from, unsigned long size, pgprot_t prot);
 
 extern void vmtruncate(struct inode * inode, unsigned long offset);
-extern void handle_mm_fault(struct task_struct *tsk,struct vm_area_struct *vma, unsigned long address, int write_access);
+extern int handle_mm_fault(struct task_struct *tsk,struct vm_area_struct *vma, unsigned long address, int write_access);
 extern void make_pages_present(unsigned long addr, unsigned long end);
 
 extern int pgt_cache_water[2];
@@ -330,6 +324,11 @@
 
 #define GFP_DMA		__GFP_DMA
 
+/*
+ * Decide if we should try to do some swapout..
+ */
+extern int free_memory_available(void);
+			
 /* 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)
@@ -378,11 +377,6 @@
 	if (vma && end_addr <= vma->vm_start)
 		vma = NULL;
 	return vma;
-}
-
-extern __inline__ void kswapd_wakeup(void)
-{
-	wake_up(&kswapd_wait);
 }
 
 #define buffer_under_min()	((buffermem >> PAGE_SHIFT) * 100 < \

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov