Commit a2d31d86 authored by Shane Snyder's avatar Shane Snyder

remove unneeded params to create_write_persist

parent ce4fe651
......@@ -201,8 +201,6 @@ int bake_persist(
*
* @param [in] provider provider handle
* @param [in] bti BAKE target identifier
* @param [in] region_size size of region to be created
* @param [in] region_offset offset into the target region to write
* @param [in] buf local memory buffer to write
* @param [in] buf_size size of local memory buffer to write
* @param [out] rid identifier for new region
......@@ -211,8 +209,6 @@ int bake_persist(
int bake_create_write_persist(
bake_provider_handle_t provider,
bake_target_id_t bti,
uint64_t region_size,
uint64_t region_offset,
void const *buf,
uint64_t buf_size,
bake_region_id_t *rid);
......@@ -221,8 +217,6 @@ int bake_create_write_persist(
*
* @param [in] provider provider handle
* @param [in] bti BAKE target identifier
* @param [in] region_size size of region to be created
* @param [in] region_offset offset into the target region to write
* @param [in] remote_bulk bulk_handle for remote data region to write from
* @param [in] remote_offset offset in the remote bulk handle to write from
* @param [in] remote_addr address string of the remote target to write from
......@@ -233,8 +227,6 @@ int bake_create_write_persist(
int bake_create_write_persist_proxy(
bake_provider_handle_t provider,
bake_target_id_t bti,
uint64_t region_size,
uint64_t region_offset,
hg_bulk_t remote_bulk,
uint64_t remote_offset,
const char* remote_addr,
......
......@@ -500,8 +500,6 @@ int bake_persist(
int bake_create_write_persist(
bake_provider_handle_t provider,
bake_target_id_t bti,
uint64_t region_size,
uint64_t region_offset,
void const *buf,
uint64_t buf_size,
bake_region_id_t *rid)
......@@ -515,8 +513,6 @@ int bake_create_write_persist(
/* XXX eager path? */
in.bti = bti;
in.region_size = region_size;
in.region_offset = region_offset;
in.bulk_offset = 0;
in.bulk_size = buf_size;
in.remote_addr_str = NULL; /* set remote_addr to NULL to disable proxy write */
......@@ -564,8 +560,6 @@ int bake_create_write_persist(
int bake_create_write_persist_proxy(
bake_provider_handle_t provider,
bake_target_id_t bti,
uint64_t region_size,
uint64_t region_offset,
hg_bulk_t remote_bulk,
uint64_t remote_offset,
const char* remote_addr,
......@@ -579,8 +573,6 @@ int bake_create_write_persist_proxy(
int ret;
in.bti = bti;
in.region_size = region_size;
in.region_offset = region_offset;
in.bulk_handle = remote_bulk;
in.bulk_offset = remote_offset;
in.bulk_size = size;
......
......@@ -581,9 +581,9 @@ static void bake_create_write_persist_ult(hg_handle_t handle)
}
prid = (pmemobj_region_id_t*)out.rid.data;
prid->size = in.region_size;
prid->size = in.bulk_size;
ret = pmemobj_alloc(entry->pmem_pool, &prid->oid,
in.region_size, 0, NULL, NULL);
in.bulk_size, 0, NULL, NULL);
if(ret != 0)
{
out.ret = -1;
......
......@@ -115,7 +115,7 @@ int main(int argc, char *argv[])
strcpy(buf, test_str);
buf_size = strlen(test_str) + 1;
ret = bake_create_write_persist(bph, bti, buf_size, 0, buf, buf_size, &the_rid);
ret = bake_create_write_persist(bph, bti, buf, buf_size, &the_rid);
if(ret != 0)
{
fprintf(stderr, "Error: bake_create_write_persist()\n");
......
......@@ -115,7 +115,7 @@ int main(int argc, char *argv[])
strcpy(buf, test_str);
buf_size = strlen(test_str) + 1;
ret = bake_create_write_persist(bph, bti, buf_size, 0, buf, buf_size, &the_rid);
ret = bake_create_write_persist(bph, bti, buf, buf_size, &the_rid);
if(ret != 0)
{
fprintf(stderr, "Error: bake_create_write_persist()\n");
......
......@@ -235,7 +235,7 @@ static void proxy_write_ult(hg_handle_t handle)
*/
ret = bake_create_write_persist_proxy(
g_proxy_svr_ctx->svr_bph, g_proxy_svr_ctx->svr_bti,
in.bulk_size, 0, in.bulk_handle, in.bulk_offset, in.bulk_addr,
in.bulk_handle, in.bulk_offset, in.bulk_addr,
in.bulk_size, &(g_proxy_svr_ctx->the_rid));
assert(ret == 0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment