[lc-checkins] CVS: linux/include/linux comp_cache.h,1.53,1.54
Status: Beta
Brought to you by:
nitin_sf
|
From: Rodrigo S. de C. <rc...@us...> - 2002-02-26 16:01:14
|
Update of /cvsroot/linuxcompressed/linux/include/linux
In directory usw-pr-cvs1:/tmp/cvs-serv24168/include/linux
Modified Files:
comp_cache.h
Log Message:
- Fixed annoying bug in the do_generic_file_read(). Wrong variable was sent
as parameter to lookup_comp_cache() which would not find or return the wrong
page.
- Fixed bug in truncate_inode_pages() to correctly truncate compressed
pages.
- Minor fixes regarding setting and clearing CompCache bit.
Index: comp_cache.h
===================================================================
RCS file: /cvsroot/linuxcompressed/linux/include/linux/comp_cache.h,v
retrieving revision 1.53
retrieving revision 1.54
diff -C2 -r1.53 -r1.54
*** comp_cache.h 25 Feb 2002 19:34:40 -0000 1.53
--- comp_cache.h 26 Feb 2002 16:01:10 -0000 1.54
***************
*** 2,6 ****
* linux/mm/comp_cache.h
*
! * Time-stamp: <2002-02-25 09:43:46 rcastro>
*
* Linux Virtual Memory Compressed Cache
--- 2,6 ----
* linux/mm/comp_cache.h
*
! * Time-stamp: <2002-02-25 17:18:28 rcastro>
*
* Linux Virtual Memory Compressed Cache
***************
*** 289,292 ****
--- 289,293 ----
int lookup_comp_cache(struct address_space *, unsigned long, struct page *);
void invalidate_comp_page(struct address_space *, unsigned long, struct page *);
+ void invalidate_comp_pages(struct address_space *);
void truncate_comp_pages(struct address_space *, unsigned long, unsigned);
void lookup_all_comp_pages(struct address_space *);
***************
*** 294,297 ****
--- 295,299 ----
static inline int lookup_comp_cache(swp_entry_t entry) { return 0; }
static inline void invalidate_comp_page(struct address_space * mapping, unsigned long offset, struct page * page) { };
+ 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 lookup_all_comp_pages(struct address_space * mapping) { };
|