X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fautoconf%2Flustre-core.m4;h=4cc4bbf653fe0020ee80fa4bea8b69cc6134aec4;hp=109d5285b492090d95d6840440523208f8926ad0;hb=784cd144103871bd421c139c09bfbf4d5d29ca08;hpb=1f773208a4eee2088dc4707ebb904162978043de diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index 109d528..4cc4bbf 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -2176,6 +2176,25 @@ EXTRA_KCFLAGS="$tmp_flags" ]) # +# 3.6 vfs adds iop->atomic_open +# +AC_DEFUN([LC_HAVE_IOP_ATOMIC_OPEN], +[AC_MSG_CHECKING([if iop has atomic_open]) +LB_LINUX_TRY_COMPILE([ + #include +],[ + struct inode_operations iop; + iop.atomic_open = NULL; +],[ + AC_DEFINE(HAVE_IOP_ATOMIC_OPEN, 1, + [have iop atomic_open]) + AC_MSG_RESULT([yes]) +],[ + AC_MSG_RESULT([no]) +]) +]) + +# # LC_PROG_LINUX # # Lustre linux kernel checks @@ -2348,6 +2367,7 @@ AC_DEFUN([LC_PROG_LINUX], # 3.6 LC_HAVE_DENTRY_D_ALIAS_HLIST LC_DENTRY_OPEN_USE_PATH + LC_HAVE_IOP_ATOMIC_OPEN # if test x$enable_server = xyes ; then