projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
engines/cpu: style cleanups
[fio.git]
/
engines
/
pmemblk.c
diff --git
a/engines/pmemblk.c
b/engines/pmemblk.c
index 264eb713cf7906ae7acb43737706e345b718a769..fc6358e8e11f3730fc6163127830aaf5bc1ebf7a 100644
(file)
--- a/
engines/pmemblk.c
+++ b/
engines/pmemblk.c
@@
-220,6
+220,8
@@
static fio_pmemblk_file_t pmb_open(const char *pathspec, int flags)
pmb->pmb_nblocks = pmemblk_nblock(pmb->pmb_pool);
fio_pmemblk_cache_insert(pmb);
pmb->pmb_nblocks = pmemblk_nblock(pmb->pmb_pool);
fio_pmemblk_cache_insert(pmb);
+ } else {
+ free(path);
}
pmb->pmb_refcnt += 1;
}
pmb->pmb_refcnt += 1;
@@
-342,7
+344,8
@@
static int fio_pmemblk_get_file_size(struct thread_data *td, struct fio_file *f)
return 0;
}
return 0;
}
-static int fio_pmemblk_queue(struct thread_data *td, struct io_u *io_u)
+static enum fio_q_status fio_pmemblk_queue(struct thread_data *td,
+ struct io_u *io_u)
{
struct fio_file *f = io_u->file;
fio_pmemblk_file_t pmb = FILE_ENG_DATA(f);
{
struct fio_file *f = io_u->file;
fio_pmemblk_file_t pmb = FILE_ENG_DATA(f);
@@
-423,7
+426,7
@@
static int fio_pmemblk_unlink_file(struct thread_data *td, struct fio_file *f)
return 0;
}
return 0;
}
-
static
struct ioengine_ops ioengine = {
+
FIO_STATIC
struct ioengine_ops ioengine = {
.name = "pmemblk",
.version = FIO_IOOPS_VERSION,
.queue = fio_pmemblk_queue,
.name = "pmemblk",
.version = FIO_IOOPS_VERSION,
.queue = fio_pmemblk_queue,