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 <jeffm@suse.com>
Signed-off-by: James Simmons <uja.ornl@gmail.com>
Change-Id: I8e53cc10d72528f9107c375cd7bb8527a27fadbd
Reviewed-on: http://review.whamcloud.com/5335
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
-# 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
# 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,
[LB_CHECK_SYMBOL_EXPORT([truncate_complete_page],
[mm/truncate.c],
[AC_DEFINE(HAVE_TRUNCATE_COMPLETE_PAGE, 1,
LC_CONFIG_LRU_RESIZE
LC_LLITE_LLOOP_MODULE
LC_CONFIG_LRU_RESIZE
LC_LLITE_LLOOP_MODULE
- # RHEL4 patches
- LC_EXPORT_TRUNCATE_COMPLETE
-
LC_CAPA_CRYPTO
LC_CONFIG_RMTCLIENT
LC_CONFIG_GSS
LC_CAPA_CRYPTO
LC_CONFIG_RMTCLIENT
LC_CONFIG_GSS
# 2.6.35, 3.0.0
LC_FILE_FSYNC
LC_EXPORT_SIMPLE_SETATTR
# 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
# 2.6.36
LC_FS_STRUCT_RWLOCK