From 144a22cd9f547b54a712e0a78cd698edae12dc23 Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Tue, 7 Feb 2017 14:36:58 +0530 Subject: gfapi: unify calls to glfs_init and friends There were two glfs_init(and friends) invocations per op (create & delete). This patch just unifies those calls (since they anyway belong to same volume) Signed-off-by: Prasanna Kumar Kalever --- rpc/block_svc_routines.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rpc/block_svc_routines.c') diff --git a/rpc/block_svc_routines.c b/rpc/block_svc_routines.c index 91ad630..e2ad31b 100644 --- a/rpc/block_svc_routines.c +++ b/rpc/block_svc_routines.c @@ -376,7 +376,7 @@ glusterBlockCleanUp(struct glfs *glfs, char *blockname, } if (cleanupsuccess == info->nhosts) { - if (glusterBlockDeleteEntry(info->volume, info->gbid)) { + if (glusterBlockDeleteEntry(glfs, info->volume, info->gbid)) { LOG("mgmt", GB_LOG_ERROR, "%s volume: %s host: %s", FAILED_DELETING_FILE, info->volume, "localhost"); } @@ -467,7 +467,7 @@ block_create_cli_1_svc(blockCreateCli *blk, struct svc_req *rqstp) "ENTRYCREATE: INPROGRESS\n", blk->volume, gbid, blk->size, blk->mpath); - ret = glusterBlockCreateEntry(blk, gbid); + ret = glusterBlockCreateEntry(glfs, blk, gbid); if (ret) { GB_METAUPDATE_OR_GOTO(tgmfd, blk->block_name, blk->volume, ret, exist, "ENTRYCREATE: FAIL\n"); -- cgit