iolog: get work items out of shared memory pool
authorJens Axboe <axboe@kernel.dk>
Thu, 22 Jun 2017 21:50:01 +0000 (15:50 -0600)
committerJens 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

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)
-               free(data);
+               sfree(data);
        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;
 
-       data = malloc(sizeof(*data));
+       data = smalloc(sizeof(*data));
        if (!data)
                return 1;