Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
970d2e6
)
LU-709 build: cleanup two unused macros
author
Peng Tao
<tao.peng@emc.com>
Sat, 25 Feb 2012 05:14:57 +0000
(13:14 +0800)
committer
Oleg Drokin
<green@whamcloud.com>
Thu, 29 Mar 2012 04:32:09 +0000
(
00:32
-0400)
1. HAVE_MAPPING_CAP_WRITEBACK_DIRTY is not used due to remove of
LC_EXPORT_FILEMAP_FDATAWRITE_RANGE
2. HAVE_VFS_SYMLINK_5ARGS is not used
Signed-off-by: Peng Tao <tao.peng@emc.com>
Change-Id: I28383c00087da1b88694770436aab06149e7b8f9
Reviewed-on: http://review.whamcloud.com/2325
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/autoconf/lustre-core.m4
patch
|
blob
|
history
diff --git
a/lustre/autoconf/lustre-core.m4
b/lustre/autoconf/lustre-core.m4
index
5d28137
..
e855aea
100644
(file)
--- a/
lustre/autoconf/lustre-core.m4
+++ b/
lustre/autoconf/lustre-core.m4
@@
-1469,26
+1469,6
@@
AC_DEFUN([LC_EXPORT_BDI_INIT],
])
])
])
])
-# 2.6.25
-
-# 2.6.25 change define to inline
-AC_DEFUN([LC_MAPPING_CAP_WRITEBACK_DIRTY],
-[AC_MSG_CHECKING([if kernel have mapping_cap_writeback_dirty])
-LB_LINUX_TRY_COMPILE([
- #include <linux/backing-dev.h>
-],[
- #ifndef mapping_cap_writeback_dirty
- mapping_cap_writeback_dirty(NULL);
- #endif
-],[
- AC_MSG_RESULT([yes])
- AC_DEFINE(HAVE_MAPPING_CAP_WRITEBACK_DIRTY, 1,
- [kernel have mapping_cap_writeback_dirty])
-],[
- AC_MSG_RESULT([no])
-])
-])
-
# 2.6.26
# 2.6.26 isn't export set_fs_pwd and change paramter in fs struct
# 2.6.26
# 2.6.26 isn't export set_fs_pwd and change paramter in fs struct
@@
-1697,26
+1677,6
@@
AC_DEFUN([LC_HAVE_QUOTAIO_H],
])
])
])
])
-# sles10 sp2 need 5 parameter for vfs_symlink
-AC_DEFUN([LC_VFS_SYMLINK_5ARGS],
-[AC_MSG_CHECKING([vfs_symlink need 5 parameter])
-LB_LINUX_TRY_COMPILE([
- #include <linux/fs.h>
-],[
- struct inode *dir = NULL;
- struct dentry *dentry = NULL;
- struct vfsmount *mnt = NULL;
- const char * path = NULL;
- vfs_symlink(dir, dentry, mnt, path, 0);
-],[
- AC_DEFINE(HAVE_VFS_SYMLINK_5ARGS, 1,
- [vfs_symlink need 5 parameteres])
- AC_MSG_RESULT([yes])
-],[
- AC_MSG_RESULT([no])
-])
-])
-
# 2.6.27 sles11 has sb_any_quota_active
AC_DEFUN([LC_SB_ANY_QUOTA_ACTIVE],
[AC_MSG_CHECKING([Kernel has sb_any_quota_active])
# 2.6.27 sles11 has sb_any_quota_active
AC_DEFUN([LC_SB_ANY_QUOTA_ACTIVE],
[AC_MSG_CHECKING([Kernel has sb_any_quota_active])
@@
-2274,9
+2234,6
@@
AC_DEFUN([LC_PROG_LINUX],
LC_PROCFS_DELETED
LC_EXPORT_BDI_INIT
LC_PROCFS_DELETED
LC_EXPORT_BDI_INIT
- #2.6.25
- LC_MAPPING_CAP_WRITEBACK_DIRTY
-
# 2.6.26
LC_FS_STRUCT_USE_PATH
# 2.6.26
LC_FS_STRUCT_USE_PATH
@@
-2294,7
+2251,6
@@
AC_DEFUN([LC_PROG_LINUX],
# 2.6.27.15-2 sles11
LC_BI_HW_SEGMENTS
LC_HAVE_QUOTAIO_H
# 2.6.27.15-2 sles11
LC_BI_HW_SEGMENTS
LC_HAVE_QUOTAIO_H
- LC_VFS_SYMLINK_5ARGS
LC_BDI_NAME
LC_SB_ANY_QUOTA_ACTIVE
LC_SB_HAS_QUOTA_ACTIVE
LC_BDI_NAME
LC_SB_ANY_QUOTA_ACTIVE
LC_SB_HAS_QUOTA_ACTIVE