--- 2.4.19pre7aa3/include/linux/pagemap.h.~1~ Sat Apr 27 00:51:32 2002 +++ 2.4.19pre7aa3/include/linux/pagemap.h Mon Apr 29 14:24:03 2002 @@ -99,6 +99,8 @@ ___wait_on_page(page); } +extern void wake_up_page(struct page *); + extern struct page * grab_cache_page (struct address_space *, unsigned long); extern struct page * grab_cache_page_nowait (struct address_space *, unsigned long); --- 2.4.19pre7aa3/mm/filemap.c.~1~ Sat Apr 27 00:49:17 2002 +++ 2.4.19pre7aa3/mm/filemap.c Mon Apr 29 14:23:36 2002 @@ -834,6 +834,12 @@ remove_wait_queue(waitqueue, &wait); } +void wake_up_page(struct page *page) +{ + wake_up(page_waitqueue(page)); +} +EXPORT_SYMBOL(wake_up_page); + /* * Get an exclusive lock on the page, optimistically * assuming it's not locked..