Lines Matching refs:sort_list
237 struct segment_info *sort_list, *entry, temp; in dcssblk_is_continuous() local
242 sort_list = kcalloc(dev_info->num_of_segments, in dcssblk_is_continuous()
245 if (sort_list == NULL) in dcssblk_is_continuous()
249 memcpy(&sort_list[i], entry, sizeof(struct segment_info)); in dcssblk_is_continuous()
256 if (sort_list[j].start > sort_list[i].start) { in dcssblk_is_continuous()
257 memcpy(&temp, &sort_list[i], in dcssblk_is_continuous()
259 memcpy(&sort_list[i], &sort_list[j], in dcssblk_is_continuous()
261 memcpy(&sort_list[j], &temp, in dcssblk_is_continuous()
267 if ((sort_list[i].end + 1) != sort_list[i+1].start) { in dcssblk_is_continuous()
269 "contiguous\n", sort_list[i].segment_name, in dcssblk_is_continuous()
270 sort_list[i+1].segment_name); in dcssblk_is_continuous()
275 if (sort_list[i].segment_type != sort_list[i+1].segment_type) { in dcssblk_is_continuous()
276 if (!(sort_list[i].segment_type & SEGMENT_EXCLUSIVE) || in dcssblk_is_continuous()
277 (sort_list[i].segment_type == SEG_TYPE_ER) || in dcssblk_is_continuous()
278 !(sort_list[i+1].segment_type & in dcssblk_is_continuous()
280 (sort_list[i+1].segment_type == SEG_TYPE_ER)) { in dcssblk_is_continuous()
283 sort_list[i].segment_name, in dcssblk_is_continuous()
284 sort_list[i+1].segment_name); in dcssblk_is_continuous()
292 kfree(sort_list); in dcssblk_is_continuous()