| 35 | inline |
| 36 | #endif |
| 37 | void get_next_header(const alloc_data_t *list_search_space, alloc_data_t **current_search_space, uint64_t *offset) |
| 38 | { |
| 39 | #ifdef DEBUG_GET_NEXT_SECTOR |
| 40 | log_trace(" get_next_header %llu (%llu-%llu)\n", |
| 41 | (unsigned long long)((*offset)/512), |
| 42 | (unsigned long long)((*current_search_space)->start/512), |
| 43 | (unsigned long long)((*current_search_space)->end)/512); |
| 44 | #endif |
| 45 | if((*current_search_space) != list_search_space) |
| 46 | *current_search_space=td_list_entry((*current_search_space)->list.next, alloc_data_t, list); |
| 47 | *offset=(*current_search_space)->start; |
| 48 | } |
| 49 | |
| 50 | /*@ |
| 51 | @ requires \valid_read(list_search_space); |
no outgoing calls
no test coverage detected