From: shadow Date: Wed, 8 Apr 2009 11:02:23 +0000 (+0000) Subject: kill one configure test. X-Git-Tag: v1_8_0_110~117 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=4ea4b47cf5fa06007b99dac88e66b88c759c2935;p=fs%2Flustre-release.git kill one configure test. Branch b1_8 b=14250 i=shadow i=adilger --- diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index 54cb5fc..d0f2f4e 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -1472,22 +1472,6 @@ LB_LINUX_TRY_COMPILE([ ]) ]) -# 2.6.26 remove path_release and use path_put instead -AC_DEFUN([LC_PATH_RELEASE], -[AC_MSG_CHECKING([if path_release exist]) -LB_LINUX_TRY_COMPILE([ - #include - #include -],[ - path_release(NULL); -],[ - AC_DEFINE(HAVE_PATH_RELEASE, 1, [path_release exist]) - AC_MSG_RESULT([yes]) -],[ - AC_MSG_RESULT([no]) -]) -]) - #2.6.27 AC_DEFUN([LC_INODE_PERMISION_2ARGS], [AC_MSG_CHECKING([inode_operations->permission have two args]) @@ -1692,7 +1676,6 @@ AC_DEFUN([LC_PROG_LINUX], # 2.6.26 LC_FS_STRUCT_USE_PATH LC_RCU_LIST_SAFE - LC_PATH_RELEASE # 2.6.27 LC_INODE_PERMISION_2ARGS diff --git a/lustre/include/linux/lustre_compat25.h b/lustre/include/linux/lustre_compat25.h index 10a2fe3..cba65b4 100644 --- a/lustre/include/linux/lustre_compat25.h +++ b/lustre/include/linux/lustre_compat25.h @@ -506,9 +506,11 @@ void remove_shrinker(struct shrinker *shrinker) #ifdef HAVE_FS_STRUCT_USE_PATH #define cfs_fs_pwd(fs) ((fs)->pwd.dentry) #define cfs_fs_mnt(fs) ((fs)->pwd.mnt) +#define cfs_path_put(nd) path_put(&(nd)->path) #else #define cfs_fs_pwd(fs) ((fs)->pwd) #define cfs_fs_mnt(fs) ((fs)->pwdmnt) +#define cfs_path_put(nd) path_release(nd) #endif #ifndef list_for_each_safe_rcu diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index c4cf7ce..8cf7c20 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -386,13 +386,14 @@ int client_connect_import(struct lustre_handle *dlm_handle, ENTRY; down_write(&cli->cl_sem); + if (cli->cl_conn_count > 0) + GOTO(out_sem, rc = -EALREADY); + rc = class_connect(dlm_handle, obd, cluuid); if (rc) GOTO(out_sem, rc); cli->cl_conn_count++; - if (cli->cl_conn_count > 1) - GOTO(out_sem, rc = -EALREADY); *exp = class_conn2export(dlm_handle); if (obd->obd_namespace != NULL) diff --git a/lustre/llite/symlink.c b/lustre/llite/symlink.c index fb0b25f..acaf37a 100644 --- a/lustre/llite/symlink.c +++ b/lustre/llite/symlink.c @@ -177,12 +177,8 @@ static LL_FOLLOW_LINK_RETURN_TYPE ll_follow_link(struct dentry *dentry, struct n up(&lli->lli_size_sem); } if (rc) { -#ifdef HAVE_PATH_RELEASE - path_release(nd); /* Kernel assumes that ->follow_link() + cfs_path_put(nd); /* Kernel assumes that ->follow_link() releases nameidata on error */ -#else - path_put(&nd->path); -#endif GOTO(out, rc); } diff --git a/lustre/obdclass/llog_test.c b/lustre/obdclass/llog_test.c index 9e8f2bd..5dbccc8 100644 --- a/lustre/obdclass/llog_test.c +++ b/lustre/obdclass/llog_test.c @@ -502,7 +502,6 @@ static int llog_test_6(struct obd_device *obd, char *name) struct obd_device *mdc_obd; struct llog_ctxt *ctxt = llog_get_context(obd, LLOG_TEST_ORIG_CTXT); struct obd_uuid *mds_uuid = &ctxt->loc_exp->exp_obd->obd_uuid; - struct obd_uuid uuid = {"LLOG_TEST6_UUID"}; struct llog_handle *llh = NULL; struct llog_ctxt *nctxt; int rc;