[lc-checkins] CVS: linux/include/linux comp_cache.h,1.94,1.95
Status: Beta
Brought to you by:
nitin_sf
From: Rodrigo S. de C. <rc...@us...> - 2002-07-18 13:32:57
|
Update of /cvsroot/linuxcompressed/linux/include/linux In directory usw-pr-cvs1:/tmp/cvs-serv19795/include/linux Modified Files: comp_cache.h Log Message: Bug fixes o Fixed race between comp_cache_use_address() and do_swap_page(). A pte could be unsafely changed during a page fault service. Index: comp_cache.h =================================================================== RCS file: /cvsroot/linuxcompressed/linux/include/linux/comp_cache.h,v retrieving revision 1.94 retrieving revision 1.95 diff -C2 -r1.94 -r1.95 *** comp_cache.h 17 Jul 2002 20:44:36 -0000 1.94 --- comp_cache.h 18 Jul 2002 13:32:50 -0000 1.95 *************** *** 2,6 **** * linux/mm/comp_cache.h * ! * Time-stamp: <2002-07-17 16:23:16 rcastro> * * Linux Virtual Memory Compressed Cache --- 2,6 ---- * linux/mm/comp_cache.h * ! * Time-stamp: <2002-07-18 09:47:44 rcastro> * * Linux Virtual Memory Compressed Cache *************** *** 422,439 **** extern void FASTCALL(del_swap_cache_page_vswap(struct page *)); extern int FASTCALL(free_pte_list(struct pte_list *, unsigned long)); int vswap_alloc_and_init(struct vswap_address **, unsigned long); - - static inline void get_vswap(swp_entry_t entry) { - if (!vswap_address(entry)) - return; - vswap_address[SWP_OFFSET(entry)]->fault_count++; - } - - static inline void put_vswap(swp_entry_t entry) { - if (!vswap_address(entry)) - return; - vswap_address[SWP_OFFSET(entry)]->fault_count--; - } extern spinlock_t virtual_swap_list; --- 422,429 ---- extern void FASTCALL(del_swap_cache_page_vswap(struct page *)); extern int FASTCALL(free_pte_list(struct pte_list *, unsigned long)); + extern void FASTCALL(get_vswap(swp_entry_t)); + extern void FASTCALL(put_vswap(swp_entry_t)); int vswap_alloc_and_init(struct vswap_address **, unsigned long); extern spinlock_t virtual_swap_list; |