gfs_controld: Remove three unused functions
Hi,
It appears that these functions are never used,
Steve.
group/gfs_controld/cpg-new.c +0 -36
@@ -530,42 +530,6 @@ static void node_history_init(struct mountgroup *mg, int nodeid, node->added_seq = cg->seq;/* for queries */ } -void node_history_cluster_add (int nodeid) -{ -struct mountgroup *mg; -struct node *node; - -list_for_each_entry (mg, &mountgroups, list) { -node_history_init (mg, nodeid,NULL ); - - node =get_node_history (mg, nodeid); -if (!node) { -log_error ("node_history_cluster_add no nodeid %d" , - nodeid); -return ; - } - - node->cluster_add_time =time (NULL ); - } -} - -void node_history_cluster_remove (int nodeid) -{ -struct mountgroup *mg; -struct node *node; - -list_for_each_entry (mg, &mountgroups, list) { - node =get_node_history (mg, nodeid); -if (!node) { -log_error ("node_history_cluster_remove no nodeid %d" , - nodeid); -return ; - } - - node->cluster_remove_time =time (NULL ); - } -} -static void node_history_start (struct mountgroup *mg,int nodeid) {struct node *node;
group/gfs_controld/gfs_daemon.h +0 -3
@@ -189,8 +189,6 @@ int set_mountgroups(int *count, struct gfsc_mountgroup **mgs_out);int set_mountgroup_nodes (struct mountgroup *mg,int option,int *node_count,struct gfsc_node **nodes_out);void free_mg (struct mountgroup *mg); -void node_history_cluster_add (int nodeid); -void node_history_cluster_remove (int nodeid);/* main.c */ int do_read (int fd,void *buf,size_t count);
@@ -202,7 +200,6 @@ void client_ignore(int ci, int fd);void client_back (int ci,int fd);struct mountgroup *create_mg (char *name);struct mountgroup *find_mg (char *name); -struct mountgroup *find_mg_id (uint32_t id);void client_reply_remount (struct mountgroup *mg,int ci,int result);void client_reply_join (int ci,struct gfsc_mount_args *ma,int result);void client_reply_join_full (struct mountgroup *mg,int result);
group/gfs_controld/main.c +0 -11
@@ -178,17 +178,6 @@ struct mountgroup *find_mg(char *name)return NULL ; } -struct mountgroup *find_mg_id (uint32_t id) -{ -struct mountgroup *mg; - -list_for_each_entry (mg, &mountgroups, list) { -if (mg->id == id) -return mg; - } -return NULL ; -} -enum { Env_ACTION =0 , Env_SUBSYSTEM,