X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=config%2Flustre-build-ldiskfs.m4;h=39cb8539645c487e140f9a20362cc65fc71f188c;hb=442aabd5cc0277494fc85b486b39924aa8ed2cb9;hp=bdcae9a43bbf326ca8a64001e0463cae85e7eefa;hpb=5565877ee63e16bd3c6548db73466eeac9c4ca86;p=fs%2Flustre-release.git diff --git a/config/lustre-build-ldiskfs.m4 b/config/lustre-build-ldiskfs.m4 index bdcae9a..39cb853 100644 --- a/config/lustre-build-ldiskfs.m4 +++ b/config/lustre-build-ldiskfs.m4 @@ -35,6 +35,7 @@ AC_SUBST(LDISKFS_SERIES) # LB_EXT_FREE_BLOCKS_WITH_BUFFER_HEAD # # 2.6.32-rc7 ext4_free_blocks requires struct buffer_head +# Note that RHEL6 is pre 2.6.32-rc7 so this check is still needed. # AC_DEFUN([LB_EXT_FREE_BLOCKS_WITH_BUFFER_HEAD], [ LB_CHECK_COMPILE([if 'ext4_free_blocks' needs 'struct buffer_head'], @@ -67,6 +68,23 @@ ext_pblock, [ ]) # LB_EXT_PBLOCK # +# LB_EXT4_JOURNAL_START_3ARGS +# +# 3.9 added a type argument to ext4_journal_start and friends +# +AC_DEFUN([LB_EXT4_JOURNAL_START_3ARGS], [ +LB_CHECK_COMPILE([if ext4_journal_start takes 3 arguments], +ext4_journal_start, [ + #include + #include "$EXT4_SRC_DIR/ext4_jbd2.h" +],[ + ext4_journal_start(NULL, 0, 0); +],[ + AC_DEFINE(JOURNAL_START_HAS_3ARGS, 1, [ext4_journal_start takes 3 arguments]) +]) +]) # LB_EXT4_JOURNAL_START_3ARGS + +# # LDISKFS_AC_PATCH_PROGRAM # # Determine which program should be used to apply the patches to @@ -143,6 +161,7 @@ AS_IF([test x$enable_ldiskfs != xno],[ LDISKFS_AC_PATCH_PROGRAM LB_EXT_FREE_BLOCKS_WITH_BUFFER_HEAD LB_EXT_PBLOCK + LB_EXT4_JOURNAL_START_3ARGS AC_DEFINE(CONFIG_LDISKFS_FS_POSIX_ACL, 1, [posix acls for ldiskfs]) AC_DEFINE(CONFIG_LDISKFS_FS_SECURITY, 1, [fs security for ldiskfs]) AC_DEFINE(CONFIG_LDISKFS_FS_XATTR, 1, [extened attributes for ldiskfs])