[sheepdog] [PATCH] sheep: remove unused sheep_do_op_work

Liu Yuan namei.unix at gmail.com
Fri Oct 25 10:37:41 CEST 2013


Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
 sheep/ops.c        |    5 -----
 sheep/sheep_priv.h |    1 -
 2 files changed, 6 deletions(-)

diff --git a/sheep/ops.c b/sheep/ops.c
index b9c68be..b715af6 100644
--- a/sheep/ops.c
+++ b/sheep/ops.c
@@ -1385,11 +1385,6 @@ int do_process_main(const struct sd_op_template *op, const struct sd_req *req,
 	return op->process_main(req, rsp, data);
 }
 
-int sheep_do_op_work(const struct sd_op_template *op, struct request *req)
-{
-	return op->process_work(req);
-}
-
 static int map_table[] = {
 	[SD_OP_CREATE_AND_WRITE_OBJ] = SD_OP_CREATE_AND_WRITE_PEER,
 	[SD_OP_READ_OBJ] = SD_OP_READ_PEER,
diff --git a/sheep/sheep_priv.h b/sheep/sheep_priv.h
index 0c44651..20ec2be 100644
--- a/sheep/sheep_priv.h
+++ b/sheep/sheep_priv.h
@@ -390,7 +390,6 @@ bool has_process_main(const struct sd_op_template *op);
 void do_process_work(struct work *work);
 int do_process_main(const struct sd_op_template *op, const struct sd_req *req,
 		    struct sd_rsp *rsp, void *data);
-int sheep_do_op_work(const struct sd_op_template *op, struct request *req);
 int gateway_to_peer_opcode(int opcode);
 
 extern uint32_t last_gathered_epoch;
-- 
1.7.9.5




More information about the sheepdog mailing list