Home
last modified time | relevance | path

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

/fs/jffs2/
Dgc.c599 uint32_t crc, rawlen; in jffs2_garbage_collect_pristine() local
605 alloclen = rawlen = ref_totlen(c, c->gcblock, raw); in jffs2_garbage_collect_pristine()
613 ret = jffs2_reserve_space_gc(c, alloclen, &alloclen, rawlen); in jffs2_garbage_collect_pristine()
619 if (alloclen < rawlen) { in jffs2_garbage_collect_pristine()
624 node = kmalloc(rawlen, GFP_KERNEL); in jffs2_garbage_collect_pristine()
628 ret = jffs2_flash_read(c, ref_offset(raw), rawlen, &retlen, (char *)node); in jffs2_garbage_collect_pristine()
629 if (!ret && retlen != rawlen) in jffs2_garbage_collect_pristine()
700 ret = jffs2_flash_write(c, phys_ofs, rawlen, &retlen, (char *)node); in jffs2_garbage_collect_pristine()
702 if (ret || (retlen != rawlen)) { in jffs2_garbage_collect_pristine()
704 rawlen, phys_ofs, ret, retlen); in jffs2_garbage_collect_pristine()
[all …]
Dwbuf.c464 uint32_t rawlen = ref_totlen(c, jeb, raw); in jffs2_wbuf_recover() local
471 rawlen, ref_offset(raw), ref_flags(raw), ofs); in jffs2_wbuf_recover()
527 new_ref = jffs2_link_node_ref(c, new_jeb, ofs | ref_flags(raw), rawlen, ic); in jffs2_wbuf_recover()
537 jeb->dirty_size += rawlen; in jffs2_wbuf_recover()
538 jeb->used_size -= rawlen; in jffs2_wbuf_recover()
539 c->dirty_size += rawlen; in jffs2_wbuf_recover()
540 c->used_size -= rawlen; in jffs2_wbuf_recover()
544 ofs += rawlen; in jffs2_wbuf_recover()