fs/ocfs2/: small cleanups
PATCH 1/1 fs/ocfs2/: small cleanups
This patch contains the following cleanups:
- cluster/sys.c: make needlessly global code static
- dlm/: "extern" declarations for variables belong into header files (and in this case, they are already in dlmdomain.h)
---
BTW: Could you add a MAINTAINERS entry for ocfs2?
fs/ocfs2/cluster/sys.c | 4 ++-- fs/ocfs2/dlm/dlmmaster.c | 4 +--- fs/ocfs2/dlm/dlmthread.c | 3 --- 3 files changed, 3 insertions(+), 8 deletions(-)
fs/ocfs2/cluster/sys.c renamed from fs/ocfs2/cluster/sys.c.old +2 -2
@@ -50,7 +50,7 @@return snprintf (buf,PAGE_SIZE ,"%u\n" ,O2NM_API_VERSION ); } -O2CB_ATTR (interface_revision,S_IFREG |S_IRUGO , o2cb_interface_revision_show,NULL ); +static O2CB_ATTR(interface_revision, S_IFREG | S_IRUGO, o2cb_interface_revision_show, NULL);static struct attribute *o2cb_attrs[] = { &o2cb_attr_interface_revision.attr,
@@ -73,7 +73,7 @@ };/* gives us o2cb_subsys */ -decl_subsys (o2cb,NULL ,NULL ); +static decl_subsys(o2cb, NULL, NULL);static ssize_t o2cb_show (struct kobject * kobj,struct attribute * attr,char * buffer)
fs/ocfs2/dlm/dlmmaster.c renamed from fs/ocfs2/dlm/dlmmaster.c.old +1 -3
@@ -48,6 +48,7 @@#include "dlmapi.h" #include "dlmcommon.h" #include "dlmdebug.h" +#include "dlmdomain.h" #define MLOG_MASK_PREFIX (ML_DLM|ML_DLM_MASTER)#include "cluster/masklog.h"
@@ -173,9 +174,6 @@spin_unlock (&dlm->master_lock); } -extern spinlock_t dlm_domain_lock; -extern struct list_head dlm_domains; -int dlm_dump_all_mles (const char __user *data,unsigned int len) {struct list_head *iter;
fs/ocfs2/dlm/dlmthread.c renamed from fs/ocfs2/dlm/dlmthread.c.old +0 -3
@@ -52,9 +52,6 @@#define MLOG_MASK_PREFIX (ML_DLM|ML_DLM_THREAD)#include "cluster/masklog.h" -extern spinlock_t dlm_domain_lock; -extern struct list_head dlm_domains; -static int dlm_thread (void *data);static void dlm_flush_asts (struct dlm_ctxt *dlm);
Hi,
Quoted 4 lines · Adrian Bunk
This patch contains the following cleanups:
-cluster/sys.c: make needlessly global code static
- dlm/: "extern" declarations for variables belong into header files (and in this case, they are already indlmdomain.h)
That all looks good, thanks.
Quoted 1 line
BTW: Could you add a
MAINTAINERSentry for ocfs2?
Yep. We've been meaning to add it for a while now. Thanks for pointing it out.
Your patch and the new MAINTAINERS entry are in git now:
http://oss.oracle.com/git/ocfs2-dev.git
--Mark
--
Mark Fasheh
Senior Software Developer, Oracle
[email protected]