[lc-checkins] CVS: linux/include/linux comp_cache.h,1.56,1.57 fs.h,1.3,1.4
Status: Beta
Brought to you by:
nitin_sf
|
From: Rodrigo S. de C. <rc...@us...> - 2002-02-28 00:37:45
|
Update of /cvsroot/linuxcompressed/linux/include/linux
In directory usw-pr-cvs1:/tmp/cvs-serv26862/include/linux
Modified Files:
comp_cache.h fs.h
Log Message:
- Cleanups in comp_cache/main.c
- Fix to make filemap_fdatawait() to wait for compressed pages being written
out.
Index: comp_cache.h
===================================================================
RCS file: /cvsroot/linuxcompressed/linux/include/linux/comp_cache.h,v
retrieving revision 1.56
retrieving revision 1.57
diff -C2 -r1.56 -r1.57
*** comp_cache.h 27 Feb 2002 14:16:52 -0000 1.56
--- comp_cache.h 27 Feb 2002 19:58:51 -0000 1.57
***************
*** 2,6 ****
* linux/mm/comp_cache.h
*
! * Time-stamp: <2002-02-26 19:25:16 rcastro>
*
* Linux Virtual Memory Compressed Cache
--- 2,6 ----
* linux/mm/comp_cache.h
*
! * Time-stamp: <2002-02-27 16:31:20 rcastro>
*
* Linux Virtual Memory Compressed Cache
***************
*** 292,297 ****
--- 292,299 ----
void invalidate_comp_pages(struct address_space *);
void truncate_comp_pages(struct address_space *, unsigned long, unsigned);
+ void wait_all_comp_pages(struct address_space *);
void lookup_all_comp_pages(struct address_space *);
#define there_are_dirty_comp_pages(mapping) (!list_empty(&(mapping)->dirty_comp_pages))
+ #define there_are_locked_comp_pages(mapping) (!list_empty(&(mapping)->locked_comp_pages))
#else
static inline int lookup_comp_cache(struct address_space * mapping, unsigned long offset, struct page * page) { return -ENOENT; }
***************
*** 300,305 ****
--- 302,309 ----
static inline void invalidate_comp_pages(struct address_space * mapping) { };
static inline void truncate_comp_pages(struct address_space * mapping, unsigned long start, unsigned partial) { };
+ static inline void wait_all_comp_pages(struct address_space * mapping) { };
static inline void lookup_all_comp_pages(struct address_space * mapping) { };
#define there_are_dirty_comp_pages(mapping) 0
+ #define there_are_locked_comp_pages(mapping) 0
#endif
Index: fs.h
===================================================================
RCS file: /cvsroot/linuxcompressed/linux/include/linux/fs.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** fs.h 26 Feb 2002 20:59:01 -0000 1.3
--- fs.h 27 Feb 2002 19:58:51 -0000 1.4
***************
*** 398,406 ****
struct list_head clean_pages; /* list of clean pages */
struct list_head dirty_pages; /* list of dirty pages */
#ifdef CONFIG_COMP_CACHE
struct list_head clean_comp_pages; /* list of clean compressed pages */
struct list_head dirty_comp_pages; /* list of dirty compressed pages */
#endif
- struct list_head locked_pages; /* list of locked pages */
unsigned long nrpages; /* number of total pages */
struct address_space_operations *a_ops; /* methods */
--- 398,407 ----
struct list_head clean_pages; /* list of clean pages */
struct list_head dirty_pages; /* list of dirty pages */
+ struct list_head locked_pages; /* list of locked pages */
#ifdef CONFIG_COMP_CACHE
struct list_head clean_comp_pages; /* list of clean compressed pages */
struct list_head dirty_comp_pages; /* list of dirty compressed pages */
+ struct list_head locked_comp_pages; /* list of locked compressed pages */
#endif
unsigned long nrpages; /* number of total pages */
struct address_space_operations *a_ops; /* methods */
|