patch-2.0.35 linux/mm/page_alloc.c

Next file: linux/mm/vmscan.c
Previous file: linux/kernel/sysctl.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.34/linux/mm/page_alloc.c linux/mm/page_alloc.c
@@ -27,6 +27,8 @@
 int nr_swap_pages = 0;
 int nr_free_pages = 0;
 
+extern struct wait_queue *buffer_wait;
+
 /*
  * Free area management
  *
@@ -120,6 +122,9 @@
 #undef list
 
 	restore_flags(flags);
+	if (!waitqueue_active(&buffer_wait))
+		return;
+	wake_up(&buffer_wait);
 }
 
 void __free_page(struct page *page)

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