Home | History | Annotate | Download | only in fio

Lines Matching defs:fld

33 } *fld;
37 flist_add(&ff->list, &fld->free_list);
44 if (flist_empty(&fld->free_list))
47 ff = flist_first_entry(&fld->free_list, struct fio_filelock, list);
61 fio_mutex_up(&fld->lock);
63 fio_mutex_down(&fld->lock);
74 fld = smalloc(sizeof(*fld));
75 if (!fld)
78 INIT_FLIST_HEAD(&fld->list);
79 INIT_FLIST_HEAD(&fld->free_list);
81 if (__fio_mutex_init(&fld->lock, FIO_MUTEX_UNLOCKED))
85 struct fio_filelock *ff = &fld->ffs[i];
89 flist_add_tail(&ff->list, &fld->free_list);
100 if (!fld)
103 assert(flist_empty(&fld->list));
104 __fio_mutex_remove(&fld->lock);
106 while (!flist_empty(&fld->free_list)) {
109 ff = flist_first_entry(&fld->free_list, struct fio_filelock, list);
115 sfree(fld);
116 fld = NULL;
124 flist_for_each(entry, &fld->list) {
162 flist_add(&ff->list, &fld->list);
175 fio_mutex_down(&fld->lock);
179 fio_mutex_up(&fld->lock);
194 fio_mutex_down(&fld->lock);
205 fio_mutex_up(&fld->lock);
232 fio_mutex_down(&fld->lock);
245 fio_mutex_up(&fld->lock);