--- linux_2_4/mm/page_io.c.orig Wed Oct 31 14:40:51 2001 +++ linux_2_4/mm/page_io.c Wed Oct 31 14:41:49 2001 @@ -41,7 +41,6 @@ kdev_t dev = 0; int block_size; struct inode *swapf = 0; - int wait = 0; if (rw == READ) { ClearPageUptodate(page); @@ -78,14 +77,6 @@ * decrementing the page count, and unlocking the page in the * swap lock map - in the IO completion handler. */ - if (!wait) - return 1; - - wait_on_page(page); - /* This shouldn't happen, but check to be sure. */ - if (page_count(page) == 0) - printk(KERN_ERR "rw_swap_page: page unused while waiting!\n"); - return 1; }