X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fautoconf%2Flustre-core.m4;h=77457677db14e6793ab663a542b848d7bcc432d2;hp=c47dbc418359450e42bde595be92af10c0d7d08a;hb=f8539c8d1031cb380516497a4e752d57470cde4b;hpb=ff3c1a0c6d43fb210faa5e0705241672e0754ce4 diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index c47dbc4..7745767 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -2085,6 +2085,35 @@ LB_LINUX_TRY_COMPILE([ ]) # +# 3.5 encode_fh has parent inode passed in directly +# see kernel commit b0b0382b +# +AC_DEFUN([LC_HAVE_ENCODE_FH_PARENT], +[AC_MSG_CHECKING([if encode_fh have parent inode as parameter]) +tmp_flags="$EXTRA_KCFLAGS" +EXTRA_KCFLAGS="-Werror" +LB_LINUX_TRY_COMPILE([ + #include + #include + #include + int ll_encode_fh(struct inode *i, __u32 *a, int *b, struct inode *p) + { + return 0; + } +],[ + struct export_operations exp_op; + exp_op.encode_fh = ll_encode_fh; +],[ + AC_DEFINE(HAVE_ENCODE_FH_PARENT, 1, + [have parent inode as parameter]) + AC_MSG_RESULT([yes]) +],[ + AC_MSG_RESULT([no]) +]) +EXTRA_KCFLAGS="$tmp_flags" +]) + +# # LC_PROG_LINUX # # Lustre linux kernel checks @@ -2251,6 +2280,7 @@ AC_DEFUN([LC_PROG_LINUX], # 3.5 LC_HAVE_CLEAR_INODE + LC_HAVE_ENCODE_FH_PARENT # if test x$enable_server = xyes ; then