X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=lustre%2Fautoconf%2Flustre-core.m4;h=a415368fa1805f9a2cb150e5b13b94ecbcd2c318;hb=e2b17d9a9548518856049dba89fa01d1156d7d06;hp=820355f6bfec28adaa4d586046a12c69c632bbd4;hpb=e89ebc59c4d7b65c7f78fd2e18312d5be4b535c5;p=fs%2Flustre-release.git diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index 820355f..a415368 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -1162,6 +1162,24 @@ AC_DEFINE(HAVE___D_REHASH, 1, ]) ]) +AC_DEFUN([LC_EXPORT_D_MOVE_LOCKED], +[LB_CHECK_SYMBOL_EXPORT([d_move_locked], +[fs/dcache.c],[ +AC_DEFINE(HAVE_D_MOVE_LOCKED, 1, + [d_move_locked is exported by the kernel]) +],[ +]) +]) + +AC_DEFUN([LC_EXPORT___D_MOVE], +[LB_CHECK_SYMBOL_EXPORT([__d_move], +[fs/dcache.c],[ +AC_DEFINE(HAVE___D_MOVE, 1, + [__d_move is exported by the kernel]) +],[ +]) +]) + # The actual symbol exported varies among architectures, so we need # to check many symbols (but only in the current architecture.) No # matter what symbol is exported, the kernel #defines node_to_cpumask @@ -1325,8 +1343,10 @@ AC_DEFUN([LC_CONST_ACL_SIZE], tmp_flags="$CFLAGS" CFLAGS="$CFLAGS -I $LINUX/include $EXTRA_KCFLAGS" AC_TRY_RUN([ +#define __KERNEL__ #include #include +#undef __KERNEL__ // block include #define __LINUX_POSIX_ACL_H @@ -1387,6 +1407,8 @@ AC_DEFUN([LC_PROG_LINUX], LC_EXPORT_TRUNCATE_COMPLETE LC_EXPORT_D_REHASH_COND LC_EXPORT___D_REHASH + LC_EXPORT_D_MOVE_LOCKED + LC_EXPORT___D_MOVE LC_EXPORT_NODE_TO_CPUMASK LC_STRUCT_KIOBUF