[lc-checkins] CVS: linux/include/linux swap.h,1.18,1.19
Status: Beta
Brought to you by:
nitin_sf
From: Rodrigo S. de C. <rc...@us...> - 2002-11-29 21:23:05
|
Update of /cvsroot/linuxcompressed/linux/include/linux In directory sc8-pr-cvs1:/tmp/cvs-serv31487/include/linux Modified Files: swap.h Log Message: Cleanups o New ifdefs to avoid compiling code for clean page adaptability when it is disabled. o Some whitespace changes to make the patch a little shorter. o Removed variable not used in swapout.c Bug fixes o Fixed a bug in comp_cache_fix_watermarks() introduce lately. This bug would set the watermark to a huge number (due to negative values), what would end up in a huge increase in the memory pressure. Fortunately, that is only noticeable when the system has a low amount of memory. o vswap_num_reserved_entries variable was used without being initialized. Depending on the scenario, it could have bogus value which would screw up compressed cache behaviour. o The total free space hash was set in function of the free_space_interval. A potential bug if the total_free_space_interval is set to a value different from the one in free_space_interval. o If the compressed cache cannot allocate the minimum number of pages in the boot process, the shrinkage code could end up annihilate compressed cache because it assumes the compressed cache will always have the number of pages equal or greater than the minimum size. Index: swap.h =================================================================== RCS file: /cvsroot/linuxcompressed/linux/include/linux/swap.h,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -r1.18 -r1.19 *** swap.h 22 Nov 2002 16:01:34 -0000 1.18 --- swap.h 29 Nov 2002 21:23:02 -0000 1.19 *************** *** 179,183 **** extern swp_entry_t get_swap_page(void); extern void get_swaphandle_info(swp_entry_t, unsigned long *, kdev_t *, ! struct inode **); extern int swap_duplicate(swp_entry_t); extern int swap_count(struct page *); --- 179,183 ---- extern swp_entry_t get_swap_page(void); extern void get_swaphandle_info(swp_entry_t, unsigned long *, kdev_t *, ! struct inode **); extern int swap_duplicate(swp_entry_t); extern int swap_count(struct page *); |