projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
67d2a9b
)
iolog: get work items out of shared memory pool
author
Jens Axboe
<axboe@kernel.dk>
Thu, 22 Jun 2017 21:50:01 +0000
(15:50 -0600)
committer
Jens Axboe
<axboe@kernel.dk>
Thu, 22 Jun 2017 21:50:01 +0000
(15:50 -0600)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
iolog.c
patch
|
blob
|
blame
|
history
diff --git
a/iolog.c
b/iolog.c
index 45a95aa410e3fc11c4a8c6c6f6f8b2cca69dba4a..05cabd0c05abb7ff69a75dbb39b1dd4a0e01f036 100644
(file)
--- a/
iolog.c
+++ b/
iolog.c
@@
-1247,7
+1247,7
@@
static int gz_work(struct iolog_flush_data *data)
ret = 0;
done:
if (data->free)
ret = 0;
done:
if (data->free)
- free(data);
+
s
free(data);
return ret;
err:
while (!flist_empty(&list)) {
return ret;
err:
while (!flist_empty(&list)) {
@@
-1348,7
+1348,7
@@
int iolog_cur_flush(struct io_log *log, struct io_logs *cur_log)
{
struct iolog_flush_data *data;
{
struct iolog_flush_data *data;
- data = malloc(sizeof(*data));
+ data =
s
malloc(sizeof(*data));
if (!data)
return 1;
if (!data)
return 1;