commit | 12dbd06d3203840c8ebdc4d0a6135a69c4380949 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Thu Jul 03 21:19:57 2014 -0600 |
committer | Mohamad Ayyash <mkayyash@google.com> | Fri Mar 06 17:57:11 2015 -0800 |
tree | 835f4f63fdc3998a85f9de25a31abfa026463bd0 | |
parent | 238934ccc7bfd4f3d2ad5315d1cc75c3efe8d7a1 [diff] [blame] |
flist: add flist_first_entry() Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/gfio.c b/gfio.c index 65302e6..37c1db6 100644 --- a/gfio.c +++ b/gfio.c
@@ -444,7 +444,7 @@ while (!flist_empty(&gc->o_list)) { struct gfio_client_options *gco; - gco = flist_entry(gc->o_list.next, struct gfio_client_options, list); + gco = flist_first_entry(&gc->o_list, struct gfio_client_options, list); flist_del(&gco->list); free(gco); }