[lc-checkins] CVS: linux/include/linux comp_cache.h,1.95,1.96
Status: Beta
Brought to you by:
nitin_sf
From: Rodrigo S. de C. <rc...@us...> - 2002-07-18 21:31:12
|
Update of /cvsroot/linuxcompressed/linux/include/linux In directory usw-pr-cvs1:/tmp/cvs-serv20667/include/linux Modified Files: comp_cache.h Log Message: Feature o Make resizing (manual, not on demand) work with a preempted kernel. First and very crude implementation. So far, swap cache support and manual resizing are working in the tests that have been run. Cleanups o Cleanups in virtual_swap_free() (now __virtual_swap_free()) function. Index: comp_cache.h =================================================================== RCS file: /cvsroot/linuxcompressed/linux/include/linux/comp_cache.h,v retrieving revision 1.95 retrieving revision 1.96 diff -C2 -r1.95 -r1.96 *** comp_cache.h 18 Jul 2002 13:32:50 -0000 1.95 --- comp_cache.h 18 Jul 2002 21:31:08 -0000 1.96 *************** *** 2,6 **** * linux/mm/comp_cache.h * ! * Time-stamp: <2002-07-18 09:47:44 rcastro> * * Linux Virtual Memory Compressed Cache --- 2,6 ---- * linux/mm/comp_cache.h * ! * Time-stamp: <2002-07-18 15:45:44 rcastro> * * Linux Virtual Memory Compressed Cache *************** *** 324,327 **** --- 324,328 ---- int read_comp_cache(struct address_space *, unsigned long, struct page *); + int __invalidate_comp_cache(struct address_space *, unsigned long); int invalidate_comp_cache(struct address_space *, unsigned long); void invalidate_comp_pages(struct address_space *); *************** *** 406,409 **** --- 407,412 ---- #define VSWAP_ALLOCATING ((struct page *) 0xffffffff) + extern spinlock_t virtual_swap_list; + #ifdef CONFIG_COMP_CACHE #define vswap_info_struct(p) (p == &swap_info[COMP_CACHE_SWP_TYPE]) *************** *** 412,415 **** --- 415,419 ---- int virtual_swap_duplicate(swp_entry_t); + int __virtual_swap_free(unsigned long); int virtual_swap_free(unsigned long); swp_entry_t get_virtual_swap_page(void); *************** *** 427,431 **** int vswap_alloc_and_init(struct vswap_address **, unsigned long); - extern spinlock_t virtual_swap_list; #else --- 431,434 ---- *************** *** 451,455 **** /* free.c */ void comp_cache_free_locked(struct comp_cache_fragment *); ! inline void comp_cache_free(struct comp_cache_fragment *); #ifdef CONFIG_COMP_CACHE --- 454,458 ---- /* free.c */ void comp_cache_free_locked(struct comp_cache_fragment *); ! void comp_cache_free(struct comp_cache_fragment *); #ifdef CONFIG_COMP_CACHE |