Paolo Ciarrocchi reported a compilation error with 0.23 that happens
when this version is compiled with the next configuration:
CONFIG_COMP_CACHE=y
CONFIG_COMP_PAGE_CACHE=y
# CONFIG_COMP_DEMAND_RESIZE is not set
Below there is a patch that fixes it. I also replaced (as of Jul 15th,
11h33 GMT) the 0.23 patch on the web site for a new version with this
bug fixed.
--- cvs/linux/mm/comp_cache/main.c Thu Jul 11 16:05:14 2002
+++ linuxcompressed/mm/comp_cache/main.c Mon Jul 15 08:20:26 2002
@@ -1,7 +1,7 @@
/*
* linux/mm/comp_cache/main.c
*
- * Time-stamp: <2002-07-11 09:32:13 rcastro>
+ * Time-stamp: <2002-07-15 08:20:26 rcastro>
*
* Linux Virtual Memory Compressed Cache
*
@@ -215,7 +215,7 @@
{
struct comp_cache_fragment * fragment;
struct comp_cache_page * comp_page;
- unsigned short comp_size, dirty;
+ unsigned short comp_size;
struct page * old_page;
int ret = 0;
@@ -246,9 +246,7 @@
/* it's not mapped by any process, therefore we can trade this
* page with a page reserved for compressed cache use */
comp_size = PAGE_SIZE;
- dirty = 0;
-
- comp_page = get_comp_cache_page(*page, comp_size, &fragment, dirty, 0, gfp_mask, priority);
+ comp_page = get_comp_cache_page(*page, comp_size, &fragment, 0, gfp_mask, priority);
if (!comp_page)
return ret;
--
Rodrigo S. de Castro <rc...@im...>
|