Update of /cvsroot/linuxcompressed/linux/mm
In directory usw-pr-cvs1:/tmp/cvs-serv12868/mm
Modified Files:
page_alloc.c
Log Message:
Bug fixes
o Fixed compilation error when compressed cache is disabled
o Fixed bug that would store pages with buffers even if the page cache
support were disabled
o Fixed bug that would not account the comp pages with zero fragments in
/proc/comp_cache_hist. They were displayed in the total column, but not in
the zero fragments column.
o Fixed bug in comp_cache_fix_watermarks() that would set
zone_num_comp_pages to a bogus value of num_comp_page.
Other
o Added code to remove pages with buffers stored in the compressed
cache from LRU lists. These codes are within "#if 0" clauses.
o Allocate vswap table only when it is first used.
o Reduce compressed cache minimum size from 10 to 5%.
Index: page_alloc.c
===================================================================
RCS file: /cvsroot/linuxcompressed/linux/mm/page_alloc.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** page_alloc.c 11 Jun 2002 13:20:49 -0000 1.19
--- page_alloc.c 18 Jun 2002 12:47:21 -0000 1.20
***************
*** 637,640 ****
--- 637,642 ----
zone_t *zone = contig_page_data.node_zones + j;
+ zone_num_comp_pages = num_comp_pages;
+
if (num_comp_pages > zone->size)
num_comp_pages = zone->size;
***************
*** 653,658 ****
zone->pages_low = mask*2;
zone->pages_high = mask*3;
-
- zone_num_comp_pages = num_comp_pages;
}
--- 655,658 ----
|