Subject: afs/include/linux cachefs.h,1.12,1.13

From: [email-masked]
Date: Mon, 09 Jun 2003 14:39:15 +0100

Update of /home/cvs/afs/include/linux
In directory phoenix.infradead.org:/tmp/cvs-serv8674/include/linux

Modified Files:
	cachefs.h 
Log Message:
fix some things to make caching work properly

Index: cachefs.h
===================================================================
RCS file: /home/cvs/afs/include/linux/cachefs.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- cachefs.h	23 May 2003 12:59:21 -0000	1.12
+++ cachefs.h	9 Jun 2003 13:39:12 -0000	1.13
@@ -29,7 +29,10 @@
 	CACHEFS_MATCH_SUCCESS_DELETE,	/* successful match, entry requires deletion */
 } cachefs_match_val_t;
 
-typedef void (*cachefs_rw_complete_t)(void *cookie_data, struct page *page, void *data);
+typedef void (*cachefs_rw_complete_t)(void *cookie_data,
+				      struct page *page,
+				      void *data,
+				      int error);
 
 /*****************************************************************************/
 /*
@@ -236,12 +239,18 @@
 /*
  * convenience routines for mapping page->private directly to a struct cachefs_page
  */
-extern int cachefs_page_get_private(struct page *page, struct cachefs_page **_page, unsigned gfp);
-
 static inline struct cachefs_page *__cachefs_page_get_private(struct page *page)
 {
 	BUG_ON(!PagePrivate(page));
 	return (struct cachefs_page *) page->private;
 }
+
+extern int cachefs_page_get_private(struct page *page,
+				    struct cachefs_page **_page,
+				    unsigned gfp);
+
+extern int cachefs_invalidatepage(struct page *page, unsigned long offset);
+
+extern int cachefs_releasepage(struct page *page, int gfp_flags);
 
 #endif /* _LINUX_CACHEFS_H */