[Ocfs2-commits] khackel commits r2529 -
branches/ocfs2-1.0/fs/ocfs2/dlm
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Thu Aug 18 19:30:55 CDT 2005
Author: khackel
Signed-off-by: mfasheh
Date: 2005-08-18 19:30:53 -0500 (Thu, 18 Aug 2005)
New Revision: 2529
Modified:
branches/ocfs2-1.0/fs/ocfs2/dlm/dlmmaster.c
Log:
* remove noisy dlm_print_one_mle in dlm_wait_for_lock_mastery
* remove dead code (dlm_lockres_asts_flushed)
Signed-off-by: mfasheh
Modified: branches/ocfs2-1.0/fs/ocfs2/dlm/dlmmaster.c
===================================================================
--- branches/ocfs2-1.0/fs/ocfs2/dlm/dlmmaster.c 2005-08-19 00:24:43 UTC (rev 2528)
+++ branches/ocfs2-1.0/fs/ocfs2/dlm/dlmmaster.c 2005-08-19 00:30:53 UTC (rev 2529)
@@ -845,7 +845,6 @@
m = dlm->node_num;
mlog(0, "about to master %.*s here, this=%u\n",
res->lockname.len, res->lockname.name, m);
- dlm_print_one_mle(mle);
ret = dlm_do_assert_master(dlm, res->lockname.name,
res->lockname.len, mle->vote_map, 0);
if (ret) {
@@ -1916,32 +1915,6 @@
return ret;
}
-static int dlm_lockres_asts_flushed(struct dlm_ctxt *dlm,
- struct dlm_lock_resource *res)
-{
- int ret = 1;
- int i;
- struct list_head *queue, *iter;
- struct dlm_lock *lock;
-
- spin_lock(&res->spinlock);
-
- for (i=DLM_GRANTED_LIST; i<=DLM_BLOCKED_LIST; i++) {
- queue = dlm_list_idx_to_ptr(res, i);
- list_for_each(iter, queue) {
- lock = list_entry(iter, struct dlm_lock, list);
- if (!list_empty(&lock->ast_list) ||
- !list_empty(&lock->bast_list)) {
- ret = 0;
- goto leave;
- }
- }
- }
-leave:
- spin_unlock(&res->spinlock);
- return ret;
-}
-
static int dlm_migration_can_proceed(struct dlm_ctxt *dlm,
struct dlm_lock_resource *res,
u8 mig_target)
More information about the Ocfs2-commits
mailing list