[lc-checkins] CVS: linux/mm vmscan.c,1.39,1.40
Status: Beta
Brought to you by:
nitin_sf
From: Rodrigo S. de C. <rc...@us...> - 2002-07-11 19:08:15
|
Update of /cvsroot/linuxcompressed/linux/mm In directory usw-pr-cvs1:/tmp/cvs-serv16722/mm Modified Files: vmscan.c Log Message: Feature o New proc entry (comp_cache_frag), showing the fragmentation in the compressed cache. o Every struct comp_cache_struct is added to two hash tables: free space and total free space. The former is the old one, showing the amount of free space that can be used right away. The latter shows the total free space, ie it also accounts the fragmented space. Thus, if there is a page with total space enough for a new fragment, we compact this page and return it to be used by the new fragment. The two tables are set up the same way. o Added back feature removed in 0.23pre9 due to a bug fix. That feature would allow pages to be compressed even when the gfp_mask does not allow. Now it is back and it won't write out a page if the gfp_mask does not allow. This feature allows a better use of the compressed cache space. Cleanup o Removed dirty parameter from get_comp_cache_page(). o Better descriptions of /proc/comp_cache_{hist,frag}. Index: vmscan.c =================================================================== RCS file: /cvsroot/linuxcompressed/linux/mm/vmscan.c,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -r1.39 -r1.40 *** vmscan.c 5 Jul 2002 15:21:52 -0000 1.39 --- vmscan.c 11 Jul 2002 19:08:11 -0000 1.40 *************** *** 410,414 **** --- 410,418 ---- writepage = page->mapping->a_ops->writepage; + #ifdef CONFIG_COMP_CACHE + if (writepage) + #else if ((gfp_mask & __GFP_FS) && writepage) + #endif { ClearPageDirty(page); |