[Pvfs2-cvs] commit by robl in pvfs2-1/src/kernel/linux-2.6: file.c

CVS commit program cvs at parl.clemson.edu
Fri Aug 31 17:17:26 EDT 2007


Update of /projects/cvsroot/pvfs2-1/src/kernel/linux-2.6
In directory parlweb1:/tmp/cvs-serv4865/src/kernel/linux-2.6

Modified Files:
	file.c 
Log Message:
somewhere between 2.6.6 and 2.6.20 the 'struct page' changed the 'count' member
to '_count'


Index: file.c
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/kernel/linux-2.6/file.c,v
diff -u -w -p -u -r1.139 -r1.140
--- file.c	31 Aug 2007 20:48:58 -0000	1.139
+++ file.c	31 Aug 2007 21:17:26 -0000	1.140
@@ -701,6 +701,10 @@ static long estimate_max_iovecs(const st
     return max_nr_iovecs;
 }
 
+#ifdef HAVE_OBSOLETE_STRUCT_PAGE_COUNT_NO_UNDERSCORE
+#define pg_ref_count(pg) atomic_read(&(pg)->count)
+#endif
+
 #define pg_ref_count(pg) atomic_read(&(pg)->_count)
 /*
  * Cleaning up pages in the cache involves dropping the reference count



More information about the Pvfs2-cvs mailing list