blobfs: fix up the wrong usage of delete API

blob_delete_cb() takes spdk_fs_request as the input
parameter.

Change-Id: Ie6150e7d31d187296a448e82784e2ac2fecfe52c
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/450895
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Changpeng Liu 2019-04-11 02:20:34 -04:00 committed by Ben Walker
parent 2db7378273
commit 1bc959f221

View File

@ -1391,7 +1391,7 @@ spdk_fs_delete_file_async(struct spdk_filesystem *fs, const char *name,
/* If the ref > 0, we mark the file as deleted and delete it when we close it. */ /* If the ref > 0, we mark the file as deleted and delete it when we close it. */
f->is_deleted = true; f->is_deleted = true;
spdk_blob_set_xattr(f->blob, "is_deleted", &f->is_deleted, sizeof(bool)); spdk_blob_set_xattr(f->blob, "is_deleted", &f->is_deleted, sizeof(bool));
spdk_blob_sync_md(f->blob, blob_delete_cb, args); spdk_blob_sync_md(f->blob, blob_delete_cb, req);
return; return;
} }