Home
last modified time | relevance | path

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

/linux-3.4.99/fs/jffs2/
Dgc.c579 uint32_t crc, rawlen; in jffs2_garbage_collect_pristine() local
585 alloclen = rawlen = ref_totlen(c, c->gcblock, raw); in jffs2_garbage_collect_pristine()
593 ret = jffs2_reserve_space_gc(c, alloclen, &alloclen, rawlen); in jffs2_garbage_collect_pristine()
599 if (alloclen < rawlen) { in jffs2_garbage_collect_pristine()
604 node = kmalloc(rawlen, GFP_KERNEL); in jffs2_garbage_collect_pristine()
608 ret = jffs2_flash_read(c, ref_offset(raw), rawlen, &retlen, (char *)node); in jffs2_garbage_collect_pristine()
609 if (!ret && retlen != rawlen) in jffs2_garbage_collect_pristine()
680 ret = jffs2_flash_write(c, phys_ofs, rawlen, &retlen, (char *)node); in jffs2_garbage_collect_pristine()
682 if (ret || (retlen != rawlen)) { in jffs2_garbage_collect_pristine()
684 rawlen, phys_ofs, ret, retlen); in jffs2_garbage_collect_pristine()
[all …]
Dwbuf.c463 uint32_t rawlen = ref_totlen(c, jeb, raw); in jffs2_wbuf_recover() local
470 rawlen, ref_offset(raw), ref_flags(raw), ofs); in jffs2_wbuf_recover()
526 new_ref = jffs2_link_node_ref(c, new_jeb, ofs | ref_flags(raw), rawlen, ic); in jffs2_wbuf_recover()
536 jeb->dirty_size += rawlen; in jffs2_wbuf_recover()
537 jeb->used_size -= rawlen; in jffs2_wbuf_recover()
538 c->dirty_size += rawlen; in jffs2_wbuf_recover()
539 c->used_size -= rawlen; in jffs2_wbuf_recover()
543 ofs += rawlen; in jffs2_wbuf_recover()