Update of /cvsroot/linuxcompressed/linux/mm/comp_cache
In directory usw-pr-cvs1:/tmp/cvs-serv20377/mm/comp_cache
Modified Files:
main.c
Log Message:
- Update to 2.4.18
- Some minor changes to make the code compile when CONFIG_COMP_CACHE is
disabled
Index: main.c
===================================================================
RCS file: /cvsroot/linuxcompressed/linux/mm/comp_cache/main.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -r1.26 -r1.27
*** main.c 25 Feb 2002 19:34:41 -0000 1.26
--- main.c 26 Feb 2002 20:59:01 -0000 1.27
***************
*** 2,6 ****
* linux/mm/comp_cache/main.c
*
! * Time-stamp: <2002-02-25 15:23:44 rcastro>
*
* Linux Virtual Memory Compressed Cache
--- 2,6 ----
* linux/mm/comp_cache/main.c
*
! * Time-stamp: <2002-02-26 13:37:55 rcastro>
*
* Linux Virtual Memory Compressed Cache
***************
*** 90,93 ****
--- 90,109 ----
return ((comp_page_stats.comp_size <= PAGE_SIZE)?comp_page_stats.comp_size:PAGE_SIZE);
}
+
+ inline int
+ compress_clean_page(struct page * page, unsigned int gfp_mask)
+ {
+ if (PageCompCache(page))
+ return 0;
+
+ page_cache_get(page);
+ spin_unlock(&pagecache_lock);
+
+ compress_page(page, 0, gfp_mask);
+ page_cache_release(page);
+
+ spin_lock(&pagemap_lru_lock);
+ return 1;
+ }
int
|