Lines Matching refs:ext_list_head
588 static int insert_extent_by_logical(struct fiemap_extent_list **ext_list_head, in insert_extent_by_logical() argument
591 struct fiemap_extent_list *ext_list_tmp = *ext_list_head; in insert_extent_by_logical()
597 if (*ext_list_head == NULL) { in insert_extent_by_logical()
598 (*ext_list_head) = ext; in insert_extent_by_logical()
599 (*ext_list_head)->prev = *ext_list_head; in insert_extent_by_logical()
600 (*ext_list_head)->next = *ext_list_head; in insert_extent_by_logical()
611 *ext_list_head = ext; in insert_extent_by_logical()
618 } while (ext_list_tmp != (*ext_list_head)); in insert_extent_by_logical()
625 if (ext_list_tmp != *ext_list_head && in insert_extent_by_logical()
646 static int insert_extent_by_physical(struct fiemap_extent_list **ext_list_head, in insert_extent_by_physical() argument
649 struct fiemap_extent_list *ext_list_tmp = *ext_list_head; in insert_extent_by_physical()
655 if (*ext_list_head == NULL) { in insert_extent_by_physical()
656 (*ext_list_head) = ext; in insert_extent_by_physical()
657 (*ext_list_head)->prev = *ext_list_head; in insert_extent_by_physical()
658 (*ext_list_head)->next = *ext_list_head; in insert_extent_by_physical()
669 *ext_list_head = ext; in insert_extent_by_physical()
676 } while (ext_list_tmp != (*ext_list_head)); in insert_extent_by_physical()
683 if (ext_list_tmp != *ext_list_head && in insert_extent_by_physical()
734 static int join_extents(struct fiemap_extent_list *ext_list_head, in join_extents() argument
737 __u64 len = ext_list_head->data.len; in join_extents()
738 struct fiemap_extent_list *ext_list_start = ext_list_head; in join_extents()
739 struct fiemap_extent_list *ext_list_tmp = ext_list_head->next; in join_extents()
778 } while (ext_list_tmp != ext_list_head->next); in join_extents()
789 static int get_file_extents(int fd, struct fiemap_extent_list **ext_list_head) in get_file_extents() argument
839 ext_list_head, ext_list); in get_file_extents()
953 static ext4_fsblk_t get_file_blocks(struct fiemap_extent_list *ext_list_head) in get_file_blocks() argument
956 struct fiemap_extent_list *ext_list_tmp = ext_list_head; in get_file_blocks()
961 } while (ext_list_tmp != ext_list_head); in get_file_blocks()
971 static void free_ext(struct fiemap_extent_list *ext_list_head) in free_ext() argument
975 if (ext_list_head == NULL) in free_ext()
978 while (ext_list_head->next != ext_list_head) { in free_ext()
979 ext_list_tmp = ext_list_head; in free_ext()
980 ext_list_head->prev->next = ext_list_head->next; in free_ext()
981 ext_list_head->next->prev = ext_list_head->prev; in free_ext()
982 ext_list_head = ext_list_head->next; in free_ext()
985 free(ext_list_head); in free_ext()
1309 const struct stat64 *buf, struct fiemap_extent_list *ext_list_head) in call_defrag() argument
1325 ext_list_tmp = ext_list_head; in call_defrag()
1394 } while (ext_list_tmp != ext_list_head); in call_defrag()