[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1420989716-19115-1-git-send-email-rickard_strandqvist@spectrumdigital.se>
Date: Sun, 11 Jan 2015 16:21:56 +0100
From: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>
To: Mark Fasheh <mfasheh@...e.com>, Joel Becker <jlbec@...lplan.org>
Cc: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>,
Andrew Morton <akpm@...ux-foundation.org>,
Joseph Qi <joseph.qi@...wei.com>,
Xue jiufei <xuejiufei@...wei.com>,
Alex Chen <alex.chen@...wei.com>,
Yiwen Jiang <jiangyiwen@...wei.com>,
Goldwyn Rodrigues <rgoldwyn@...e.de>,
Zongxun Wang <wangzongxun@...wei.com>,
Zhonghua Guo <guozhonghua@....com>, ocfs2-devel@....oracle.com,
linux-kernel@...r.kernel.org
Subject: [PATCH] ocfs2: dlm: dlmdomain: Remove unused function
Remove the function dlm_joined() that is not used anywhere.
This was partially found by using a static code analysis program called cppcheck.
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>
---
fs/ocfs2/dlm/dlmdomain.c | 14 --------------
fs/ocfs2/dlm/dlmdomain.h | 1 -
2 files changed, 15 deletions(-)
diff --git a/fs/ocfs2/dlm/dlmdomain.c b/fs/ocfs2/dlm/dlmdomain.c
index 02d315f..348df90 100644
--- a/fs/ocfs2/dlm/dlmdomain.c
+++ b/fs/ocfs2/dlm/dlmdomain.c
@@ -674,20 +674,6 @@ static void dlm_leave_domain(struct dlm_ctxt *dlm)
spin_unlock(&dlm->spinlock);
}
-int dlm_joined(struct dlm_ctxt *dlm)
-{
- int ret = 0;
-
- spin_lock(&dlm_domain_lock);
-
- if (dlm->dlm_state == DLM_CTXT_JOINED)
- ret = 1;
-
- spin_unlock(&dlm_domain_lock);
-
- return ret;
-}
-
int dlm_shutting_down(struct dlm_ctxt *dlm)
{
int ret = 0;
diff --git a/fs/ocfs2/dlm/dlmdomain.h b/fs/ocfs2/dlm/dlmdomain.h
index 2f7f60b..fd6122a 100644
--- a/fs/ocfs2/dlm/dlmdomain.h
+++ b/fs/ocfs2/dlm/dlmdomain.h
@@ -28,7 +28,6 @@
extern spinlock_t dlm_domain_lock;
extern struct list_head dlm_domains;
-int dlm_joined(struct dlm_ctxt *dlm);
int dlm_shutting_down(struct dlm_ctxt *dlm);
void dlm_fire_domain_eviction_callbacks(struct dlm_ctxt *dlm,
int node_num);
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists