/fs/jffs2/ |
D | readinode.c | 43 ofs = ref_offset(ref) + sizeof(struct jffs2_raw_inode); in check_node_data() 53 ref_offset(ref), tn->csize, ofs); in check_node_data() 62 ref_offset(ref), tn->csize, tn->partial_crc, tn->data_crc, ofs - len, ofs, len); in check_node_data() 109 ref_offset(ref), tn->data_crc, crc); in check_node_data() 161 tn->fn->ofs, tn->fn->ofs + tn->fn->size, ref_offset(tn->fn->raw)); in check_tn_node() 225 …ragment %#04x-%#04x, ver %u at %08x\n", tn->fn->ofs, fn_end, tn->version, ref_offset(tn->fn->raw)); in jffs2_add_tn_to_tree() 573 dbg_noderef("node at 0x%08x is obsoleted. Ignoring.\n", ref_offset(ref)); in jffs2_first_valid_node() 599 ref_offset(ref), je32_to_cpu(rd->node_crc), crc); in read_direntry() 612 ref_offset(ref), rd->nsize, je32_to_cpu(rd->totlen)); in read_direntry() 625 ref->flash_offset = ref_offset(ref) | dirent_node_state(rd); in read_direntry() [all …]
|
D | nodelist.c | 96 frag->node->raw->flash_offset = ref_offset(frag->node->raw) | REF_PRISTINE; in jffs2_truncate_fragtree() 109 ref_offset(this->node->raw), this->node->ofs, this->node->ofs+this->node->size); in jffs2_obsolete_node_frag() 114 …ref_offset(this->node->raw), this->node->ofs, this->node->ofs+this->node->size, this->node->frags); in jffs2_obsolete_node_frag() 225 this->ofs, this->ofs+this->size, this->node?(ref_offset(this->node->raw)):0xffffffff, this); in jffs2_add_frag_to_fragtree() 252 ref_offset(this->node->raw), ref_flags(this->node->raw)); in jffs2_add_frag_to_fragtree() 275 this->ofs, this->ofs+this->size, ref_offset(this->node->raw)); in jffs2_add_frag_to_fragtree() 377 fn->ofs, fn->ofs+fn->size, ref_offset(fn->raw), newfrag); in jffs2_add_full_dnode_to_inode() 614 BUG_ON(ref_offset(ref) != jeb->offset); in jffs2_link_node_ref() 615 } else if (unlikely(ref_offset(ref) != jeb->offset + c->sector_size - jeb->free_size)) { in jffs2_link_node_ref() 619 ref, ref_offset(ref), ref_offset(ref)+len, in jffs2_link_node_ref() [all …]
|
D | gc.c | 295 ref_offset(raw)); in jffs2_garbage_collect_pass() 311 ref_offset(raw)); in jffs2_garbage_collect_pass() 353 __func__, jeb->offset, ref_offset(raw), ref_flags(raw), in jffs2_garbage_collect_pass() 472 ref_offset(jeb->gc_node)); in jffs2_garbage_collect_pass() 577 ref_offset(raw), f->inocache->ino); in jffs2_garbage_collect_live() 581 jffs2_dbg_dump_node(c, ref_offset(raw)); in jffs2_garbage_collect_live() 603 ref_offset(raw)); in jffs2_garbage_collect_pristine() 628 ret = jffs2_flash_read(c, ref_offset(raw), rawlen, &retlen, (char *)node); in jffs2_garbage_collect_pristine() 637 ref_offset(raw), je32_to_cpu(node->u.hdr_crc), crc); in jffs2_garbage_collect_pristine() 646 ref_offset(raw), je32_to_cpu(node->i.node_crc), in jffs2_garbage_collect_pristine() [all …]
|
D | read.c | 38 ret = jffs2_flash_read(c, ref_offset(fd->raw), sizeof(*ri), &readlen, (char *)ri); in jffs2_read_dnode() 42 ref_offset(fd->raw), ret); in jffs2_read_dnode() 48 ref_offset(fd->raw), sizeof(*ri), readlen); in jffs2_read_dnode() 54 ref_offset(fd->raw), je32_to_cpu(ri->node_crc), in jffs2_read_dnode() 59 je32_to_cpu(ri->node_crc), crc, ref_offset(fd->raw)); in jffs2_read_dnode() 115 ret = jffs2_flash_read(c, (ref_offset(fd->raw)) + sizeof(*ri), in jffs2_read_dnode() 126 je32_to_cpu(ri->data_crc), crc, ref_offset(fd->raw)); in jffs2_read_dnode() 210 ref_offset(frag->node->raw), in jffs2_read_inode_range()
|
D | nodemgmt.c | 594 __func__, ref_offset(ref)); in jffs2_mark_node_obsolete() 628 ref_offset(ref), freed_len); in jffs2_mark_node_obsolete() 639 ref_offset(ref), freed_len); in jffs2_mark_node_obsolete() 673 ref->flash_offset = ref_offset(ref) | REF_OBSOLETE; in jffs2_mark_node_obsolete() 757 ref_offset(ref)); in jffs2_mark_node_obsolete() 758 ret = jffs2_flash_read(c, ref_offset(ref), sizeof(n), &retlen, (char *)&n); in jffs2_mark_node_obsolete() 761 ref_offset(ref), ret); in jffs2_mark_node_obsolete() 766 ref_offset(ref), retlen); in jffs2_mark_node_obsolete() 776 ref_offset(ref), je16_to_cpu(n.nodetype)); in jffs2_mark_node_obsolete() 781 ret = jffs2_flash_write(c, ref_offset(ref), sizeof(n), &retlen, (char *)&n); in jffs2_mark_node_obsolete() [all …]
|
D | debug.c | 89 ref_offset(fn->raw), fn->frags); in __jffs2_dbg_fragtree_paranoia_check_nolock() 101 ref_offset(fn->raw)); in __jffs2_dbg_fragtree_paranoia_check_nolock() 108 ref_offset(fn->raw), frag->ofs, frag->ofs+frag->size); in __jffs2_dbg_fragtree_paranoia_check_nolock() 321 if (ref_offset(ref2) < jeb->offset || in __jffs2_dbg_acct_paranoia_check_nolock() 322 ref_offset(ref2) > jeb->offset + c->sector_size) { in __jffs2_dbg_acct_paranoia_check_nolock() 324 ref_offset(ref2), jeb->offset); in __jffs2_dbg_acct_paranoia_check_nolock() 337 ref_offset(ref2), ref2, ref_offset(ref_next(ref2)), ref_next(ref2), in __jffs2_dbg_acct_paranoia_check_nolock() 338 ref_offset(jeb->last_node), jeb->last_node); in __jffs2_dbg_acct_paranoia_check_nolock() 415 printk("%#08x", ref_offset(ref)); in __jffs2_dbg_dump_node_refs_nolock() 713 this->ofs, this->ofs+this->size, ref_offset(this->node->raw), in __jffs2_dbg_dump_fragtree_nolock() [all …]
|
D | xattr.c | 143 offset = ref_offset(xd->node); in do_verify_xattr_datum() 185 jeb = &c->blocks[ref_offset(raw) / c->sector_size]; in do_verify_xattr_datum() 191 raw->flash_offset = ref_offset(raw) | ((xd->node==raw) ? REF_PRISTINE : REF_NORMAL); in do_verify_xattr_datum() 220 ret = jffs2_flash_read(c, ref_offset(xd->node)+sizeof(struct jffs2_raw_xattr), in do_load_xattr_datum() 225 ret, length, readlen, ref_offset(xd->node)); in do_load_xattr_datum() 235 ref_offset(xd->node), xd->data_crc, crc); in do_load_xattr_datum() 456 offset = ref_offset(ref->node); in verify_xattr_ref() 491 jeb = &c->blocks[ref_offset(raw) / c->sector_size]; in verify_xattr_ref() 497 raw->flash_offset = ref_offset(raw) | ((ref->node==raw) ? REF_PRISTINE : REF_NORMAL); in verify_xattr_ref() 502 ref->ino, ref->xid, ref_offset(ref->node)); in verify_xattr_ref() [all …]
|
D | wbuf.c | 302 (next && ref_offset(next) <= c->wbuf_ofs)) { in jffs2_wbuf_recover() 304 ref_offset(raw), ref_flags(raw), in jffs2_wbuf_recover() 305 (ref_offset(raw) + ref_totlen(c, jeb, raw)), in jffs2_wbuf_recover() 310 ref_offset(raw), ref_flags(raw), in jffs2_wbuf_recover() 311 (ref_offset(raw) + ref_totlen(c, jeb, raw))); in jffs2_wbuf_recover() 324 start = ref_offset(first_raw); in jffs2_wbuf_recover() 325 end = ref_offset(jeb->last_node); in jffs2_wbuf_recover() 376 start = ref_offset(first_raw); in jffs2_wbuf_recover() 471 rawlen, ref_offset(raw), ref_flags(raw), ofs); in jffs2_wbuf_recover() 518 (void *)(buf?:c->wbuf) + (ref_offset(raw) - start)); in jffs2_wbuf_recover() [all …]
|
D | nodelist.h | 137 #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)
|
D | build.c | 254 dbg_fsbuild("obsoleting node at 0x%08x\n", ref_offset(raw)); in jffs2_build_remove_unlinked_inode()
|
D | erase.c | 264 ref_offset(this), ref_flags(this)); in jffs2_remove_node_refs_from_ino_list()
|
D | write.c | 615 fd->ino, ref_offset(fd->raw)); in jffs2_do_unlink()
|
/fs/btrfs/ |
D | extent-tree.c | 929 u64 ref_offset; in lookup_inline_extent_backref() local 930 ref_offset = btrfs_extent_inline_ref_offset(leaf, iref); in lookup_inline_extent_backref() 932 if (parent == ref_offset) { in lookup_inline_extent_backref() 936 if (ref_offset < parent) in lookup_inline_extent_backref() 939 if (root_objectid == ref_offset) { in lookup_inline_extent_backref() 943 if (ref_offset < root_objectid) in lookup_inline_extent_backref()
|
D | file.c | 2714 u64 ref_offset; in btrfs_insert_replace_extent() local 2719 ref_offset = extent_info->file_offset - extent_info->data_offset; in btrfs_insert_replace_extent() 2721 btrfs_ino(inode), ref_offset, 0, false); in btrfs_insert_replace_extent()
|