[lc-checkins] CVS: linux/mm/comp_cache aux.c,1.13,1.14
Status: Beta
Brought to you by:
nitin_sf
From: Rodrigo S. de C. <rc...@us...> - 2002-01-17 19:24:36
|
Update of /cvsroot/linuxcompressed/linux/mm/comp_cache In directory usw-pr-cvs1:/tmp/cvs-serv28815/mm/comp_cache Modified Files: aux.c Log Message: Fix that make kernel parameter for compressed cache size work again. This bug would also make the hash table scale following the CONFIG_COMP_CACHE_SIZE no matter the number the user might have entered there (1 million, for instance). Index: aux.c =================================================================== RCS file: /cvsroot/linuxcompressed/linux/mm/comp_cache/aux.c,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** aux.c 2002/01/16 16:30:12 1.13 --- aux.c 2002/01/17 19:24:32 1.14 *************** *** 2,6 **** * linux/mm/comp_cache/aux.c * ! * Time-stamp: <2002-01-16 13:10:07 rcastro> * * Linux Virtual Memory Compressed Cache --- 2,6 ---- * linux/mm/comp_cache/aux.c * ! * Time-stamp: <2002-01-17 16:59:52 rcastro> * * Linux Virtual Memory Compressed Cache *************** *** 346,350 **** /* fragment hash table */ ! fragment_hash_size = 3* CONFIG_COMP_CACHE_SIZE * sizeof(comp_cache_fragment_t *); for (order = 0; (PAGE_SIZE << order) < fragment_hash_size; order++); --- 346,350 ---- /* fragment hash table */ ! fragment_hash_size = 3 * max_num_comp_pages * sizeof(comp_cache_fragment_t *); for (order = 0; (PAGE_SIZE << order) < fragment_hash_size; order++); |