Lines Matching refs:target
76 static struct dentry *jffs2_lookup(struct inode *dir_i, struct dentry *target, in jffs2_lookup() argument
86 if (target->d_name.len > JFFS2_MAX_NAME_LEN) in jffs2_lookup()
94 …for (fd_list = dir_f->dents; fd_list && fd_list->nhash <= target->d_name.hash; fd_list = fd_list->… in jffs2_lookup()
95 if (fd_list->nhash == target->d_name.hash && in jffs2_lookup()
97 strlen(fd_list->name) == target->d_name.len && in jffs2_lookup()
98 !strncmp(fd_list->name, target->d_name.name, target->d_name.len)) { in jffs2_lookup()
111 return d_splice_alias(inode, target); in jffs2_lookup()
297 static int jffs2_symlink (struct inode *dir_i, struct dentry *dentry, const char *target) in jffs2_symlink() argument
308 int ret, targetlen = strlen(target); in jffs2_symlink()
352 ri->data_crc = cpu_to_je32(crc32(0, target, targetlen)); in jffs2_symlink()
355 fn = jffs2_write_dnode(c, f, ri, target, targetlen, ALLOC_NORMAL); in jffs2_symlink()
368 f->target = kmemdup(target, targetlen + 1, GFP_KERNEL); in jffs2_symlink()
369 if (!f->target) { in jffs2_symlink()
378 __func__, (char *)f->target); in jffs2_symlink()