Searched refs:targetlen (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/jffs2/ |
H A D | dir.c | 295 int ret, targetlen = strlen(target); in jffs2_symlink() local 299 if (targetlen > 254) in jffs2_symlink() 313 ret = jffs2_reserve_space(c, sizeof(*ri) + targetlen, &alloclen, in jffs2_symlink() 333 inode->i_size = targetlen; in jffs2_symlink() 339 ri->data_crc = cpu_to_je32(crc32(0, target, targetlen)); in jffs2_symlink() 342 fn = jffs2_write_dnode(c, f, ri, target, targetlen, ALLOC_NORMAL); in jffs2_symlink() 355 f->target = kmemdup(target, targetlen + 1, GFP_KERNEL); in jffs2_symlink() 357 pr_warn("Can't allocate %d bytes of memory\n", targetlen + 1); in jffs2_symlink()
|