X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fautoconf%2Flustre-core.m4;h=0aa723676bddd537992b84ecf93a4467e4826bd2;hp=ec50de06640ffdc54dacf2c06fabce578170e150;hb=refs%2Fchanges%2F99%2F5899%2F5;hpb=0c1ef56346b1df6eddfca761bb422186db27a575 diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index ec50de0..0aa7236 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -1528,6 +1528,28 @@ LB_LINUX_TRY_COMPILE([ ]) # +# 3.9 killed f_vfsmnt by +# 182be684784334598eee1d90274e7f7aa0063616 +# replacement is f_path.mnt +# +AC_DEFUN([LC_HAVE_F_PATH_MNT], +[AC_MSG_CHECKING([if struct file has f_path.mnt]) +LB_LINUX_TRY_COMPILE([ + #include +],[ + struct file *fp = NULL; + struct path path; + + path.mnt = fp->f_path.mnt; +],[ + AC_DEFINE(HAVE_F_PATH_MNT,1,[yes]) + AC_MSG_RESULT([yes]) +],[ + AC_MSG_RESULT([no]) +]) +]) + +# # LC_PROG_LINUX # # Lustre linux kernel checks @@ -1657,6 +1679,7 @@ AC_DEFUN([LC_PROG_LINUX], # 3.9 LC_HAVE_HLIST_FOR_EACH_3ARG + LC_HAVE_F_PATH_MNT # if test x$enable_server = xyes ; then