Home
last modified time | relevance | path

Searched refs:targetlen (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/fs/jffs2/
Ddir.c294 int ret, targetlen = strlen(target); in jffs2_symlink() local
298 if (targetlen > 254) in jffs2_symlink()
312 ret = jffs2_reserve_space(c, sizeof(*ri) + targetlen, &alloclen, in jffs2_symlink()
332 inode->i_size = targetlen; in jffs2_symlink()
338 ri->data_crc = cpu_to_je32(crc32(0, target, targetlen)); in jffs2_symlink()
341 fn = jffs2_write_dnode(c, f, ri, target, targetlen, ALLOC_NORMAL); in jffs2_symlink()
354 f->target = kmemdup(target, targetlen + 1, GFP_KERNEL); in jffs2_symlink()
356 pr_warn("Can't allocate %d bytes of memory\n", targetlen + 1); in jffs2_symlink()