[Pvfs2-cvs] commit by pw in pvfs2/maint/config: kernel.m4

CVS commit program cvs at parl.clemson.edu
Fri Jan 11 10:00:08 EST 2008


Update of /projects/cvsroot/pvfs2/maint/config
In directory parlweb1:/tmp/cvs-serv31655/maint/config

Modified Files:
	kernel.m4 
Log Message:
Accommodate new rwlock type in struct address_space.  From murali with
fixes.


Index: kernel.m4
===================================================================
RCS file: /projects/cvsroot/pvfs2/maint/config/kernel.m4,v
diff -u -p -p -u -r1.47 -r1.48
--- kernel.m4	7 Dec 2007 23:05:56 -0000	1.47
+++ kernel.m4	11 Jan 2008 15:00:08 -0000	1.48
@@ -858,7 +858,20 @@ AC_DEFUN([AX_KERNEL_FEATURES],
 		spin_lock(&as.page_lock);
 	],
 	AC_MSG_RESULT(yes)
-	AC_DEFINE(HAVE_SPIN_LOCK_ADDR_SPACE_STRUCT, 1, [Define if kernel address_space struct has a spin_lock instead of rw_lock]),
+	AC_DEFINE(HAVE_SPIN_LOCK_PAGE_ADDR_SPACE_STRUCT, 1, [Define if kernel address_space struct has a spin_lock member named page_lock instead of rw_lock]),
+	AC_MSG_RESULT(no)
+	)
+
+        AC_MSG_CHECKING(if kernel address_space struct has a rwlock_t field named tree_lock)
+	AC_TRY_COMPILE([
+		#define __KERNEL__
+		#include <linux/fs.h>
+	], [
+		struct address_space as;
+		read_lock(&as.tree_lock);
+	],
+	AC_MSG_RESULT(yes)
+	AC_DEFINE(HAVE_SPIN_LOCK_TREE_ADDR_SPACE_STRUCT, 1, [Define if kernel address_space struct has a spin_lock member named tree_lock instead of rw_lock]),
 	AC_MSG_RESULT(no)
 	)
 



More information about the Pvfs2-cvs mailing list