From 0067260d030e45e8b159db80e80c86c2c12390cc Mon Sep 17 00:00:00 2001 From: James Simmons Date: Sat, 17 Aug 2013 20:44:56 -0400 Subject: [PATCH] LU-2800 autoconf: update LC_INODE_PERMISION_2ARGS test inode_operations->permission has changed over time: v2.6.27..v2.6.37 had a 2 arg version v2.6.28..v3.0 had a 3 arg version v3.1.. has a 2 arg version again We move the test so it makes more sense in the list. Signed-off-by: Jeff Mahoney Signed-off-by: James Simmons Change-Id: I0e9b2a35e934f8efb3bd932303cdee859d7a6b44 Reviewed-on: http://review.whamcloud.com/5363 Tested-by: Maloo Reviewed-by: Bob Glossman Tested-by: Hudson Reviewed-by: Oleg Drokin --- lustre/autoconf/lustre-core.m4 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index 4b9ad6a..bd5e8ae 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -420,6 +420,10 @@ LB_LINUX_TRY_COMPILE([ # 2.6.27 # +# up to v2.6.27 had a 3 arg version (inode, mask, nameidata) +# v2.6.27->v2.6.37 had a 2 arg version (inode, mask) +# v2.6.37->v3.0 had a 3 arg version (inode, mask, nameidata) +# v3.1 onward have a 2 arg version (inode, mask) AC_DEFUN([LC_INODE_PERMISION_2ARGS], [AC_MSG_CHECKING([inode_operations->permission has two args]) LB_LINUX_TRY_COMPILE([ @@ -1410,7 +1414,6 @@ AC_DEFUN([LC_PROG_LINUX], LC_PROCFS_DELETED # 2.6.27 - LC_INODE_PERMISION_2ARGS LC_QUOTA_ON_5ARGS LC_QUOTA_OFF_3ARGS @@ -1458,6 +1461,7 @@ AC_DEFUN([LC_PROG_LINUX], LC_INODE_DIO_WAIT LC_IOP_GET_ACL LC_FILE_LLSEEK_SIZE + LC_INODE_PERMISION_2ARGS # 3.1.1 LC_BLOCKS_FOR_TRUNCATE -- 1.8.3.1