[lc-checkins] CVS: linux/include/linux comp_cache.h,1.78,1.79
Status: Beta
Brought to you by:
nitin_sf
From: Rodrigo S. de C. <rc...@us...> - 2002-06-19 18:10:25
|
Update of /cvsroot/linuxcompressed/linux/include/linux In directory usw-pr-cvs1:/tmp/cvs-serv28892/include/linux Modified Files: comp_cache.h Log Message: Bug fixes o Fixed potential bug in get_comp_cache_page() when adding a fragment to an empty comp page o Fixed a bug that wouldn't allocate some vswap entries if they couldn't be allocated for the first time (in comp_cache_vswap_alloc()). It means that if we allocated only one third of vswap entries, it would oom kill some process, but wouldn't try to allocate the rest of vswap entries later. This bug usually didn't happen before since vswap data structures were allocated at the boot time. Other o Now we don't try to refill swap buffer with many pages in get_comp_cache_page(), but only one. That was done to the scenario where we could refill with few pages, but not the amount we previously set (SWAP_CLUSTER_MAX >> 2), so we end up writing out fragments. Index: comp_cache.h =================================================================== RCS file: /cvsroot/linuxcompressed/linux/include/linux/comp_cache.h,v retrieving revision 1.78 retrieving revision 1.79 diff -C2 -r1.78 -r1.79 *** comp_cache.h 19 Jun 2002 12:18:43 -0000 1.78 --- comp_cache.h 19 Jun 2002 18:10:20 -0000 1.79 *************** *** 2,6 **** * linux/mm/comp_cache.h * ! * Time-stamp: <2002-06-19 08:59:31 rcastro> * * Linux Virtual Memory Compressed Cache --- 2,6 ---- * linux/mm/comp_cache.h * ! * Time-stamp: <2002-06-19 14:41:32 rcastro> * * Linux Virtual Memory Compressed Cache *************** *** 427,431 **** extern int FASTCALL(free_pte_list(struct pte_list *, unsigned long)); ! void vswap_alloc_and_init(struct vswap_address **, unsigned long); #else --- 427,431 ---- extern int FASTCALL(free_pte_list(struct pte_list *, unsigned long)); ! int vswap_alloc_and_init(struct vswap_address **, unsigned long); #else |