| 92 | } |
| 93 | |
| 94 | static struct td_list_head *next_file(struct td_list_head *search_walker, const alloc_data_t *list_search_space) |
| 95 | { |
| 96 | struct td_list_head *tmp_walker; |
| 97 | for(tmp_walker=search_walker->next; |
| 98 | tmp_walker!=&list_search_space->list; |
| 99 | tmp_walker=tmp_walker->next) |
| 100 | { |
| 101 | const alloc_data_t *tmp; |
| 102 | tmp=td_list_entry_const(tmp_walker, const alloc_data_t, list); |
| 103 | if(tmp->file_stat!=NULL && tmp->file_stat->file_hint!=NULL) |
| 104 | return tmp_walker; |
| 105 | } |
| 106 | return search_walker; |
| 107 | } |
| 108 | |
| 109 | static uint64_t get_offset_next_file(const struct td_list_head *search_walker, const alloc_data_t *list_search_space) |
| 110 | { |