lib/blob: rename blob_insert_extent to blob_write_extent_page
The blob_insert_extent() name was confusing, since the function was actually responsible for writting out the extent page to disk. Changed to a more fitting name. Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: Ia312b0ef152100f30d5a1bfe123e55135c8afa6e Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7561 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Community-CI: Mellanox Build Bot
This commit is contained in:
parent
9c3895b6bc
commit
bc9da1c66c
@ -63,7 +63,7 @@ static int blob_get_xattr_value(struct spdk_blob *blob, const char *name,
|
|||||||
const void **value, size_t *value_len, bool internal);
|
const void **value, size_t *value_len, bool internal);
|
||||||
static int blob_remove_xattr(struct spdk_blob *blob, const char *name, bool internal);
|
static int blob_remove_xattr(struct spdk_blob *blob, const char *name, bool internal);
|
||||||
|
|
||||||
static void blob_insert_extent(struct spdk_blob *blob, uint32_t extent, uint64_t cluster_num,
|
static void blob_write_extent_page(struct spdk_blob *blob, uint32_t extent, uint64_t cluster_num,
|
||||||
spdk_blob_op_complete cb_fn, void *cb_arg);
|
spdk_blob_op_complete cb_fn, void *cb_arg);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -7056,7 +7056,7 @@ blob_persist_extent_page_cpl(spdk_bs_sequence_t *seq, void *cb_arg, int bserrno)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
blob_insert_extent(struct spdk_blob *blob, uint32_t extent, uint64_t cluster_num,
|
blob_write_extent_page(struct spdk_blob *blob, uint32_t extent, uint64_t cluster_num,
|
||||||
spdk_blob_op_complete cb_fn, void *cb_arg)
|
spdk_blob_op_complete cb_fn, void *cb_arg)
|
||||||
{
|
{
|
||||||
spdk_bs_sequence_t *seq;
|
spdk_bs_sequence_t *seq;
|
||||||
@ -7131,7 +7131,7 @@ blob_insert_cluster_msg(void *arg)
|
|||||||
}
|
}
|
||||||
/* Extent page already allocated.
|
/* Extent page already allocated.
|
||||||
* Every cluster allocation, requires just an update of single extent page. */
|
* Every cluster allocation, requires just an update of single extent page. */
|
||||||
blob_insert_extent(ctx->blob, *extent_page, ctx->cluster_num,
|
blob_write_extent_page(ctx->blob, *extent_page, ctx->cluster_num,
|
||||||
blob_insert_cluster_msg_cb, ctx);
|
blob_insert_cluster_msg_cb, ctx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user