Lines Matching refs:index
71 struct squashfs_dir_index *index; in get_dir_index_using_name() local
76 index = kmalloc(sizeof(*index) + SQUASHFS_NAME_LEN * 2 + 2, GFP_KERNEL); in get_dir_index_using_name()
77 if (index == NULL) { in get_dir_index_using_name()
82 str = &index->name[SQUASHFS_NAME_LEN + 1]; in get_dir_index_using_name()
87 err = squashfs_read_metadata(sb, index, &index_start, in get_dir_index_using_name()
88 &index_offset, sizeof(*index)); in get_dir_index_using_name()
93 size = le32_to_cpu(index->size) + 1; in get_dir_index_using_name()
97 err = squashfs_read_metadata(sb, index->name, &index_start, in get_dir_index_using_name()
102 index->name[size] = '\0'; in get_dir_index_using_name()
104 if (strcmp(index->name, str) > 0) in get_dir_index_using_name()
107 length = le32_to_cpu(index->index); in get_dir_index_using_name()
108 *next_block = le32_to_cpu(index->start_block) + in get_dir_index_using_name()
113 kfree(index); in get_dir_index_using_name()