[lc-checkins] CVS: linux/mm vmscan.c,1.34,1.35
Status: Beta
Brought to you by:
nitin_sf
|
From: Rodrigo S. de C. <rc...@us...> - 2002-06-18 13:39:37
|
Update of /cvsroot/linuxcompressed/linux/mm In directory usw-pr-cvs1:/tmp/cvs-serv27511/mm Modified Files: vmscan.c Log Message: Bug fix: o Fixed a bug that would freeze a system where the compressed cache is not enabled. The return value of compress_clean_page() was wrong, making the shrink_cache() function to not free any page. The return value was fixed, but to avoid overheads when compressed cache is disabled, that part of the code in vmscan.c now also has "#ifdef CONFIG_COMP_CACHE". Index: vmscan.c =================================================================== RCS file: /cvsroot/linuxcompressed/linux/mm/vmscan.c,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -r1.34 -r1.35 *** vmscan.c 11 Jun 2002 13:20:49 -0000 1.34 --- vmscan.c 18 Jun 2002 13:39:33 -0000 1.35 *************** *** 518,521 **** --- 518,522 ---- } + #ifdef CONFIG_COMP_CACHE /*** * compress the page if it's a clean page that has not *************** *** 536,539 **** --- 537,541 ---- spin_lock(&pagemap_lru_lock); } + #endif /* point of no return */ |