])
#
-# LC_CONFIG_BACKINGFS
+# Allow the user to set the MDS thread upper limit
#
-# setup, check the backing filesystem
-#
-AC_DEFUN([LC_CONFIG_BACKINGFS],
+AC_DEFUN([LC_MDS_MAX_THREADS],
[
-BACKINGFS="ldiskfs"
-
-if test x$with_ldiskfs = xno ; then
- if test x$linux25$enable_server = xyesyes ; then
- AC_MSG_ERROR([ldiskfs is required for 2.6-based servers.])
- fi
-else
- # ldiskfs is enabled
- LB_DEFINE_LDISKFS_OPTIONS
-fi #ldiskfs
-
-AC_MSG_CHECKING([which backing filesystem to use])
-AC_MSG_RESULT([$BACKINGFS])
-AC_SUBST(BACKINGFS)
+ AC_ARG_WITH([mds_max_threads],
+ AC_HELP_STRING([--with-mds-max-threads=size],
+ [define the maximum number of threads available on the MDS: (default=512)]),
+ [
+ MDS_THREAD_COUNT=$with_mds_max_threads
+ AC_DEFINE_UNQUOTED(MDT_MAX_THREADS, $MDS_THREAD_COUNT, [maximum number of mdt threads])
+ ])
])
#
fi
])
+# truncate_complete_page() was exported from RHEL5/SLES10/SLES11
+# 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],
-[LB_CHECK_SYMBOL_EXPORT([truncate_complete_page],
-[mm/truncate.c],[
-AC_DEFINE(HAVE_TRUNCATE_COMPLETE_PAGE, 1,
- [kernel export truncate_complete_page])
-],[
-])
-])
+ [LB_CHECK_SYMBOL_EXPORT([truncate_complete_page],
+ [mm/truncate.c],
+ [AC_DEFINE(HAVE_TRUNCATE_COMPLETE_PAGE, 1,
+ [kernel export truncate_complete_page])])
+ LB_CHECK_SYMBOL_EXPORT([remove_from_page_cache],
+ [mm/filemap.c],
+ [AC_DEFINE(HAVE_REMOVE_FROM_PAGE_CACHE, 1,
+ [kernel export remove_from_page_cache])])
+ LB_CHECK_SYMBOL_EXPORT([delete_from_page_cache],
+ [mm/filemap.c],
+ [AC_DEFINE(HAVE_DELETE_FROM_PAGE_CACHE, 1,
+ [kernel export delete_from_page_cache])])
+ ])
AC_DEFUN([LC_EXPORT_TRUNCATE_RANGE],
[LB_CHECK_SYMBOL_EXPORT([truncate_inode_pages_range],
])
#
-# LC_HEADER_LDISKFS_XATTR
-#
-# CHAOS kernel-devel package will not include fs/ldiskfs/xattr.h
-#
-AC_DEFUN([LC_HEADER_LDISKFS_XATTR],
-[AC_MSG_CHECKING([if ldiskfs has xattr.h header])
-tmp_flags="$EXTRA_KCFLAGS"
-EXTRA_KCFLAGS="-I$LINUX/fs -I$LDISKFS_DIR -I$LDISKFS_DIR/ldiskfs"
-LB_LINUX_TRY_COMPILE([
- #include <ldiskfs/xattr.h>
-],[
- ldiskfs_xattr_get(NULL, 0, "", NULL, 0);
- ldiskfs_xattr_set_handle(NULL, NULL, 0, "", NULL, 0, 0);
-
-],[
- AC_MSG_RESULT([yes])
- AC_DEFINE(HAVE_LDISKFS_XATTR_H, 1, [ldiskfs/xattr.h found])
-],[
- AC_MSG_RESULT([no])
-])
-EXTRA_KCFLAGS="$tmp_flags"
-])
-
-#
# LC_FUNC_GRAB_CACHE_PAGE_NOWAIT_GFP
#
# Check for our patched grab_cache_page_nowait_gfp() function
AC_DEFUN([LC_CONST_ACL_SIZE],
[AC_MSG_CHECKING([calc acl size])
tmp_flags="$CFLAGS"
-CFLAGS="$CFLAGS -I$LINUX/include -I$LINUX_OBJ/include -I$LINUX_OBJ/include2 -I$LINUX/arch/`uname -m|sed -e 's/ppc.*/powerpc/' -e 's/x86_64/x86/' -e 's/i.86/x86/'`/include $EXTRA_KCFLAGS"
+CFLAGS="$CFLAGS -I$LINUX/include -I$LINUX_OBJ/include -I$LINUX_OBJ/include2 -I$LINUX/arch/`uname -m|sed -e 's/ppc.*/powerpc/' -e 's/x86_64/x86/' -e 's/i.86/x86/'`/include -include $AUTOCONF_HDIR/autoconf.h $EXTRA_KCFLAGS"
AC_TRY_RUN([
#define __KERNEL__
- #include <linux/autoconf.h>
#include <linux/types.h>
#undef __KERNEL__
// block include
#
# LC_STATFS_DENTRY_PARAM
-# starting from 2.6.18 linux kernel uses dentry instead of
-# super_block for first vfs_statfs argument
+# starting from 2.6.18 linux kernel uses dentry instead of super_block
+# for the first parameter of the super_operations->statfs() callback.
+#
#
AC_DEFUN([LC_STATFS_DENTRY_PARAM],
-[AC_MSG_CHECKING([first vfs_statfs parameter is dentry])
+[AC_MSG_CHECKING([if super_ops.statfs() first parameter is dentry])
+tmp_flags="$EXTRA_KCFLAGS"
+EXTRA_KCFLAGS="-Werror"
LB_LINUX_TRY_COMPILE([
#include <linux/fs.h>
],[
- int vfs_statfs(struct dentry *, struct kstatfs *);
+ struct super_operations *sop = NULL;
+ sop->statfs((struct dentry *)0, (struct kstatfs*)0);
],[
AC_DEFINE(HAVE_STATFS_DENTRY_PARAM, 1,
- [first parameter of vfs_statfs is dentry])
+ [super_ops.statfs() first parameter is dentry])
AC_MSG_RESULT([yes])
],[
AC_MSG_RESULT([no])
])
+EXTRA_KCFLAGS="$tmp_flags"
])
#
],[])
])
-#
-# LC_EXT4_DISCARD_PREALLOCATIONS
-#
-AC_DEFUN([LC_EXT4_DISCARD_PREALLOCATIONS],
-[AC_MSG_CHECKING([if ext4_discard_preallocatoins defined])
-tmp_flags="$EXTRA_KCFLAGS"
-EXTRA_KCFLAGS="-I$LINUX/fs"
-LB_LINUX_TRY_COMPILE([
- #include <ext4/ext4.h>
-],[
- struct inode i;
- ext4_discard_preallocations(&i);
-],[
- AC_MSG_RESULT(yes)
- AC_DEFINE(LDISKFS_DISCARD_PREALLOCATIONS, 1,
- [ext4_discard_preacllocations defined])
-],[
- AC_MSG_RESULT(no)
-])
-EXTRA_KCFLAGS="$tmp_flags"
-])
-
-#
-# LC_EXT_INSERT_EXTENT_WITH_5ARGS
-#
-AC_DEFUN([LC_EXT_INSERT_EXTENT_WITH_5ARGS],
-[AC_MSG_CHECKING([ext4_ext_insert_extent needs 5 arguments])
-tmp_flags="$EXTRA_KCFLAGS"
-EXTRA_KCFLAGS="-I$LINUX/fs"
-LB_LINUX_TRY_COMPILE([
- #include <ext4/ext4_extents.h>
-],[
- ext4_ext_insert_extent(NULL, NULL, NULL, NULL, 0);
-],[
- AC_DEFINE([EXT_INSERT_EXTENT_WITH_5ARGS], 1,
- [ext4_ext_insert_exent needs 5 arguments])
- AC_MSG_RESULT([yes])
-],[
- AC_MSG_RESULT([no])
-])
-EXTRA_KCFLAGS="$tmp_flags"
-])
-
#2.6.18 + RHEL5 (fc6)
# RHEL5 in FS-cache patch rename PG_checked flag into PG_fs_misc
AC_DEFUN([LC_PAGE_CHECKED],
[AC_MSG_CHECKING([kernel has PageChecked and SetPageChecked])
LB_LINUX_TRY_COMPILE([
- #include <linux/autoconf.h>
#ifdef HAVE_LINUX_MMTYPES_H
#include <linux/mm_types.h>
#endif
])
])
-# LC_VFS_READDIR_U64_INO
-# 2.6.19 use u64 for inode number instead of inode_t
-AC_DEFUN([LC_VFS_READDIR_U64_INO],
-[AC_MSG_CHECKING([check vfs_readdir need 64bit inode number])
-tmp_flags="$EXTRA_KCFLAGS"
-EXTRA_KCFLAGS="-Werror"
-LB_LINUX_TRY_COMPILE([
-#include <linux/fs.h>
- int fillonedir(void * __buf, const char * name, int namlen, loff_t offset,
- u64 ino, unsigned int d_type)
- {
- return 0;
- }
-],[
- filldir_t filter;
-
- filter = fillonedir;
- return 1;
-],[
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_VFS_READDIR_U64_INO, 1,
- [if vfs_readdir need 64bit inode number])
-],[
- AC_MSG_RESULT(no)
-])
-EXTRA_KCFLAGS="$tmp_flags"
-])
-
# LC_FILE_WRITEV
# 2.6.19 replaced writev with aio_write
AC_DEFUN([LC_FILE_WRITEV],
#include <linux/crypto.h>
],[
struct crypto_blkcipher *tfm;
- tfm = crypto_alloc_blkcipher("aes", 0, 0 );
+ tfm = crypto_alloc_blkcipher("aes", 0, sizeof(tfm) );
],[
AC_MSG_RESULT([yes])
AC_DEFINE(HAVE_ASYNC_BLOCK_CIPHER, 1, [kernel has block cipher support])
])
])
-# 2.6.23 has new shrinker API
-AC_DEFUN([LC_REGISTER_SHRINKER],
-[LB_CHECK_SYMBOL_EXPORT([register_shrinker],
-[mm/vmscan.c],[
- AC_DEFINE(HAVE_REGISTER_SHRINKER, 1,
- [kernel exports register_shrinker])
-# 2.6.32 added another argument to struct shrinker->shrink
- AC_MSG_CHECKING([if passing shrinker as first argument])
- tmp_flags="$EXTRA_KCFLAGS"
- EXTRA_KCFLAGS="-Werror"
- LB_LINUX_TRY_COMPILE([
- #include <linux/mm.h>
- int test_shrink(struct shrinker *, int, gfp_t);
- ],[
- struct shrinker *shr = NULL;
- shr->shrink = test_shrink;
- ],[
- AC_MSG_RESULT([yes])
- AC_DEFINE(SHRINKER_FIRST_ARG, [struct shrinker *shrinker,],
- [kernel is passing shrinker as first argument])
- ],[
- AC_DEFINE(SHRINKER_FIRST_ARG, ,
- [kernel is not passing shrinker as first argument])
- ])
- EXTRA_KCFLAGS="$tmp_flags"
-],[
- AC_DEFINE(SHRINKER_FIRST_ARG, ,
- [kernel does not exports register_shrinker,
- so SHRINKER_FIRST_ARG is empty])
-])
-])
-
# 2.6.23 add code to wait other users to complete before removing procfs entry
AC_DEFUN([LC_PROCFS_USERS],
[AC_MSG_CHECKING([if kernel has pde_users member in procfs entry struct])
AC_DEFUN([LC_FH_TO_DENTRY],
[AC_MSG_CHECKING([if kernel has .fh_to_dentry member in export_operations struct])
LB_LINUX_TRY_COMPILE([
+ #include <linux/fs.h>
#ifdef HAVE_LINUX_EXPORTFS_H
#include <linux/exportfs.h>
-#else
- #include <linux/fs.h>
#endif
],[
struct export_operations exp;
-
- exp.fh_to_dentry = NULL;
+ memset(exp.fh_to_dentry, 0, sizeof(exp.fh_to_dentry));
], [
AC_MSG_RESULT([yes])
AC_DEFINE(HAVE_FH_TO_DENTRY, 1,
],[
struct proc_dir_entry pde;
- pde.deleted = NULL;
+ pde.deleted = sizeof(pde);
], [
AC_MSG_RESULT([yes])
AC_DEFINE(HAVE_PROCFS_DELETED, 1,
struct fs_struct fs;
fs.pwd = path;
+ memset(&fs, 0, sizeof(fs));
], [
AC_MSG_RESULT([yes])
AC_DEFINE(HAVE_FS_STRUCT_USE_PATH, 1,
])
])
-# 2.6.27
+#
+# 2.6.27
+#
AC_DEFUN([LC_INODE_PERMISION_2ARGS],
[AC_MSG_CHECKING([inode_operations->permission has two args])
LB_LINUX_TRY_COMPILE([
#include <linux/fs.h>
],[
struct inode *inode;
-
- inode->i_op->permission(NULL,0);
+ inode->i_op->permission(NULL, 0);
],[
- AC_DEFINE(HAVE_INODE_PERMISION_2ARGS, 1,
+ AC_DEFINE(HAVE_INODE_PERMISION_2ARGS, 1,
[inode_operations->permission has two args])
AC_MSG_RESULT([yes])
],[
#include <linux/bio.h>
],[
struct bio io;
- io.bi_hw_segments = 0;
+ io.bi_hw_segments = sizeof(io);
],[
AC_DEFINE(HAVE_BI_HW_SEGMENTS, 1,
[struct bio has a bi_hw_segments field])
#
# 2.6.27 sles11 move the quotaio_v1{2}.h from include/linux to fs
# 2.6.32 move the quotaio_v1{2}.h from fs to fs/quota
-AC_DEFUN([LC_HAVE_QUOTAIO_V1_H],
-[LB_CHECK_FILE([$LINUX/include/linux/quotaio_v1.h],[
- AC_DEFINE(HAVE_QUOTAIO_V1_H, 1,
- [kernel has include/linux/quotaio_v1.h])
-],[LB_CHECK_FILE([$LINUX/fs/quotaio_v1.h],[
- AC_DEFINE(HAVE_FS_QUOTAIO_V1_H, 1,
+AC_DEFUN([LC_HAVE_QUOTAIO_H],
+[LB_CHECK_FILE([$LINUX/include/linux/quotaio_v2.h],[
+ AC_DEFINE(HAVE_QUOTAIO_H, 1,
+ [kernel has include/linux/quotaio_v2.h])
+],[LB_CHECK_FILE([$LINUX/fs/quotaio_v2.h],[
+ AC_DEFINE(HAVE_FS_QUOTAIO_H, 1,
[kernel has fs/quotaio_v1.h])
-],[LB_CHECK_FILE([$LINUX/fs/quota/quotaio_v1.h],[
- AC_DEFINE(HAVE_FS_QUOTA_QUOTAIO_V1_H, 1,
- [kernel has fs/quota/quotaio_v1.h])
+],[LB_CHECK_FILE([$LINUX/fs/quota/quotaio_v2.h],[
+ AC_DEFINE(HAVE_FS_QUOTA_QUOTAIO_H, 1,
+ [kernel has fs/quota/quotaio_v2.h])
],[
AC_MSG_RESULT([no])
])
])
])
+# 2.6.27 exported add_to_page_cache_lru.
+AC_DEFUN([LC_EXPORT_ADD_TO_PAGE_CACHE_LRU],
+[LB_CHECK_SYMBOL_EXPORT([add_to_page_cache_lru],
+[mm/filemap.c],[
+ AC_DEFINE(HAVE_ADD_TO_PAGE_CACHE_LRU, 1,
+ [add_to_page_cache_lru functions are present])
+],[
+])
+])
+
# 2.6.31
+# 2.6.30 x86 node_to_cpumask has been removed. must use cpumask_of_node
+AC_DEFUN([LC_EXPORT_CPUMASK_OF_NODE],
+ [LB_CHECK_SYMBOL_EXPORT([node_to_cpumask_map],
+ [arch/$LINUX_ARCH/mm/numa.c],
+ [AC_DEFINE(HAVE_CPUMASK_OF_NODE, 1,
+ [node_to_cpumask_map is exported by
+ the kernel])]) # x86_64
+ ])
+
# 2.6.31 replaces blk_queue_hardsect_size by blk_queue_logical_block_size function
AC_DEFUN([LC_BLK_QUEUE_LOG_BLK_SIZE],
[AC_MSG_CHECKING([if blk_queue_logical_block_size is defined])
])
])
+# 2.6.27.15-2 SuSE 11 sp0 kernels lack the name field for BDI
+AC_DEFUN([LC_BDI_NAME],
+[AC_MSG_CHECKING([if backing_device_info has name field])
+LB_LINUX_TRY_COMPILE([
+ #include <linux/blkkdev.h>
+],[
+ struct backing_dev_info bdi;
+ bdi.name = NULL;
+],[
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_BDI_NAME, 1,
+ [backing_device_info has name field])
+],[
+ AC_MSG_RESULT(no)
+])
+])
+
# 2.6.32 removes blk_queue_max_sectors and add blk_queue_max_hw_sectors
# check blk_queue_max_sectors and use it until disappear.
AC_DEFUN([LC_BLK_QUEUE_MAX_SECTORS],
])
#
-# LC_EXT4_SINGLEDATA_TRANS_BLOCKS_SB
-#
-AC_DEFUN([LC_EXT4_SINGLEDATA_TRANS_BLOCKS_SB],
-[AC_MSG_CHECKING([if EXT4_SINGLEDATA_TRANS_BLOCKS takes the sb as argument])
-tmp_flags="$EXTRA_KCFLAGS"
-EXTRA_KCFLAGS="-I$LINUX/fs"
-LB_LINUX_TRY_COMPILE([
- #include <ext4/ext4.h>
- #include <ext4/ext4_jbd2.h>
-],[
- struct super_block sb;
- EXT4_SINGLEDATA_TRANS_BLOCKS(&sb);
-],[
- AC_MSG_RESULT(yes)
- AC_DEFINE(LDISKFS_SINGLEDATA_TRANS_BLOCKS_HAS_SB, 1,
- [EXT4_SINGLEDATA_TRANS_BLOCKS takes sb as argument])
-],[
- AC_MSG_RESULT(no)
-])
-EXTRA_KCFLAGS="$tmp_flags"
-])
-
-#
# LC_QUOTA64
#
# Check if kernel has been patched for 64-bit quota limits support.
LB_LINUX_TRY_COMPILE([
#include <linux/kernel.h>
#include <linux/fs.h>
- #ifdef HAVE_QUOTAIO_V1_H
+ #ifdef HAVE_QUOTAIO_H
# include <linux/quotaio_v2.h>
int versions[] = V2_INITQVERSIONS_R1;
struct v2_disk_dqblk_r1 dqblk_r1;
- #elif defined(HAVE_FS_QUOTA_QUOTAIO_V1_H)
+ #elif defined(HAVE_FS_QUOTA_QUOTAIO_H)
# include <quota/quotaio_v2.h>
struct v2r1_disk_dqblk dqblk_r1;
- #elif defined(HAVE_FS_QUOTAIO_V1_H)
+ #elif defined(HAVE_FS_QUOTAIO_H)
# include <quotaio_v2.h>
struct v2r1_disk_dqblk dqblk_r1;
#else
EXTRA_KCFLAGS=$tmp_flags
])
+# 2.6.32 set_cpus_allowed is no more defined if CONFIG_CPUMASK_OFFSTACK=yes
+AC_DEFUN([LC_SET_CPUS_ALLOWED],
+ [AC_MSG_CHECKING([if kernel defines set_cpus_allowed])
+ LB_LINUX_TRY_COMPILE(
+ [#include <linux/sched.h>],
+ [struct task_struct *p = NULL;
+ cpumask_t mask = { { 0 } };
+ (void) set_cpus_allowed(p, mask);],
+ [AC_MSG_RESULT([yes])
+ AC_DEFINE(HAVE_SET_CPUS_ALLOWED, 1,
+ [set_cpus_allowed is exported by the kernel])],
+ [AC_MSG_RESULT([no])] )])
+
#
# LC_D_OBTAIN_ALIAS
# starting from 2.6.28 kernel replaces d_alloc_anon() with
])
])
+#
+# 2.6.36 super_operations add evict_inode method. it hybird of
+# delete_inode & clear_inode.
+#
+AC_DEFUN([LC_SBOPS_EVICT_INODE],
+[AC_MSG_CHECKING([if super_operations.evict_inode exist])
+LB_LINUX_TRY_COMPILE([
+ #include <linux/fs.h>
+],[
+ ((struct super_operations *)0)->evict_inode(NULL);
+],[
+ AC_DEFINE(HAVE_SBOPS_EVICT_INODE, 1,
+ [super_operations.evict_inode() is exist in kernel])
+ AC_MSG_RESULT([yes])
+],[
+ AC_MSG_RESULT([no])
+])
+])
+
+#
+# 2.6.35 file_operations.fsync taken 2 arguments.
+#
+AC_DEFUN([LC_FILE_FSYNC],
+[AC_MSG_CHECKING([if file_operations.fsync taken 2 arguments])
+LB_LINUX_TRY_COMPILE([
+ #include <linux/fs.h>
+],[
+ ((struct file_operations *)0)->fsync(NULL, 0);
+],[
+ AC_DEFINE(HAVE_FILE_FSYNC_2ARGS, 1,
+ [file_operations.fsync taken 2 arguments])
+ AC_MSG_RESULT([yes])
+],[
+ AC_MSG_RESULT([no])
+])
+])
+
+#
+# 2.6.38 export blkdev_get_by_dev
+#
+AC_DEFUN([LC_BLKDEV_GET_BY_DEV],
+[LB_CHECK_SYMBOL_EXPORT([blkdev_get_by_dev],
+[fs/block_dev.c],[
+AC_DEFINE(HAVE_BLKDEV_GET_BY_DEV, 1,
+ [blkdev_get_by_dev is exported by the kernel])
+],[
+])
+])
+
+#
+# 2.6.38 vfsmount.mnt_count doesn't use atomic_t
+#
+AC_DEFUN([LC_ATOMIC_MNT_COUNT],
+[AC_MSG_CHECKING([if vfsmount.mnt_count is atomic_t])
+LB_LINUX_TRY_COMPILE([
+ #include <asm/atomic.h>
+ #include <linux/fs.h>
+ #include <linux/mount.h>
+],[
+ ((struct vfsmount *)0)->mnt_count = ((atomic_t) { 0 });
+],[
+ AC_DEFINE(HAVE_ATOMIC_MNT_COUNT, 1,
+ [vfsmount.mnt_count is atomic_t])
+ AC_MSG_RESULT([yes])
+],[
+ AC_MSG_RESULT([no])
+])
+])
+
+#
+# 2.6.39 remove unplug_fn from request_queue.
+#
+AC_DEFUN([LC_REQUEST_QUEUE_UNPLUG_FN],
+[AC_MSG_CHECKING([if request_queue has unplug_fn field])
+LB_LINUX_TRY_COMPILE([
+ #include <linux/blkdev.h>
+],[
+ struct request_queue rq;
+ memset(rq.unplug_fn, 0, sizeof(rq.unplug_fn));
+],[
+ AC_DEFINE(HAVE_REQUEST_QUEUE_UNPLUG_FN, 1,
+ [request_queue has unplug_fn field])
+ AC_MSG_RESULT([yes])
+],[
+ AC_MSG_RESULT([no])
+])
+])
+
+#
+# 2.6.38 generic_permission taken 4 paremater.
+# in fact, it means rcu-walk aware permission bring.
+#
+AC_DEFUN([LC_GENERIC_PERMISSION],
+[AC_MSG_CHECKING([if generic_permission take 4 arguments])
+LB_LINUX_TRY_COMPILE([
+ #include <linux/fs.h>
+],[
+ generic_permission(NULL, 0, 0, NULL);
+],[
+ AC_DEFINE(HAVE_GENERIC_PERMISSION_4ARGS, 1,
+ [generic_permission taken 4 arguments])
+ AC_MSG_RESULT([yes])
+],[
+ AC_MSG_RESULT([no])
+])
+])
#
# LC_PROG_LINUX
#
AC_DEFUN([LC_PROG_LINUX],
[LC_LUSTRE_VERSION_H
- if test x$enable_server = xyes ; then
- AC_DEFINE(HAVE_SERVER_SUPPORT, 1, [support server])
- LC_FUNC_DEV_SET_RDONLY
- LC_STACK_SIZE
- LC_CONFIG_BACKINGFS
- fi
LC_CONFIG_PINGER
LC_CONFIG_CHECKSUM
LC_CONFIG_LIBLUSTRE_RECOVERY
LC_EXPORT___D_REHASH
LC_EXPORT_NODE_TO_CPUMASK
- LC_HEADER_LDISKFS_XATTR
LC_FUNC_GRAB_CACHE_PAGE_NOWAIT_GFP
LC_STRUCT_STATFS
LC_FILEMAP_POPULATE
if test x$enable_server = xyes ; then
LC_EXPORT_INVALIDATE_MAPPING_PAGES
fi
- LC_EXT4_DISCARD_PREALLOCATIONS
- LC_EXT_INSERT_EXTENT_WITH_5ARGS
#2.6.18 + RHEL5 (fc6)
LC_PG_FS_MISC
# 2.6.19
LC_INODE_BLKSIZE
- LC_VFS_READDIR_U64_INO
LC_FILE_WRITEV
LC_FILE_READV
LC_KERNEL_SENDFILE
LC_HAVE_EXPORTFS_H
LC_VM_OP_FAULT
- LC_REGISTER_SHRINKER
LC_PROCFS_USERS
LC_EXPORTFS_DECODE_FH
-
- # 2.6.24
- LC_HAVE_MMTYPES_H
+
+ # 2.6.24
+ LC_HAVE_MMTYPES_H
LC_BIO_ENDIO_2ARG
LC_FH_TO_DENTRY
LC_PROCFS_DELETED
#2.6.25
LC_MAPPING_CAP_WRITEBACK_DIRTY
-
+
# 2.6.26
LC_FS_STRUCT_USE_PATH
# 2.6.27.15-2 sles11
LC_BI_HW_SEGMENTS
- LC_HAVE_QUOTAIO_V1_H
+ LC_HAVE_QUOTAIO_H
LC_VFS_SYMLINK_5ARGS
+ LC_BDI_NAME
LC_SB_ANY_QUOTA_ACTIVE
LC_SB_HAS_QUOTA_ACTIVE
+ LC_EXPORT_ADD_TO_PAGE_CACHE_LRU
+
+ # 2.6.30
+ LC_EXPORT_CPUMASK_OF_NODE
# 2.6.31
LC_BLK_QUEUE_LOG_BLK_SIZE
LC_SB_BDI
LC_BLK_QUEUE_MAX_SECTORS
LC_BLK_QUEUE_MAX_SEGMENTS
- LC_EXT4_SINGLEDATA_TRANS_BLOCKS_SB
+ LC_SET_CPUS_ALLOWED
+
+ # 2.6.35
+ LC_FILE_FSYNC
+
+ # 2.6.36
+ LC_SBOPS_EVICT_INODE
+
+ # 2.6.38
+ LC_ATOMIC_MNT_COUNT
+ LC_BLKDEV_GET_BY_DEV
+ LC_GENERIC_PERMISSION
+
+ # 2.6.39
+ LC_REQUEST_QUEUE_UNPLUG_FN
#
if test x$enable_server = xyes ; then
- if test x$enable_quota_module = xyes ; then
- LC_QUOTA64 # must after LC_HAVE_QUOTAIO_V1_H
- fi
+ AC_DEFINE(HAVE_SERVER_SUPPORT, 1, [support server])
+ LC_FUNC_DEV_SET_RDONLY
+ LC_STACK_SIZE
+ LC_QUOTA64
fi
])
])
])
+# 2.6.29 split file and anonymous page queues
+AC_DEFUN([LC_PAGEVEC_LRU_ADD_FILE],
+[AC_MSG_CHECKING([if kernel has .pagevec_lru_add_file])
+LB_LINUX_TRY_COMPILE([
+ #include <linux/mm.h>
+ #include <linux/pagevec.h>
+],[
+ struct pagevec lru_pagevec;
+
+ pagevec_init(&lru_pagevec, 0);
+ pagevec_lru_add_file(&lru_pagevec);
+],[
+ AC_MSG_RESULT([yes])
+ AC_DEFINE(HAVE_PAGEVEC_LRU_ADD_FILE, 1,
+ [kernel has .pagevec_lru_add_file])
+],[
+ AC_MSG_RESULT([no])
+])
+])
+
#
# --enable-mpitest
#
CFLAGS="$CFLAGS -Werror"
fi
+# maximum MDS thread count
+LC_MDS_MAX_THREADS
+
# include/liblustre.h
AC_CHECK_HEADERS([sys/user.h sys/vfs.h stdint.h blkid/blkid.h])
LC_D_OBTAIN_ALIAS
LC_BLKDEV_PUT_2ARGS
LC_DENTRY_OPEN_4ARGS
+ LC_PAGEVEC_LRU_ADD_FILE
])