Rename list_* function and file to flist_ to avoid conflict with FreeBSD
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/engines/posixaio.c b/engines/posixaio.c
index acd215c..4aa1842 100644
--- a/engines/posixaio.c
+++ b/engines/posixaio.c
@@ -83,7 +83,7 @@
{
struct posixaio_data *pd = td->io_ops->data;
struct aiocb *suspend_list[SUSPEND_ENTRIES];
- struct list_head *entry;
+ struct flist_head *entry;
struct timespec start;
int have_timeout = 0;
int suspend_entries = 0;
@@ -95,8 +95,8 @@
r = 0;
memset(suspend_list, 0, sizeof(*suspend_list));
restart:
- list_for_each(entry, &td->io_u_busylist) {
- struct io_u *io_u = list_entry(entry, struct io_u, list);
+ flist_for_each(entry, &td->io_u_busylist) {
+ struct io_u *io_u = flist_entry(entry, struct io_u, list);
int err;
if (io_u->seen)