Commit b1430065 authored by Changpeng Liu's avatar Changpeng Liu Committed by Ben Walker
Browse files

blobfs: remove redundant function __file_close_done



Change-Id: I5264467da9b3ae52c7cb4d2060f0f24551546c15
Signed-off-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.gerrithub.io/423600


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
parent 18261f84
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -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);