X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fautoconf%2Flustre-core.m4;h=2ce6386bff6e5b994037fae8aa9dfbe689edbe8b;hp=b7dca3bdac892a7a016ad96c5b37da561984a05d;hb=50c79ee142be4bad9e63d603dda0a8d80ac40444;hpb=bad49e39e301d4367eaead5ee566f5dcacfde8f6 diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index b7dca3b..2ce6386 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -1720,6 +1720,24 @@ file_function_iter, [ ]) # LC_HAVE_FILE_OPERATIONS_READ_WRITE_ITER # +# LC_KEY_MATCH_DATA +# +# 3.17 replaces key_type::match with match_preparse +# and has new struct key_match_data +# +AC_DEFUN([LC_KEY_MATCH_DATA], [ +LB_CHECK_COMPILE([if struct key_match field exist], +key_match, [ + #include +],[ + struct key_match_data data; +],[ + AC_DEFINE(HAVE_KEY_MATCH_DATA, 1, + [struct key_match_data exist]) +]) +]) # LC_KEY_MATCH_DATA + +# # LC_NFS_FILLDIR_USE_CTX # # 3.18 kernel moved from void cookie to struct dir_context @@ -1939,6 +1957,9 @@ AC_DEFUN([LC_PROG_LINUX], [ LC_HAVE_IOV_ITER_INIT_DIRECTION LC_HAVE_FILE_OPERATIONS_READ_WRITE_ITER + # 3.17 + LC_KEY_MATCH_DATA + # 3.18 LC_NFS_FILLDIR_USE_CTX