[lc-checkins] CVS: linux/mm filemap.c,1.38,1.39
Status: Beta
Brought to you by:
nitin_sf
From: Rodrigo S. de C. <rc...@us...> - 2002-08-01 14:52:29
|
Update of /cvsroot/linuxcompressed/linux/mm In directory usw-pr-cvs1:/tmp/cvs-serv6713/mm Modified Files: filemap.c Log Message: Bug fixes o We were only accounting writeout statistics if the writepage() returned one, but returning zero doesn't mean it has not been written tough (swap_writepage() always returns zero). So, it ended up that we didn't account any writeout page because most writepage() functions return zero. Now we account every written page, no matter the return value. o Fixed CompCache bit assignment, so now we don't have to search compressed cache for every page that gets compressed. Given that, a PageCompCache(page) does not mean it has a fragment in compressed cache, but a !PageCompCache(page) surely doesn't have a fragment. That improves performance. Cleanups o Don't printk initial compressed cache size, only the maximum size o comp_data defined as static in proc.c Index: filemap.c =================================================================== RCS file: /cvsroot/linuxcompressed/linux/mm/filemap.c,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -r1.38 -r1.39 *** filemap.c 31 Jul 2002 20:48:59 -0000 1.38 --- filemap.c 1 Aug 2002 14:52:25 -0000 1.39 *************** *** 163,168 **** mark_inode_dirty_pages(mapping->host); #ifdef CONFIG_COMP_CACHE ! if (PageTestandClearCompCache(page)) ! invalidate_comp_cache(mapping, page->index); #endif } --- 163,167 ---- mark_inode_dirty_pages(mapping->host); #ifdef CONFIG_COMP_CACHE ! flush_comp_cache(page); #endif } |