[lc-checkins] CVS: linux/include/linux comp_cache.h,1.73,1.74
Status: Beta
Brought to you by:
nitin_sf
|
From: Rodrigo S. de C. <rc...@us...> - 2002-06-13 20:19:03
|
Update of /cvsroot/linuxcompressed/linux/include/linux
In directory usw-pr-cvs1:/tmp/cvs-serv8112/include/linux
Modified Files:
comp_cache.h
Log Message:
- read_comp_cache() has an "access" parameter to know if it should
account that access or not. If it is to account it, it will move the
fragment to the back of LRU list. That implied that we had to add some
parameters to some functions in filemap.c. It's there for testing
purposes and might be removed.
- account all PageMappedCompCache pages and not only page->buffers in
buffers column in /proc/comp_cache_hist
- added code that will enable to store all page cache pages without
compressing them. It's disable by an "#if 0".
- added code that will remove the fragment from compressed cache
whenever accessed. Disable by an "#if 0" too.
- tried to make a more robust writeout system using priority idea
present in vmscan.c. Now we are not supposed to panic because we
couldn't free a swap buffer page.
- fixed a potential bug when trying to free buffers in
writeout_fragments(). The fragment wasn't removed from lru queue
before being submitted to IO.
- added code that will support write out of all fragments in a certain
page. Also disabled by an "#if 0".
Index: comp_cache.h
===================================================================
RCS file: /cvsroot/linuxcompressed/linux/include/linux/comp_cache.h,v
retrieving revision 1.73
retrieving revision 1.74
diff -C2 -r1.73 -r1.74
*** comp_cache.h 11 Jun 2002 13:20:48 -0000 1.73
--- comp_cache.h 13 Jun 2002 20:18:29 -0000 1.74
***************
*** 2,6 ****
* linux/mm/comp_cache.h
*
! * Time-stamp: <2002-06-10 15:02:12 rcastro>
*
* Linux Virtual Memory Compressed Cache
--- 2,6 ----
* linux/mm/comp_cache.h
*
! * Time-stamp: <2002-06-13 10:36:18 rcastro>
*
* Linux Virtual Memory Compressed Cache
***************
*** 36,40 ****
#define NUM_VSWAP_ENTRIES (3 * num_comp_pages)
! extern unsigned long num_comp_pages, num_swapper_fragments, new_num_comp_pages, max_num_comp_pages, zone_num_comp_pages;
struct pte_list {
--- 36,40 ----
#define NUM_VSWAP_ENTRIES (3 * num_comp_pages)
! extern unsigned long num_comp_pages, num_fragments, num_swapper_fragments, new_num_comp_pages, max_num_comp_pages, zone_num_comp_pages;
struct pte_list {
***************
*** 317,321 ****
extern int FASTCALL(flush_comp_cache(struct page *));
! int read_comp_cache(struct address_space *, unsigned long, struct page *);
int invalidate_comp_cache(struct address_space *, unsigned long);
void invalidate_comp_pages(struct address_space *);
--- 317,321 ----
extern int FASTCALL(flush_comp_cache(struct page *));
! int read_comp_cache(struct address_space *, unsigned long, struct page *, int);
int invalidate_comp_cache(struct address_space *, unsigned long);
void invalidate_comp_pages(struct address_space *);
***************
*** 541,544 ****
--- 541,545 ----
inline void add_fragment_to_lru_queue(comp_cache_fragment_t *);
+ inline void add_fragment_to_lru_queue_tail(comp_cache_fragment_t *);
inline void remove_fragment_from_lru_queue(comp_cache_fragment_t *);
|