X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fautoconf%2Flustre-core.m4;h=f47bc5f7e63781b46d327d99f6ad3cbe192ed7ab;hb=1e60ce443bdb4d1211758b0e53aea597bbdbc22d;hp=0732b9b6dfb7df73a87a78cae0f56932265010a6;hpb=9bd7e40d2934cd0162eeff5388f054444a982ac9;p=fs%2Flustre-release.git diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index 0732b9b..f47bc5f 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -1258,13 +1258,12 @@ AC_DEFUN([LC_HAVE_ONLY_PROCFS_SEQ], LB_LINUX_TRY_COMPILE([ #include ],[ - struct inode *inode = NULL; - PDE_DATA(inode); + ((struct proc_dir_entry *)0)->write_proc(NULL, NULL, 0, NULL); +],[ + AC_MSG_RESULT([no]) ],[ AC_DEFINE(HAVE_ONLY_PROCFS_SEQ, 1, [only seq_files supported]) AC_MSG_RESULT([yes]) -],[ - AC_MSG_RESULT([no]) ]) ]) @@ -1288,6 +1287,25 @@ LB_LINUX_TRY_COMPILE([ ]) # +# 3.11 need to access d_count to get dentry reference count +# +AC_DEFUN([LC_HAVE_DCOUNT], +[AC_MSG_CHECKING([if d_count exist]) +LB_LINUX_TRY_COMPILE([ + #include +],[ + struct dentry de; + + d_count(&de); +],[ + AC_DEFINE(HAVE_D_COUNT, 1, [d_count exist]) + AC_MSG_RESULT([yes]) +],[ + AC_MSG_RESULT([no]) +]) +]) + +# # LC_PROG_LINUX # # Lustre linux kernel checks @@ -1386,6 +1404,9 @@ AC_DEFUN([LC_PROG_LINUX], LC_HAVE_ONLY_PROCFS_SEQ LC_BLKDEV_RELEASE_RETURN_INT + # 3.11 + LC_HAVE_DCOUNT + # if test x$enable_server != xno ; then LC_FUNC_DEV_SET_RDONLY