Skip to content

Commit

Permalink
ocfs2/dlm: dlmdebug.c: make 2 functions static
Browse files Browse the repository at this point in the history
This patch makes the following needlessly global functions static:
- stringify_lockname()
- dlm_debug_put()

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
  • Loading branch information
Adrian Bunk authored and Mark Fasheh committed May 1, 2008
1 parent 4af694e commit 95642e5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions fs/ocfs2/dlm/dlmdebug.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
#define MLOG_MASK_PREFIX ML_DLM
#include "cluster/masklog.h"

int stringify_lockname(const char *lockname, int locklen, char *buf, int len);
static int stringify_lockname(const char *lockname, int locklen, char *buf,
int len);

void dlm_print_one_lock_resource(struct dlm_lock_resource *res)
{
Expand Down Expand Up @@ -251,7 +252,8 @@ EXPORT_SYMBOL_GPL(dlm_errname);
*
* For more on lockname formats, please refer to dlmglue.c and ocfs2_lockid.h.
*/
int stringify_lockname(const char *lockname, int locklen, char *buf, int len)
static int stringify_lockname(const char *lockname, int locklen, char *buf,
int len)
{
int out = 0;
__be64 inode_blkno_be;
Expand Down Expand Up @@ -368,7 +370,7 @@ static void dlm_debug_free(struct kref *kref)
kfree(dc);
}

void dlm_debug_put(struct dlm_debug_ctxt *dc)
static void dlm_debug_put(struct dlm_debug_ctxt *dc)
{
if (dc)
kref_put(&dc->debug_refcnt, dlm_debug_free);
Expand Down

0 comments on commit 95642e5

Please sign in to comment.