blobfs: remove redundant function __file_close_done

Change-Id: I5264467da9b3ae52c7cb4d2060f0f24551546c15
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.gerrithub.io/423600
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
Changpeng Liu 2018-08-27 23:35:49 -04:00 committed by Ben Walker
parent 18261f8457
commit b14300653f

View File

@ -2531,15 +2531,6 @@ spdk_file_close_async(struct spdk_file *file, spdk_file_op_complete cb_fn, void
spdk_file_sync_async(file, file->fs->md_target.md_io_channel, __file_close_async__sync_done, req);
}
static void
__file_close_done(void *arg, int fserrno)
{
struct spdk_fs_cb_args *args = arg;
args->rc = fserrno;
sem_post(args->sem);
}
static void
__file_close(void *arg)
{
@ -2568,7 +2559,7 @@ spdk_file_close(struct spdk_file *file, struct spdk_io_channel *_channel)
BLOBFS_TRACE(file, "name=%s\n", file->name);
args->file = file;
args->sem = &channel->sem;
args->fn.file_op = __file_close_done;
args->fn.file_op = __wake_caller;
args->arg = req;
channel->send_request(__file_close, req);
sem_wait(&channel->sem);