From: James Simmons Date: Fri, 2 Aug 2013 13:19:58 +0000 (-0400) Subject: LU-2800 autoconf: update LC_EXPORT_TRUNCATE_COMPLETE X-Git-Tag: 2.4.91~7 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F35%2F5335%2F7;p=fs%2Flustre-release.git LU-2800 autoconf: update LC_EXPORT_TRUNCATE_COMPLETE The LC_EXPORT_TRUNCATE_COMPLETE is under the heading for RHEL4 patches which is misleading. The test checks for: - exported truncate_complete_page, which was never in a release - remove_from_page_cache, exported in v2.6.35 - delete_from_page_cache, exported in v2.6.39, replaced removed_from_page_cache Let's update the comments and move the test into a place in the list where it makes sense at a glance. Signed-off-by: Jeff Mahoney Signed-off-by: James Simmons Change-Id: I8e53cc10d72528f9107c375cd7bb8527a27fadbd Reviewed-on: http://review.whamcloud.com/5335 Reviewed-by: Bob Glossman Tested-by: Hudson Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index 90a26b3..3dc9cff 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -216,10 +216,10 @@ AC_DEFUN([LC_QUOTA_CONFIG], ]) ]) -# truncate_complete_page() was exported from RHEL5/SLES10, but not in SLES11 SP0 (2.6.27) +# truncate_complete_page() has never been exported from an upstream kernel # remove_from_page_cache() was exported between 2.6.35 and 2.6.38 # delete_from_page_cache() is exported from 2.6.39 -AC_DEFUN([LC_EXPORT_TRUNCATE_COMPLETE], +AC_DEFUN([LC_EXPORT_TRUNCATE_COMPLETE_PAGE], [LB_CHECK_SYMBOL_EXPORT([truncate_complete_page], [mm/truncate.c], [AC_DEFINE(HAVE_TRUNCATE_COMPLETE_PAGE, 1, @@ -1477,9 +1477,6 @@ AC_DEFUN([LC_PROG_LINUX], LC_CONFIG_LRU_RESIZE LC_LLITE_LLOOP_MODULE - # RHEL4 patches - LC_EXPORT_TRUNCATE_COMPLETE - LC_CAPA_CRYPTO LC_CONFIG_RMTCLIENT LC_CONFIG_GSS @@ -1523,6 +1520,7 @@ AC_DEFUN([LC_PROG_LINUX], # 2.6.35, 3.0.0 LC_FILE_FSYNC LC_EXPORT_SIMPLE_SETATTR + LC_EXPORT_TRUNCATE_COMPLETE_PAGE # 2.6.36 LC_FS_STRUCT_RWLOCK