[lc-checkins] CVS: linux/include/linux comp_cache.h,1.76,1.77
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/include/linux In directory usw-pr-cvs1:/tmp/cvs-serv27511/include/linux Modified Files: comp_cache.h 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: comp_cache.h =================================================================== RCS file: /cvsroot/linuxcompressed/linux/include/linux/comp_cache.h,v retrieving revision 1.76 retrieving revision 1.77 diff -C2 -r1.76 -r1.77 *** comp_cache.h 18 Jun 2002 13:04:11 -0000 1.76 --- comp_cache.h 18 Jun 2002 13:39:33 -0000 1.77 *************** *** 2,6 **** * linux/mm/comp_cache.h * ! * Time-stamp: <2002-06-18 09:47:23 rcastro> * * Linux Virtual Memory Compressed Cache --- 2,6 ---- * linux/mm/comp_cache.h * ! * Time-stamp: <2002-06-18 10:16:07 rcastro> * * Linux Virtual Memory Compressed Cache *************** *** 357,361 **** static inline void comp_cache_init(void) {}; static inline int compress_dirty_page(struct page * page, int (*writepage)(struct page *), unsigned int gfp_mask) { return writepage(page); } ! static inline int compress_clean_page(struct page * page, unsigned int gfp_mask) { return 0; } #define add_swap_miss() (0) --- 357,361 ---- static inline void comp_cache_init(void) {}; static inline int compress_dirty_page(struct page * page, int (*writepage)(struct page *), unsigned int gfp_mask) { return writepage(page); } ! static inline int compress_clean_page(struct page * page, unsigned int gfp_mask) { return 1; } #define add_swap_miss() (0) |