[lc-checkins] CVS: linux/mm swap_state.c,1.33,1.34
Status: Beta
Brought to you by:
nitin_sf
From: Rodrigo S. de C. <rc...@us...> - 2002-07-01 21:36:54
|
Update of /cvsroot/linuxcompressed/linux/mm In directory usw-pr-cvs1:/tmp/cvs-serv18087/mm Modified Files: swap_state.c Log Message: Features o Added boot info for the max size of comp cache Bug fixes o Fixed bug introduced in lru queue handling functions cleanup. Only vswap addresses were affected. o Fixed another bug introduced in a cleanup. Again, only vswap addresses could hit this bug. Cleanups o Now we access Freed bit. This kind of fragment (Freed fragments) were referenced by !fragment->mapping. Index: swap_state.c =================================================================== RCS file: /cvsroot/linuxcompressed/linux/mm/swap_state.c,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -r1.33 -r1.34 *** swap_state.c 1 Jul 2002 17:50:37 -0000 1.33 --- swap_state.c 1 Jul 2002 21:36:50 -0000 1.34 *************** *** 239,246 **** err = add_to_swap_cache(new_page, entry); if (!err) { ! if (readahead || read_comp_cache(&swapper_space, entry.val, new_page)) rw_swap_page(READ, new_page); ! if (vswap_address(entry)) ! BUG(); return new_page; } --- 239,247 ---- err = add_to_swap_cache(new_page, entry); if (!err) { ! if (readahead || read_comp_cache(&swapper_space, entry.val, new_page)) { ! if (vswap_address(entry)) ! BUG(); rw_swap_page(READ, new_page); ! } return new_page; } |