[PATCH 1/2] fscache: fix gfp_t sparse annotations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Index: linux-2.6/include/linux/fscache-cache.h
===================================================================
--- linux-2.6.orig/include/linux/fscache-cache.h	2006-09-28 16:32:12.000000000 +0200
+++ linux-2.6/include/linux/fscache-cache.h	2006-09-28 16:46:59.000000000 +0200
@@ -116,7 +116,7 @@
 				  struct page *page,
 				  fscache_rw_complete_t end_io_func,
 				  void *context,
-				  unsigned long gfp);
+				  gfp_t gfp);
 
 	/* request backing blocks for a list of pages be read or allocated in
 	 * the cache */
@@ -126,27 +126,27 @@
 				   unsigned *nr_pages,
 				   fscache_rw_complete_t end_io_func,
 				   void *context,
-				   unsigned long gfp);
+				   gfp_t gfp);
 
 	/* request a backing block for a page be allocated in the cache so that
 	 * it can be written directly */
 	int (*allocate_page)(struct fscache_object *object,
 			     struct page *page,
-			     unsigned long gfp);
+			     gfp_t gfp);
 
 	/* write a page to its backing block in the cache */
 	int (*write_page)(struct fscache_object *object,
 			  struct page *page,
 			  fscache_rw_complete_t end_io_func,
 			  void *context,
-			  unsigned long gfp);
+			  gfp_t gfp);
 
 	/* write several pages to their backing blocks in the cache */
 	int (*write_pages)(struct fscache_object *object,
 			   struct pagevec *pagevec,
 			   fscache_rw_complete_t end_io_func,
 			   void *context,
-			   unsigned long gfp);
+			   gfp_t gfp);
 
 	/* detach backing block from a bunch of pages */
 	void (*uncache_pages)(struct fscache_object *object,
Index: linux-2.6/fs/cachefiles/cf-interface.c
===================================================================
--- linux-2.6.orig/fs/cachefiles/cf-interface.c	2006-09-28 16:32:12.000000000 +0200
+++ linux-2.6/fs/cachefiles/cf-interface.c	2006-09-28 16:49:52.000000000 +0200
@@ -692,7 +692,7 @@
 					 struct page *page,
 					 fscache_rw_complete_t end_io_func,
 					 void *context,
-					 unsigned long gfp)
+					 gfp_t gfp)
 {
 	struct cachefiles_object *object;
 	struct cachefiles_cache *cache;
@@ -1006,7 +1006,7 @@
 					  unsigned *nr_pages,
 					  fscache_rw_complete_t end_io_func,
 					  void *context,
-					  unsigned long gfp)
+					  gfp_t gfp)
 {
 	struct cachefiles_object *object;
 	struct cachefiles_cache *cache;
@@ -1125,7 +1125,7 @@
  */
 static int cachefiles_allocate_page(struct fscache_object *_object,
 				    struct page *page,
-				    unsigned long gfp)
+				    gfp_t gfp)
 {
 	struct cachefiles_object *object;
 	struct cachefiles_cache *cache;
@@ -1220,7 +1220,7 @@
 				 struct page *page,
 				 fscache_rw_complete_t end_io_func,
 				 void *context,
-				 unsigned long gfp)
+				 gfp_t gfp)
 {
 //	struct cachefiles_one_write *writer;
 	struct cachefiles_object *object;
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux