Lines Matching refs:dentries
174 struct dentry *dentries; in build_directory() local
184 dentries = calloc(entries, sizeof(struct dentry)); in build_directory()
185 if (dentries == NULL) in build_directory()
189 dentries[i].name = (unsigned char *)strdup(namelist[i]->d_name); in build_directory()
190 if (dentries[i].name == NULL) { in build_directory()
194 dentries[i].len = strlen((char *)dentries[i].name); in build_directory()
196 ret = asprintf(&dentries[i].path, "%s%s", in build_directory()
199 ret = asprintf(&dentries[i].full_path, "%s/%s", in build_directory()
204 set_inode_metadata(dentries + i); in build_directory()
206 dentries[i].pino = dir_ino; in build_directory()
211 f2fs_make_directory(sbi, entries, dentries); in build_directory()
214 if (dentries[i].file_type == F2FS_FT_REG_FILE) { in build_directory()
215 f2fs_build_file(sbi, dentries + i); in build_directory()
216 } else if (dentries[i].file_type == F2FS_FT_DIR) { in build_directory()
221 dentries[i].full_path); in build_directory()
224 dentries[i].path); in build_directory()
228 target_out_dir, dentries[i].ino); in build_directory()
231 } else if (dentries[i].file_type == F2FS_FT_SYMLINK) { in build_directory()
240 ret = set_selinux_xattr(sbi, dentries[i].path, in build_directory()
241 dentries[i].ino, dentries[i].mode); in build_directory()
245 free(dentries[i].path); in build_directory()
246 free(dentries[i].full_path); in build_directory()
247 free((void *)dentries[i].name); in build_directory()
250 free(dentries); in build_directory()