dlm: remove file
PATCH 2/3 dlm: remove file
The reduced member_sysfs.c is no longer related to lockspace members. Move what's left into lockspace.c which is the only file that uses the remaining functions.
Signed-off-by David Teigland <[email protected]>
---
Makefile | 1 lockspace.c | 155 +++++++++++++++++++++++++++++++++++++++++++++++++++-- lockspace.h | 1 main.c | 14 +--- member.c | 2 member_sysfs.c | 165 --------------------------------------------------------- member_sysfs.h | 22 ------- 7 files changed, 156 insertions(+), 204 deletions(-)
drivers/dlm/Makefile +0 -1
@@ -9,7 +9,6 @@ dlm-y := ast.o \ lowcomms.o \ main.o \ member.o \ - member_sysfs.o \ memory.o \ midcomms.o \ rcom.o \
drivers/dlm/lockspace.c +150 -5
191 lines not on this page · raw message
drivers/dlm/lockspace.h +1 -0
@@ -15,6 +15,7 @@#define __LOCKSPACE_DOT_H__int dlm_lockspace_init (void ); +void dlm_lockspace_exit (void );struct dlm_ls *dlm_find_lockspace_global (uint32_t id);struct dlm_ls *dlm_find_lockspace_local (void *id);struct dlm_ls *dlm_find_lockspace_name (char *name,int namelen);
drivers/dlm/main.c +4 -10
@@ -13,9 +13,7 @@#include "dlm_internal.h" #include "lockspace.h" -#include "member_sysfs.h" #include "lock.h" -#include "device.h" #include "memory.h" #include "lowcomms.h" #include "config.h"
@@ -40,13 +38,9 @@ static int __init init_dlm(void)if (error) goto out_mem; - error =dlm_member_sysfs_init (); -if (error) - goto out_mem; - error =dlm_config_init ();if (error) - goto out_member; + goto out_lockspace; error =dlm_register_debugfs ();if (error)
@@ -64,8 +58,8 @@ static int __init init_dlm(void)dlm_unregister_debugfs (); out_config:dlm_config_exit (); - out_member: -dlm_member_sysfs_exit (); + out_lockspace: +dlm_lockspace_exit (); out_mem:dlm_memory_exit (); out:
@@ -75,9 +69,9 @@ static int __init init_dlm(void) static void __exit exit_dlm(void) {dlm_lowcomms_exit (); -dlm_member_sysfs_exit ();dlm_config_exit ();dlm_memory_exit (); +dlm_lockspace_exit ();dlm_unregister_debugfs (); }
drivers/dlm/member.c +1 -1
@@ -221,7 +221,7 @@ int dlm_recover_members(struct dlm_ls *l }/* -* Following called from member_sysfs.c +* Following called from lockspace.c */ int dlm_ls_stop (struct dlm_ls *ls)
drivers/dlm/member_sysfs.c +0 -165
165 lines not on this page · raw message
drivers/dlm/member_sysfs.h +0 -22
@@ -1,22 +0,0 @@ -/****************************************************************************** -******************************************************************************* -** -** Copyright (C) 2005 Red Hat, Inc. All rights reserved. -** -** This copyrighted material is made available to anyone wishing to use, -** modify, copy, or redistribute it subject to the terms and conditions -** of the GNU General Public License v.2. -** -******************************************************************************* -******************************************************************************/ - -#ifndef __MEMBER_SYSFS_DOT_H__ -#define __MEMBER_SYSFS_DOT_H__ - -int dlm_member_sysfs_init (void ); -void dlm_member_sysfs_exit (void ); -int dlm_kobject_setup (struct dlm_ls *ls); -int dlm_uevent (struct dlm_ls *ls,int in); - -#endif /* __MEMBER_SYSFS_DOT_H__ */ -