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
- Lines: 19
- Date:
Mon Jul 13 13:47:40 1998
- Orig file:
v2.0.34/linux/mm/page_alloc.c
- Orig date:
Tue Mar 10 13:19:09 1998
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