patch-2.4.0-test9 linux/mm/swap_state.c
Next file: linux/mm/vmalloc.c
Previous file: linux/mm/swap.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Sun Sep 24 12:36:46 2000
- Orig file:
v2.4.0-test8/linux/mm/swap_state.c
- Orig date:
Mon Aug 7 21:01:36 2000
diff -u --recursive --new-file v2.4.0-test8/linux/mm/swap_state.c linux/mm/swap_state.c
@@ -73,7 +73,7 @@
PAGE_BUG(page);
PageClearSwapCache(page);
- remove_inode_page(page);
+ __remove_inode_page(page);
}
/*
@@ -105,7 +105,9 @@
if (block_flushpage(page, 0))
lru_cache_del(page);
+ spin_lock(&pagecache_lock);
__delete_from_swap_cache(page);
+ spin_unlock(&pagecache_lock);
page_cache_release(page);
}
@@ -164,7 +166,7 @@
return 0;
/*
* Though the "found" page was in the swap cache an instant
- * earlier, it might have been removed by shrink_mmap etc.
+ * earlier, it might have been removed by refill_inactive etc.
* Re search ... Since find_lock_page grabs a reference on
* the page, it can not be reused for anything else, namely
* it can not be associated with another swaphandle, so it
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)