From e56e779a04b1e635fbb20afb82b7d70119e90f5d Mon Sep 17 00:00:00 2001 From: Adrian Bunk Date: Sat, 3 Nov 2007 01:04:30 +0100 Subject: [PATCH] --- yaml --- r: 80602 b: refs/heads/master c: e028398da7615dd3a795505ddf7942506bbb49bd h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/dlm/dlm_internal.h | 16 ++++++++++++++++ trunk/fs/dlm/lock.c | 1 - trunk/fs/dlm/lockspace.c | 8 -------- trunk/fs/dlm/main.c | 10 ---------- 5 files changed, 17 insertions(+), 20 deletions(-) diff --git a/[refs] b/[refs] index 398e83a5f9eb..9593b6730955 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6bd8fedaa16da1e24f38712ee759950d8c5f4f09 +refs/heads/master: e028398da7615dd3a795505ddf7942506bbb49bd diff --git a/trunk/fs/dlm/dlm_internal.h b/trunk/fs/dlm/dlm_internal.h index d2fc2384c3be..ec61bbaf25df 100644 --- a/trunk/fs/dlm/dlm_internal.h +++ b/trunk/fs/dlm/dlm_internal.h @@ -570,5 +570,21 @@ static inline int dlm_no_directory(struct dlm_ls *ls) return (ls->ls_exflags & DLM_LSFL_NODIR) ? 1 : 0; } +int dlm_netlink_init(void); +void dlm_netlink_exit(void); +void dlm_timeout_warn(struct dlm_lkb *lkb); + +#ifdef CONFIG_DLM_DEBUG +int dlm_register_debugfs(void); +void dlm_unregister_debugfs(void); +int dlm_create_debug_file(struct dlm_ls *ls); +void dlm_delete_debug_file(struct dlm_ls *ls); +#else +static inline int dlm_register_debugfs(void) { return 0; } +static inline void dlm_unregister_debugfs(void) { } +static inline int dlm_create_debug_file(struct dlm_ls *ls) { return 0; } +static inline void dlm_delete_debug_file(struct dlm_ls *ls) { } +#endif + #endif /* __DLM_INTERNAL_DOT_H__ */ diff --git a/trunk/fs/dlm/lock.c b/trunk/fs/dlm/lock.c index 3915b8e14146..7bc6ad9299a2 100644 --- a/trunk/fs/dlm/lock.c +++ b/trunk/fs/dlm/lock.c @@ -88,7 +88,6 @@ static void __receive_convert_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, static int receive_extralen(struct dlm_message *ms); static void do_purge(struct dlm_ls *ls, int nodeid, int pid); static void del_timeout(struct dlm_lkb *lkb); -void dlm_timeout_warn(struct dlm_lkb *lkb); /* * Lock compatibilty matrix - thanks Steve diff --git a/trunk/fs/dlm/lockspace.c b/trunk/fs/dlm/lockspace.c index 5c108c49cb8c..a0de1cbc603d 100644 --- a/trunk/fs/dlm/lockspace.c +++ b/trunk/fs/dlm/lockspace.c @@ -24,14 +24,6 @@ #include "recover.h" #include "requestqueue.h" -#ifdef CONFIG_DLM_DEBUG -int dlm_create_debug_file(struct dlm_ls *ls); -void dlm_delete_debug_file(struct dlm_ls *ls); -#else -static inline int dlm_create_debug_file(struct dlm_ls *ls) { return 0; } -static inline void dlm_delete_debug_file(struct dlm_ls *ls) { } -#endif - static int ls_count; static struct mutex ls_lock; static struct list_head lslist; diff --git a/trunk/fs/dlm/main.c b/trunk/fs/dlm/main.c index eca2907f2386..58487fb95a4c 100644 --- a/trunk/fs/dlm/main.c +++ b/trunk/fs/dlm/main.c @@ -18,16 +18,6 @@ #include "memory.h" #include "config.h" -#ifdef CONFIG_DLM_DEBUG -int dlm_register_debugfs(void); -void dlm_unregister_debugfs(void); -#else -static inline int dlm_register_debugfs(void) { return 0; } -static inline void dlm_unregister_debugfs(void) { } -#endif -int dlm_netlink_init(void); -void dlm_netlink_exit(void); - static int __init init_dlm(void) { int error;