Lines Matching defs:ext_list_head

634  * @ext_list_head:	the head of logical extent list.
637 static int insert_extent_by_logical(struct fiemap_extent_list **ext_list_head,
640 struct fiemap_extent_list *ext_list_tmp = *ext_list_head;
646 if (*ext_list_head == NULL) {
647 (*ext_list_head) = ext;
648 (*ext_list_head)->prev = *ext_list_head;
649 (*ext_list_head)->next = *ext_list_head;
660 *ext_list_head = ext;
667 } while (ext_list_tmp != (*ext_list_head));
674 if (ext_list_tmp != *ext_list_head &&
692 * @ext_list_head: the head of physical extent list.
695 static int insert_extent_by_physical(struct fiemap_extent_list **ext_list_head,
698 struct fiemap_extent_list *ext_list_tmp = *ext_list_head;
704 if (*ext_list_head == NULL) {
705 (*ext_list_head) = ext;
706 (*ext_list_head)->prev = *ext_list_head;
707 (*ext_list_head)->next = *ext_list_head;
718 *ext_list_head = ext;
725 } while (ext_list_tmp != (*ext_list_head));
732 if (ext_list_tmp != *ext_list_head &&
780 * @ext_list_head: the head of the extent list.
783 static int join_extents(struct fiemap_extent_list *ext_list_head,
786 __u64 len = ext_list_head->data.len;
787 struct fiemap_extent_list *ext_list_start = ext_list_head;
788 struct fiemap_extent_list *ext_list_tmp = ext_list_head->next;
827 } while (ext_list_tmp != ext_list_head->next);
836 * @ext_list_head: the head of the extent list.
838 static int get_file_extents(int fd, struct fiemap_extent_list **ext_list_head)
888 ext_list_head, ext_list);
998 * @ext_list_head: the extent list head of the target file
1000 static ext4_fsblk_t get_file_blocks(struct fiemap_extent_list *ext_list_head)
1003 struct fiemap_extent_list *ext_list_tmp = ext_list_head;
1008 } while (ext_list_tmp != ext_list_head);
1016 * @ext_list_head: the extent list head of which will be free.
1018 static void free_ext(struct fiemap_extent_list *ext_list_head)
1022 if (ext_list_head == NULL)
1025 while (ext_list_head->next != ext_list_head) {
1026 ext_list_tmp = ext_list_head;
1027 ext_list_head->prev->next = ext_list_head->next;
1028 ext_list_head->next->prev = ext_list_head->prev;
1029 ext_list_head = ext_list_head->next;
1032 free(ext_list_head);
1349 * @ext_list_head: head of the extent list.
1352 const struct stat64 *buf, struct fiemap_extent_list *ext_list_head)
1368 ext_list_tmp = ext_list_head;
1437 } while (ext_list_tmp != ext_list_head);