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

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: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/450891


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent ceb6ef89
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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