blobstore: fix declaration after statement
Change-Id: I1439b471b101b390fcbef558039f2a543f465acd Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/367121 Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
6d4147c2de
commit
4671369ab2
@ -427,6 +427,7 @@ _spdk_blob_serialize(const struct spdk_blob *blob, struct spdk_blob_md_page **pa
|
|||||||
int rc;
|
int rc;
|
||||||
uint8_t *buf;
|
uint8_t *buf;
|
||||||
size_t remaining_sz;
|
size_t remaining_sz;
|
||||||
|
uint64_t last_cluster;
|
||||||
|
|
||||||
assert(pages != NULL);
|
assert(pages != NULL);
|
||||||
assert(page_count != NULL);
|
assert(page_count != NULL);
|
||||||
@ -484,7 +485,7 @@ _spdk_blob_serialize(const struct spdk_blob *blob, struct spdk_blob_md_page **pa
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Serialize extents */
|
/* Serialize extents */
|
||||||
uint64_t last_cluster = 0;
|
last_cluster = 0;
|
||||||
while (last_cluster < blob->active.num_clusters) {
|
while (last_cluster < blob->active.num_clusters) {
|
||||||
_spdk_blob_serialize_extent(blob, last_cluster, &last_cluster,
|
_spdk_blob_serialize_extent(blob, last_cluster, &last_cluster,
|
||||||
buf, remaining_sz);
|
buf, remaining_sz);
|
||||||
|
Loading…
Reference in New Issue
Block a user