Lines Matching defs:node
106 struct exfat_inode *node)
113 clus = node->first_clus;
116 max_count = DIV_ROUND_UP(node->size, exfat->clus_size);
118 if (node->size == 0 && node->first_clus == EXFAT_FREE_CLUSTER)
122 if ((node->size == 0 && node->first_clus != EXFAT_FREE_CLUSTER) ||
123 (node->size > 0 && !exfat_heap_clus(exfat, node->first_clus))) {
124 if (repair_file_ask(de_iter, node,
127 node->size, node->first_clus))
135 if (node->is_contiguous)
137 if (repair_file_ask(de_iter, node,
152 if (repair_file_ask(de_iter, node,
163 if (!repair_file_ask(de_iter, node,
171 if (exfat_get_inode_next_clus(exfat, node, clus, &next))
174 if (repair_file_ask(de_iter, node,
182 } else if (!node->is_contiguous) {
185 if (repair_file_ask(de_iter, node,
208 if (repair_file_ask(de_iter, node, ER_FILE_LARGER_SIZE,
219 node->size = count * exfat->clus_size;
221 node->first_clus = EXFAT_FREE_CLUSTER;
236 if (!node->is_contiguous && exfat_heap_clus(exfat, prev)) {
244 struct exfat_inode *node,
249 if (!exfat_heap_clus(exfat, node->first_clus))
252 clus = node->first_clus;
266 if (exfat_get_inode_next_clus(exfat, node, clus, &next)) {
295 node->size = *clus_count * exfat->clus_size;
589 static int check_inode(struct exfat_de_iter *iter, struct exfat_inode *node)
597 ret = check_clus_chain(iter, node);
601 if (node->size > le32_to_cpu(exfat->bs->bsx.clu_count) *
603 fsck_err(iter->parent, node,
605 node->size);
609 if (node->size == 0 && node->is_contiguous) {
610 if (repair_file_ask(iter, node, ER_FILE_ZERO_NOFAT,
619 if ((node->attr & ATTR_SUBDIR) &&
620 node->size % exfat->clus_size != 0) {
621 fsck_err(iter->parent, node,
623 node->size, exfat->clus_size);
816 struct exfat_inode *node = NULL;
855 node = exfat_alloc_inode(le16_to_cpu(file_de->file_attr));
856 if (!node)
872 memcpy(node->name +
877 ret = check_name_dentry_set(iter, node);
892 node->first_clus = le32_to_cpu(stream_de->stream_start_clu);
893 node->is_contiguous =
895 node->size = le64_to_cpu(stream_de->stream_size);
897 if (node->size < le64_to_cpu(stream_de->stream_valid_size)) {
899 if (repair_file_ask(iter, node, ER_FILE_VALID_SIZE,
902 node->size)) {
913 *new_node = node;
931 exfat_free_inode(node);
938 struct exfat_inode *node;
943 ret = read_file_dentry_set(de_iter, &node, dentry_count);
947 ret = check_inode(de_iter, node);
949 exfat_free_inode(node);
953 if (node->attr & ATTR_SUBDIR)
957 *new_node = node;
1119 struct exfat_inode *node = NULL;
1146 ret = read_file(de_iter, &node, &dentry_count);
1155 if (node) {
1156 if ((node->attr & ATTR_SUBDIR) && node->size) {
1157 node->parent = dir;
1158 list_add_tail(&node->sibling,
1160 list_add_tail(&node->list,
1163 exfat_free_inode(node);
1270 "the node is not directory\n");