Searched refs:ref_offset (Results 1 - 14 of 14) sorted by relevance

/linux-4.1.27/fs/jffs2/
H A Dnodelist.c96 frag->node->raw->flash_offset = ref_offset(frag->node->raw) | REF_PRISTINE; jffs2_truncate_fragtree()
109 ref_offset(this->node->raw), this->node->ofs, this->node->ofs+this->node->size); jffs2_obsolete_node_frag()
114 ref_offset(this->node->raw), this->node->ofs, this->node->ofs+this->node->size, this->node->frags); jffs2_obsolete_node_frag()
225 this->ofs, this->ofs+this->size, this->node?(ref_offset(this->node->raw)):0xffffffff, this); jffs2_add_frag_to_fragtree()
252 ref_offset(this->node->raw), ref_flags(this->node->raw)); jffs2_add_frag_to_fragtree()
275 this->ofs, this->ofs+this->size, ref_offset(this->node->raw)); jffs2_add_frag_to_fragtree()
377 fn->ofs, fn->ofs+fn->size, ref_offset(fn->raw), newfrag); jffs2_add_full_dnode_to_inode()
614 BUG_ON(ref_offset(ref) != jeb->offset); jffs2_link_node_ref()
615 } else if (unlikely(ref_offset(ref) != jeb->offset + c->sector_size - jeb->free_size)) { jffs2_link_node_ref()
619 ref, ref_offset(ref), ref_offset(ref)+len, jffs2_link_node_ref()
620 ref_offset(jeb->last_node), jffs2_link_node_ref()
621 ref_offset(jeb->last_node)+last_len); jffs2_link_node_ref()
700 ref_end = ref_offset(next_ref); __ref_totlen()
708 ref, ref_offset(ref), jeb->last_node, __ref_totlen()
710 ref_offset(jeb->last_node) : 0); __ref_totlen()
715 return ref_end - ref_offset(ref); __ref_totlen()
731 ref, ref_offset(ref), ref_offset(ref) + ref->__totlen, __jffs2_ref_totlen()
735 ref_next(ref), ref_offset(ref_next(ref)), __jffs2_ref_totlen()
736 ref_offset(ref_next(ref)) + ref->__totlen); __jffs2_ref_totlen()
H A Dread.c38 ret = jffs2_flash_read(c, ref_offset(fd->raw), sizeof(*ri), &readlen, (char *)ri); jffs2_read_dnode()
42 ref_offset(fd->raw), ret); jffs2_read_dnode()
48 ref_offset(fd->raw), sizeof(*ri), readlen); jffs2_read_dnode()
54 ref_offset(fd->raw), je32_to_cpu(ri->node_crc), jffs2_read_dnode()
59 je32_to_cpu(ri->node_crc), crc, ref_offset(fd->raw)); jffs2_read_dnode()
115 ret = jffs2_flash_read(c, (ref_offset(fd->raw)) + sizeof(*ri), jffs2_read_dnode()
126 je32_to_cpu(ri->data_crc), crc, ref_offset(fd->raw)); jffs2_read_dnode()
210 ref_offset(frag->node->raw), jffs2_read_inode_range()
H A Dreadinode.c43 ofs = ref_offset(ref) + sizeof(struct jffs2_raw_inode); check_node_data()
53 ref_offset(ref), tn->csize, ofs); check_node_data()
62 ref_offset(ref), tn->csize, tn->partial_crc, tn->data_crc, ofs - len, ofs, len); check_node_data()
109 ref_offset(ref), tn->data_crc, crc); check_node_data()
161 tn->fn->ofs, tn->fn->ofs + tn->fn->size, ref_offset(tn->fn->raw)); check_tn_node()
225 dbg_readinode("insert fragment %#04x-%#04x, ver %u at %08x\n", tn->fn->ofs, fn_end, tn->version, ref_offset(tn->fn->raw)); jffs2_add_tn_to_tree()
573 dbg_noderef("node at 0x%08x is obsoleted. Ignoring.\n", ref_offset(ref)); jffs2_first_valid_node()
599 ref_offset(ref), je32_to_cpu(rd->node_crc), crc); read_direntry()
612 ref_offset(ref), rd->nsize, je32_to_cpu(rd->totlen)); read_direntry()
625 ref->flash_offset = ref_offset(ref) | dirent_node_state(rd); read_direntry()
661 err = jffs2_flash_read(c, (ref_offset(ref)) + read, read_direntry()
708 ref_offset(ref), je32_to_cpu(rd->node_crc), crc); read_dnode()
728 JFFS2_WARNING("inode node header CRC is corrupted at %#08x\n", ref_offset(ref)); read_dnode()
729 jffs2_dbg_dump_node(c, ref_offset(ref)); read_dnode()
784 ref_offset(ref), tn->partial_crc, je32_to_cpu(rd->data_crc)); read_dnode()
807 ref->flash_offset = ref_offset(ref) | REF_NORMAL; read_dnode()
837 ref_offset(ref), je32_to_cpu(rd->version), read_dnode()
873 ref_offset(ref)); read_unknown()
887 je16_to_cpu(un->nodetype), ref_offset(ref)); read_unknown()
894 je16_to_cpu(un->nodetype), ref_offset(ref)); read_unknown()
900 je16_to_cpu(un->nodetype), ref_offset(ref)); read_unknown()
905 je16_to_cpu(un->nodetype), ref_offset(ref)); read_unknown()
935 offs = ref_offset(ref) + *rdlen; read_more()
1015 end = ref_offset(ref) + len; jffs2_get_inode_nodes()
1019 len = end - ref_offset(ref); jffs2_get_inode_nodes()
1022 dbg_readinode("read %d bytes at %#08x(%d).\n", len, ref_offset(ref), ref_flags(ref)); jffs2_get_inode_nodes()
1025 err = jffs2_flash_read(c, ref_offset(ref), len, &retlen, buf); jffs2_get_inode_nodes()
1027 JFFS2_ERROR("can not read %d bytes from 0x%08x, error code: %d.\n", len, ref_offset(ref), err); jffs2_get_inode_nodes()
1032 JFFS2_ERROR("short read at %#08x: %zu instead of %d.\n", ref_offset(ref), retlen, len); jffs2_get_inode_nodes()
1042 ref_offset(ref), je16_to_cpu(node->u.magic), jffs2_get_inode_nodes()
1046 jffs2_dbg_dump_node(c, ref_offset(ref)); jffs2_get_inode_nodes()
1053 je16_to_cpu(node->u.magic), ref_offset(ref)); jffs2_get_inode_nodes()
1201 ret = jffs2_flash_read(c, ref_offset(rii.latest_ref), sizeof(*latest_node), &retlen, (void *)latest_node); jffs2_do_read_inode_internal()
1214 f->inocache->ino, ref_offset(rii.latest_ref)); jffs2_do_read_inode_internal()
1266 ret = jffs2_flash_read(c, ref_offset(rii.latest_ref) + sizeof(*latest_node), jffs2_do_read_inode_internal()
H A Dgc.c275 ref_offset(raw)); jffs2_garbage_collect_pass()
291 ref_offset(raw)); jffs2_garbage_collect_pass()
333 __func__, jeb->offset, ref_offset(raw), ref_flags(raw), jffs2_garbage_collect_pass()
452 ref_offset(jeb->gc_node)); jffs2_garbage_collect_pass()
557 ref_offset(raw), f->inocache->ino); jffs2_garbage_collect_live()
561 jffs2_dbg_dump_node(c, ref_offset(raw)); jffs2_garbage_collect_live()
583 ref_offset(raw)); jffs2_garbage_collect_pristine()
608 ret = jffs2_flash_read(c, ref_offset(raw), rawlen, &retlen, (char *)node); jffs2_garbage_collect_pristine()
617 ref_offset(raw), je32_to_cpu(node->u.hdr_crc), crc); jffs2_garbage_collect_pristine()
626 ref_offset(raw), je32_to_cpu(node->i.node_crc), jffs2_garbage_collect_pristine()
635 ref_offset(raw), jffs2_garbage_collect_pristine()
646 ref_offset(raw), jffs2_garbage_collect_pristine()
653 ref_offset(raw)); jffs2_garbage_collect_pristine()
661 ref_offset(raw), jffs2_garbage_collect_pristine()
671 ref_offset(raw), je16_to_cpu(node->u.nodetype)); jffs2_garbage_collect_pristine()
728 ref_offset(raw)); jffs2_garbage_collect_pristine()
922 ref_offset(raw)); jffs2_garbage_collect_deletion_dirent()
926 ret = jffs2_flash_read(c, ref_offset(raw), rawlen, &retlen, (char *)rd); jffs2_garbage_collect_deletion_dirent()
929 __func__, ret, ref_offset(raw)); jffs2_garbage_collect_deletion_dirent()
936 ref_offset(raw)); jffs2_garbage_collect_deletion_dirent()
961 ref_offset(fd->raw), fd->name, jffs2_garbage_collect_deletion_dirent()
962 ref_offset(raw), je32_to_cpu(rd->ino)); jffs2_garbage_collect_deletion_dirent()
1013 ret = jffs2_flash_read(c, ref_offset(fn->raw), sizeof(ri), &readlen, (char *)&ri); jffs2_garbage_collect_hole()
1021 __func__, ref_offset(fn->raw), jffs2_garbage_collect_hole()
1027 __func__, ref_offset(fn->raw), jffs2_garbage_collect_hole()
1034 __func__, ref_offset(fn->raw), jffs2_garbage_collect_hole()
1043 __func__, ref_offset(fn->raw)); jffs2_garbage_collect_hole()
1215 ref_offset(raw)); jffs2_garbage_collect_dnode()
1271 ref_offset(raw)); jffs2_garbage_collect_dnode()
H A Ddebug.c89 ref_offset(fn->raw), fn->frags); __jffs2_dbg_fragtree_paranoia_check_nolock()
101 ref_offset(fn->raw)); __jffs2_dbg_fragtree_paranoia_check_nolock()
108 ref_offset(fn->raw), frag->ofs, frag->ofs+frag->size); __jffs2_dbg_fragtree_paranoia_check_nolock()
321 if (ref_offset(ref2) < jeb->offset || __jffs2_dbg_acct_paranoia_check_nolock()
322 ref_offset(ref2) > jeb->offset + c->sector_size) { __jffs2_dbg_acct_paranoia_check_nolock()
324 ref_offset(ref2), jeb->offset); __jffs2_dbg_acct_paranoia_check_nolock()
337 ref_offset(ref2), ref2, ref_offset(ref_next(ref2)), ref_next(ref2), __jffs2_dbg_acct_paranoia_check_nolock()
338 ref_offset(jeb->last_node), jeb->last_node); __jffs2_dbg_acct_paranoia_check_nolock()
415 printk("%#08x", ref_offset(ref)); __jffs2_dbg_dump_node_refs_nolock()
713 this->ofs, this->ofs+this->size, ref_offset(this->node->raw), __jffs2_dbg_dump_fragtree_nolock()
727 printk(JFFS2_DBG "metadata at 0x%08x\n", ref_offset(f->metadata->raw)); __jffs2_dbg_dump_fragtree_nolock()
H A Dxattr.c143 offset = ref_offset(xd->node); do_verify_xattr_datum()
185 jeb = &c->blocks[ref_offset(raw) / c->sector_size]; do_verify_xattr_datum()
191 raw->flash_offset = ref_offset(raw) | ((xd->node==raw) ? REF_PRISTINE : REF_NORMAL); do_verify_xattr_datum()
220 ret = jffs2_flash_read(c, ref_offset(xd->node)+sizeof(struct jffs2_raw_xattr), do_load_xattr_datum()
225 ret, length, readlen, ref_offset(xd->node)); do_load_xattr_datum()
235 ref_offset(xd->node), xd->data_crc, crc); do_load_xattr_datum()
456 offset = ref_offset(ref->node); verify_xattr_ref()
491 jeb = &c->blocks[ref_offset(raw) / c->sector_size]; verify_xattr_ref()
497 raw->flash_offset = ref_offset(raw) | ((ref->node==raw) ? REF_PRISTINE : REF_NORMAL); verify_xattr_ref()
502 ref->ino, ref->xid, ref_offset(ref->node)); verify_xattr_ref()
1229 old_ofs = ref_offset(xd->node); jffs2_garbage_collect_xattr_datum()
1240 xd->xid, xd->version, old_ofs, ref_offset(xd->node)); jffs2_garbage_collect_xattr_datum()
1262 old_ofs = ref_offset(ref->node); jffs2_garbage_collect_xattr_ref()
1274 ref->ic->ino, ref->xd->xid, old_ofs, ref_offset(ref->node)); jffs2_garbage_collect_xattr_ref()
1300 jeb = &c->blocks[ref_offset(raw) / c->sector_size]; jffs2_verify_xattr()
1304 raw->flash_offset = ref_offset(raw) jffs2_verify_xattr()
H A Dnodemgmt.c594 __func__, ref_offset(ref)); jffs2_mark_node_obsolete()
628 ref_offset(ref), freed_len); jffs2_mark_node_obsolete()
639 ref_offset(ref), freed_len); jffs2_mark_node_obsolete()
673 ref->flash_offset = ref_offset(ref) | REF_OBSOLETE; jffs2_mark_node_obsolete()
757 ref_offset(ref)); jffs2_mark_node_obsolete()
758 ret = jffs2_flash_read(c, ref_offset(ref), sizeof(n), &retlen, (char *)&n); jffs2_mark_node_obsolete()
761 ref_offset(ref), ret); jffs2_mark_node_obsolete()
766 ref_offset(ref), retlen); jffs2_mark_node_obsolete()
776 ref_offset(ref), je16_to_cpu(n.nodetype)); jffs2_mark_node_obsolete()
781 ret = jffs2_flash_write(c, ref_offset(ref), sizeof(n), &retlen, (char *)&n); jffs2_mark_node_obsolete()
784 ref_offset(ref), ret); jffs2_mark_node_obsolete()
789 ref_offset(ref), retlen); jffs2_mark_node_obsolete()
H A Dwbuf.c302 (next && ref_offset(next) <= c->wbuf_ofs)) { jffs2_wbuf_recover()
304 ref_offset(raw), ref_flags(raw), jffs2_wbuf_recover()
305 (ref_offset(raw) + ref_totlen(c, jeb, raw)), jffs2_wbuf_recover()
310 ref_offset(raw), ref_flags(raw), jffs2_wbuf_recover()
311 (ref_offset(raw) + ref_totlen(c, jeb, raw))); jffs2_wbuf_recover()
324 start = ref_offset(first_raw); jffs2_wbuf_recover()
325 end = ref_offset(jeb->last_node); jffs2_wbuf_recover()
376 start = ref_offset(first_raw); jffs2_wbuf_recover()
471 rawlen, ref_offset(raw), ref_flags(raw), ofs); jffs2_wbuf_recover()
518 (void *)(buf?:c->wbuf) + (ref_offset(raw) - start)); jffs2_wbuf_recover()
541 raw->flash_offset = ref_offset(raw) | REF_OBSOLETE; jffs2_wbuf_recover()
H A Dnodelist.h137 #define ref_offset(ref) ((ref)->flash_offset & ~3) macro
139 #define mark_ref_normal(ref) do { (ref)->flash_offset = ref_offset(ref) | REF_NORMAL; } while(0)
H A Dbuild.c250 dbg_fsbuild("obsoleting node at 0x%08x\n", ref_offset(raw)); jffs2_build_remove_unlinked_inode()
H A Derase.c291 ref_offset(this), ref_flags(this)); jffs2_remove_node_refs_from_ino_list()
H A Dwrite.c614 fd->ino, ref_offset(fd->raw)); jffs2_do_unlink()
/linux-4.1.27/fs/btrfs/
H A Drelocation.c3495 u64 ref_offset; find_data_references() local
3505 ref_offset = btrfs_extent_data_ref_offset(leaf, ref); find_data_references()
3534 if (ref_offset > ((u64)-1 << 32)) find_data_references()
3537 key.offset = ref_offset; find_data_references()
3609 if (key.offset != ref_offset) find_data_references()
H A Dextent-tree.c1611 u64 ref_offset; lookup_inline_extent_backref() local
1612 ref_offset = btrfs_extent_inline_ref_offset(leaf, iref); lookup_inline_extent_backref()
1614 if (parent == ref_offset) { lookup_inline_extent_backref()
1618 if (ref_offset < parent) lookup_inline_extent_backref()
1621 if (root_objectid == ref_offset) { lookup_inline_extent_backref()
1625 if (ref_offset < root_objectid) lookup_inline_extent_backref()

Completed in 277 milliseconds