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

Next file: linux/include/linux/netrom.h
Previous file: linux/include/linux/elf.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.11/linux/include/linux/mm.h linux/include/linux/mm.h
@@ -116,6 +116,9 @@
  * is used for linear searches (eg. clock algorithm scans). 
  */
 typedef struct page {
+	/* these must be first (free area handling) */
+	struct page *next;
+	struct page *prev;
 	struct inode *inode;
 	unsigned long offset;
 	struct page *next_hash;
@@ -124,8 +127,6 @@
 	unsigned dirty:16,
 		 age:8;
 	struct wait_queue *wait;
-	struct page *next;
-	struct page *prev;
 	struct page *prev_hash;
 	struct buffer_head * buffers;
 	unsigned long swap_unlock_entry;
@@ -247,6 +248,7 @@
 
 #define free_page(addr) free_pages((addr),0)
 extern void free_pages(unsigned long addr, unsigned long order);
+extern void __free_page(struct page *);
 
 extern void show_free_areas(void);
 extern unsigned long put_dirty_page(struct task_struct * tsk,unsigned long page,

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