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/io_u.c b/io_u.c index 5b9d483..16b52d6 100644 --- a/io_u.c +++ b/io_u.c
@@ -223,7 +223,7 @@ if (!flist_empty(&td->next_rand_list)) { struct rand_off *r; fetch: - r = flist_entry(td->next_rand_list.next, struct rand_off, list); + r = flist_first_entry(&td->next_rand_list, struct rand_off, list); flist_del(&r->list); *b = r->off; free(r);