From 2db73782738848b03c58b17cb7b3b8578e4eb8ac Mon Sep 17 00:00:00 2001 From: Changpeng Liu Date: Thu, 11 Apr 2019 01:57:46 -0400 Subject: [PATCH] blobfs: fix the wrong parameter usage for truncate API fs_truncate_complete_cb() takes spdk_fs_request as the input parameter. Change-Id: I0413fecd30a1f7cb6528b502848fa999454ba638 Signed-off-by: Changpeng Liu Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/450891 Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- lib/blobfs/blobfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blobfs/blobfs.c b/lib/blobfs/blobfs.c index a5e38cb54..f95b4166a 100644 --- a/lib/blobfs/blobfs.c +++ b/lib/blobfs/blobfs.c @@ -1523,7 +1523,7 @@ fs_truncate_resize_cb(void *ctx, int bserrno) file->append_pos = file->length; } - spdk_blob_sync_md(file->blob, fs_truncate_complete_cb, args); + spdk_blob_sync_md(file->blob, fs_truncate_complete_cb, req); } static uint64_t