| 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 | { |
| 111 | const struct td_list_head *tmp_walker; |
| 112 | for(tmp_walker=search_walker->next; |
| 113 | tmp_walker!=&list_search_space->list; |
| 114 | tmp_walker=tmp_walker->next) |
| 115 | { |
| 116 | const alloc_data_t *tmp; |
| 117 | tmp=td_list_entry_const(tmp_walker, const alloc_data_t, list); |
| 118 | if(tmp->file_stat!=NULL && tmp->file_stat->file_hint!=NULL) |
| 119 | return tmp->start; |
| 120 | } |
| 121 | return 0; |
| 122 | } |
| 123 | |
| 124 | pstatus_t photorec_bf(struct ph_param *params, const struct ph_options *options, alloc_data_t *list_search_space) |
| 125 | { |