Whamcloud - gitweb
LU-2800 autoconf: remove LC_PROCFS_DELETED 74/5374/8
authorJames Simmons <uja.ornl@gmail.com>
Mon, 28 Oct 2013 11:56:02 +0000 (07:56 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 14 Nov 2013 04:13:25 +0000 (04:13 +0000)
The procfs deleted member in the procfs entry struct
has been removed since kernel version 2.6.27. We can
removed this test since it is no longer needed.

Signed-off-by: James Simmons <uja.ornl@gmail.com>
Change-Id: I1dbf8cabfa85d31ea5f1386710dfcb7012946b91
Reviewed-on: http://review.whamcloud.com/5374
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/autoconf/lustre-core.m4

index dbe3f2a..76dcd98 100644 (file)
@@ -374,28 +374,6 @@ LB_LINUX_TRY_COMPILE([
 ])
 ])
 
-# 2.6.24 removes long aged procfs entry -> deleted member
-AC_DEFUN([LC_PROCFS_DELETED],
-[AC_MSG_CHECKING([if kernel has deleted member in procfs entry struct])
-LB_LINUX_TRY_COMPILE([
-       #include <linux/proc_fs.h>
-],[
-        struct proc_dir_entry pde;
-
-        pde.deleted = sizeof(pde);
-], [
-        AC_MSG_RESULT([yes])
-        AC_DEFINE(HAVE_PROCFS_DELETED, 1,
-                [kernel has deleted member in procfs entry struct])
-],[
-        AC_MSG_RESULT([no])
-])
-])
-
-#
-# 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)
@@ -1302,7 +1280,6 @@ AC_DEFUN([LC_PROG_LINUX],
 
          # 2.6.24
          LC_BIO_ENDIO_2ARG
-         LC_PROCFS_DELETED
 
          # 2.6.27.15-2 sles11
          LC_HAVE_QUOTAIO_H