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 <changpeng.liu@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/450891
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 01:57:46 -04:00 committed by Ben Walker
parent ceb6ef8958
commit 2db7378273

View File

@ -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