Lines Matching refs:sort_list
227 struct segment_info *sort_list, *entry, temp; in dcssblk_is_continuous() local
232 sort_list = kzalloc( in dcssblk_is_continuous()
235 if (sort_list == NULL) in dcssblk_is_continuous()
239 memcpy(&sort_list[i], entry, sizeof(struct segment_info)); in dcssblk_is_continuous()
246 if (sort_list[j].start > sort_list[i].start) { in dcssblk_is_continuous()
247 memcpy(&temp, &sort_list[i], in dcssblk_is_continuous()
249 memcpy(&sort_list[i], &sort_list[j], in dcssblk_is_continuous()
251 memcpy(&sort_list[j], &temp, in dcssblk_is_continuous()
257 if ((sort_list[i].end + 1) != sort_list[i+1].start) { in dcssblk_is_continuous()
259 "contiguous\n", sort_list[i].segment_name, in dcssblk_is_continuous()
260 sort_list[i+1].segment_name); in dcssblk_is_continuous()
265 if (sort_list[i].segment_type != sort_list[i+1].segment_type) { in dcssblk_is_continuous()
266 if (!(sort_list[i].segment_type & SEGMENT_EXCLUSIVE) || in dcssblk_is_continuous()
267 (sort_list[i].segment_type == SEG_TYPE_ER) || in dcssblk_is_continuous()
268 !(sort_list[i+1].segment_type & in dcssblk_is_continuous()
270 (sort_list[i+1].segment_type == SEG_TYPE_ER)) { in dcssblk_is_continuous()
273 sort_list[i].segment_name, in dcssblk_is_continuous()
274 sort_list[i+1].segment_name); in dcssblk_is_continuous()
282 kfree(sort_list); in dcssblk_is_continuous()