/fs/jffs2/ |
D | xattr.c | 439 static int verify_xattr_ref(struct jffs2_sb_info *c, struct jffs2_xattr_ref *ref) in verify_xattr_ref() argument 449 if (ref_flags(ref->node) != REF_UNCHECKED) in verify_xattr_ref() 451 offset = ref_offset(ref->node); in verify_xattr_ref() 477 ref->ino = je32_to_cpu(rr.ino); in verify_xattr_ref() 478 ref->xid = je32_to_cpu(rr.xid); in verify_xattr_ref() 479 ref->xseqno = je32_to_cpu(rr.xseqno); in verify_xattr_ref() 480 if (ref->xseqno > c->highest_xseqno) in verify_xattr_ref() 481 c->highest_xseqno = (ref->xseqno & ~XREF_DELETE_MARKER); in verify_xattr_ref() 485 for (raw=ref->node; raw != (void *)ref; raw=raw->next_in_ino) { in verify_xattr_ref() 492 raw->flash_offset = ref_offset(raw) | ((ref->node==raw) ? REF_PRISTINE : REF_NORMAL); in verify_xattr_ref() [all …]
|
D | malloc.c | 213 struct jffs2_raw_node_ref **p, *ref; in jffs2_prealloc_raw_node_refs() local 219 ref = *p; in jffs2_prealloc_raw_node_refs() 224 if (ref && ref->flash_offset != REF_EMPTY_NODE) in jffs2_prealloc_raw_node_refs() 225 ref++; in jffs2_prealloc_raw_node_refs() 228 if (!ref) { in jffs2_prealloc_raw_node_refs() 230 ref = *p = jffs2_alloc_refblock(); in jffs2_prealloc_raw_node_refs() 231 if (!ref) in jffs2_prealloc_raw_node_refs() 234 if (ref->flash_offset == REF_LINK_NODE) { in jffs2_prealloc_raw_node_refs() 235 p = &ref->next_in_ino; in jffs2_prealloc_raw_node_refs() 236 ref = *p; in jffs2_prealloc_raw_node_refs() [all …]
|
D | readinode.c | 33 struct jffs2_raw_node_ref *ref = tn->fn->raw; in check_node_data() local 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() 114 jeb = &c->blocks[ref->flash_offset / c->sector_size]; in check_node_data() 115 len = ref_totlen(c, jeb, ref); in check_node_data() 120 ref->flash_offset |= REF_PRISTINE; in check_node_data() 585 static struct jffs2_raw_node_ref *jffs2_first_valid_node(struct jffs2_raw_node_ref *ref) in jffs2_first_valid_node() argument 587 while (ref && ref->next_in_ino) { in jffs2_first_valid_node() [all …]
|
D | nodelist.c | 614 struct jffs2_raw_node_ref *ref; in jffs2_link_node_ref() local 619 ref = jeb->last_node; in jffs2_link_node_ref() 621 dbg_noderef("Last node at %p is (%08x,%p)\n", ref, ref->flash_offset, in jffs2_link_node_ref() 622 ref->next_in_ino); in jffs2_link_node_ref() 624 while (ref->flash_offset != REF_EMPTY_NODE) { in jffs2_link_node_ref() 625 if (ref->flash_offset == REF_LINK_NODE) in jffs2_link_node_ref() 626 ref = ref->next_in_ino; in jffs2_link_node_ref() 628 ref++; in jffs2_link_node_ref() 631 dbg_noderef("New ref is %p (%08x becomes %08x,%p) len 0x%x\n", ref, in jffs2_link_node_ref() 632 ref->flash_offset, ofs, ref->next_in_ino, len); in jffs2_link_node_ref() [all …]
|
D | nodemgmt.c | 531 void jffs2_mark_node_obsolete(struct jffs2_sb_info *c, struct jffs2_raw_node_ref *ref) in jffs2_mark_node_obsolete() argument 540 if(unlikely(!ref)) { in jffs2_mark_node_obsolete() 544 if (ref_obsolete(ref)) { in jffs2_mark_node_obsolete() 546 __func__, ref_offset(ref)); in jffs2_mark_node_obsolete() 549 blocknr = ref->flash_offset / c->sector_size; in jffs2_mark_node_obsolete() 552 ref->flash_offset); in jffs2_mark_node_obsolete() 570 freed_len = ref_totlen(c, jeb, ref); in jffs2_mark_node_obsolete() 572 if (ref_flags(ref) == REF_UNCHECKED) { in jffs2_mark_node_obsolete() 576 ref->flash_offset, jeb->used_size); in jffs2_mark_node_obsolete() 580 ref_offset(ref), freed_len); in jffs2_mark_node_obsolete() [all …]
|
D | nodelist.h | 101 static inline struct jffs2_raw_node_ref *ref_next(struct jffs2_raw_node_ref *ref) in ref_next() argument 103 ref++; in ref_next() 106 if (ref->flash_offset == REF_LINK_NODE) { in ref_next() 107 ref = ref->next_in_ino; in ref_next() 108 if (!ref) in ref_next() 109 return ref; in ref_next() 113 if (ref->flash_offset == REF_EMPTY_NODE) in ref_next() 116 return ref; in ref_next() 136 #define ref_flags(ref) ((ref)->flash_offset & 3) argument 137 #define ref_offset(ref) ((ref)->flash_offset & ~3) argument [all …]
|
D | erase.c | 236 struct jffs2_raw_node_ref *ref, struct jffs2_eraseblock *jeb) in jffs2_remove_node_refs_from_ino_list() argument 241 prev = &ref->next_in_ino; in jffs2_remove_node_refs_from_ino_list() 262 if (this == ref) in jffs2_remove_node_refs_from_ino_list() 318 struct jffs2_raw_node_ref *block, *ref; in jffs2_free_jeb_node_refs() local 322 block = ref = jeb->first_node; in jffs2_free_jeb_node_refs() 324 while (ref) { in jffs2_free_jeb_node_refs() 325 if (ref->flash_offset == REF_LINK_NODE) { in jffs2_free_jeb_node_refs() 326 ref = ref->next_in_ino; in jffs2_free_jeb_node_refs() 328 block = ref; in jffs2_free_jeb_node_refs() 331 if (ref->flash_offset != REF_EMPTY_NODE && ref->next_in_ino) in jffs2_free_jeb_node_refs() [all …]
|
D | xattr.h | 66 static inline int is_xattr_ref_dead(struct jffs2_xattr_ref *ref) in is_xattr_ref_dead() argument 68 return ((ref->xseqno & XREF_DELETE_MARKER) != 0); in is_xattr_ref_dead() 85 extern int jffs2_garbage_collect_xattr_ref(struct jffs2_sb_info *c, struct jffs2_xattr_ref *ref, 89 extern void jffs2_release_xattr_ref(struct jffs2_sb_info *c, struct jffs2_xattr_ref *ref);
|
D | scan.c | 387 struct jffs2_xattr_ref *ref; in jffs2_scan_xref_node() local 409 ref = jffs2_alloc_xattr_ref(); in jffs2_scan_xref_node() 410 if (!ref) in jffs2_scan_xref_node() 422 ref->ino = je32_to_cpu(rr->ino); in jffs2_scan_xref_node() 423 ref->xid = je32_to_cpu(rr->xid); in jffs2_scan_xref_node() 424 ref->xseqno = je32_to_cpu(rr->xseqno); in jffs2_scan_xref_node() 425 if (ref->xseqno > c->highest_xseqno) in jffs2_scan_xref_node() 426 c->highest_xseqno = (ref->xseqno & ~XREF_DELETE_MARKER); in jffs2_scan_xref_node() 427 ref->next = c->xref_temp; in jffs2_scan_xref_node() 428 c->xref_temp = ref; in jffs2_scan_xref_node() [all …]
|
D | debug.c | 404 struct jffs2_raw_node_ref *ref; in __jffs2_dbg_dump_node_refs_nolock() local 414 for (ref = jeb->first_node; ; ref = ref_next(ref)) { in __jffs2_dbg_dump_node_refs_nolock() 415 printk("%#08x", ref_offset(ref)); in __jffs2_dbg_dump_node_refs_nolock() 417 printk("(%x)", ref->__totlen); in __jffs2_dbg_dump_node_refs_nolock() 419 if (ref_next(ref)) in __jffs2_dbg_dump_node_refs_nolock()
|
D | summary.c | 523 struct jffs2_xattr_ref *ref; in jffs2_sum_process_sum_data() local 532 ref = jffs2_alloc_xattr_ref(); in jffs2_sum_process_sum_data() 533 if (!ref) { in jffs2_sum_process_sum_data() 537 ref->next = c->xref_temp; in jffs2_sum_process_sum_data() 538 c->xref_temp = ref; in jffs2_sum_process_sum_data() 541 PAD(sizeof(struct jffs2_raw_xref)), (void *)ref); in jffs2_sum_process_sum_data() 543 *pseudo_random += ref->node->flash_offset; in jffs2_sum_process_sum_data()
|
/fs/btrfs/ |
D | delayed-ref.c | 260 struct btrfs_delayed_ref_node *ref; in btrfs_find_ref_cluster() local 267 ref = NULL; in btrfs_find_ref_cluster() 268 find_ref_head(&delayed_refs->root, start + 1, &ref, 1); in btrfs_find_ref_cluster() 269 if (ref) { in btrfs_find_ref_cluster() 270 node = &ref->rb_node; in btrfs_find_ref_cluster() 276 ref = rb_entry(node, struct btrfs_delayed_ref_node, rb_node); in btrfs_find_ref_cluster() 277 if (btrfs_delayed_ref_is_head(ref)) { in btrfs_find_ref_cluster() 278 head = btrfs_delayed_node_to_head(ref); in btrfs_find_ref_cluster() 370 struct btrfs_delayed_ref_head *ref; in update_existing_head_ref() local 373 ref = btrfs_delayed_node_to_head(update); in update_existing_head_ref() [all …]
|
D | inode-item.c | 28 struct btrfs_inode_ref *ref; in find_name_in_backref() local 39 ref = (struct btrfs_inode_ref *)(ptr + cur_offset); in find_name_in_backref() 40 len = btrfs_inode_ref_name_len(leaf, ref); in find_name_in_backref() 41 name_ptr = (unsigned long)(ref + 1); in find_name_in_backref() 42 cur_offset += len + sizeof(*ref); in find_name_in_backref() 46 *ref_ret = ref; in find_name_in_backref() 61 struct btrfs_inode_ref *ref; in btrfs_lookup_inode_ref() local 75 if (!find_name_in_backref(path, name, name_len, &ref)) in btrfs_lookup_inode_ref() 77 return ref; in btrfs_lookup_inode_ref() 87 struct btrfs_inode_ref *ref; in btrfs_del_inode_ref() local [all …]
|
D | backref.c | 44 struct __prelim_ref *ref; in __add_prelim_ref() local 47 ref = kmalloc(sizeof(*ref), GFP_ATOMIC); in __add_prelim_ref() 48 if (!ref) in __add_prelim_ref() 51 ref->root_id = root_id; in __add_prelim_ref() 53 ref->key = *key; in __add_prelim_ref() 55 memset(&ref->key, 0, sizeof(ref->key)); in __add_prelim_ref() 57 ref->level = level; in __add_prelim_ref() 58 ref->count = count; in __add_prelim_ref() 59 ref->parent = parent; in __add_prelim_ref() 60 ref->wanted_disk_byte = wanted_disk_byte; in __add_prelim_ref() [all …]
|
D | root-tree.c | 312 struct btrfs_root_ref *ref; in btrfs_del_root_ref() local 331 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_del_root_ref() 334 WARN_ON(btrfs_root_ref_dirid(leaf, ref) != dirid); in btrfs_del_root_ref() 335 WARN_ON(btrfs_root_ref_name_len(leaf, ref) != name_len); in btrfs_del_root_ref() 336 ptr = (unsigned long)(ref + 1); in btrfs_del_root_ref() 338 *sequence = btrfs_root_ref_sequence(leaf, ref); in btrfs_del_root_ref() 399 struct btrfs_root_ref *ref; in btrfs_add_root_ref() local 412 sizeof(*ref) + name_len); in btrfs_add_root_ref() 420 ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref); in btrfs_add_root_ref() 421 btrfs_set_root_ref_dirid(leaf, ref, dirid); in btrfs_add_root_ref() [all …]
|
D | delayed-ref.h | 164 static inline void btrfs_put_delayed_ref(struct btrfs_delayed_ref_node *ref) in btrfs_put_delayed_ref() argument 166 WARN_ON(atomic_read(&ref->refs) == 0); in btrfs_put_delayed_ref() 167 if (atomic_dec_and_test(&ref->refs)) { in btrfs_put_delayed_ref() 168 WARN_ON(ref->in_tree); in btrfs_put_delayed_ref() 169 kfree(ref); in btrfs_put_delayed_ref()
|
D | extent-tree.c | 1052 struct btrfs_extent_data_ref *ref) in hash_extent_data_ref_item() argument 1054 return hash_extent_data_ref(btrfs_extent_data_ref_root(leaf, ref), in hash_extent_data_ref_item() 1055 btrfs_extent_data_ref_objectid(leaf, ref), in hash_extent_data_ref_item() 1056 btrfs_extent_data_ref_offset(leaf, ref)); in hash_extent_data_ref_item() 1060 struct btrfs_extent_data_ref *ref, in match_extent_data_ref() argument 1063 if (btrfs_extent_data_ref_root(leaf, ref) != root_objectid || in match_extent_data_ref() 1064 btrfs_extent_data_ref_objectid(leaf, ref) != owner || in match_extent_data_ref() 1065 btrfs_extent_data_ref_offset(leaf, ref) != offset) in match_extent_data_ref() 1078 struct btrfs_extent_data_ref *ref; in lookup_extent_data_ref() local 1139 ref = btrfs_item_ptr(leaf, path->slots[0], in lookup_extent_data_ref() [all …]
|
D | print-tree.c | 49 struct btrfs_extent_data_ref *ref) in print_extent_data_ref() argument 53 (unsigned long long)btrfs_extent_data_ref_root(eb, ref), in print_extent_data_ref() 54 (unsigned long long)btrfs_extent_data_ref_objectid(eb, ref), in print_extent_data_ref() 55 (unsigned long long)btrfs_extent_data_ref_offset(eb, ref), in print_extent_data_ref() 56 btrfs_extent_data_ref_count(eb, ref)); in print_extent_data_ref()
|
D | export.c | 172 struct btrfs_root_ref *ref; in btrfs_get_parent() local 212 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_parent() 214 key.objectid = btrfs_root_ref_dirid(leaf, ref); in btrfs_get_parent()
|
/fs/cifs/ |
D | cifs_dfs_ref.c | 122 const struct dfs_info3_param *ref, in cifs_compose_mount_options() argument 136 *devname = cifs_get_share_name(ref->node_name); in cifs_compose_mount_options() 154 md_len = strlen(sb_mountdata) + rc + strlen(ref->node_name) + 12 + in cifs_compose_mount_options() 205 tkn_e = strchr(ref->node_name + 2, '\\'); in cifs_compose_mount_options() 213 if (tkn_e || (strlen(fullpath) - ref->path_consumed)) { in cifs_compose_mount_options() 218 strcat(mountdata, fullpath + ref->path_consumed); in cifs_compose_mount_options() 243 const char *fullpath, const struct dfs_info3_param *ref) in cifs_dfs_do_refmount() argument 251 fullpath + 1, ref, &devname); in cifs_dfs_do_refmount() 263 static void dump_referral(const struct dfs_info3_param *ref) in dump_referral() argument 265 cFYI(1, "DFS: ref path: %s", ref->path_name); in dump_referral() [all …]
|
/fs/ubifs/ |
D | log.c | 180 struct ubifs_ref_node *ref; in ubifs_add_bud_to_log() local 185 ref = kzalloc(c->ref_node_alsz, GFP_NOFS); in ubifs_add_bud_to_log() 186 if (!ref) { in ubifs_add_bud_to_log() 240 ref->ch.node_type = UBIFS_REF_NODE; in ubifs_add_bud_to_log() 241 ref->lnum = cpu_to_le32(bud->lnum); in ubifs_add_bud_to_log() 242 ref->offs = cpu_to_le32(bud->start); in ubifs_add_bud_to_log() 243 ref->jhead = cpu_to_le32(jhead); in ubifs_add_bud_to_log() 272 err = ubifs_write_node(c, ref, UBIFS_REF_NODE_SZ, c->lhead_lnum, in ubifs_add_bud_to_log() 282 kfree(ref); in ubifs_add_bud_to_log() 287 kfree(ref); in ubifs_add_bud_to_log() [all …]
|
D | replay.c | 786 static int validate_ref(struct ubifs_info *c, const struct ubifs_ref_node *ref) in validate_ref() argument 789 int lnum = le32_to_cpu(ref->lnum); in validate_ref() 790 unsigned int offs = le32_to_cpu(ref->offs); in validate_ref() 791 unsigned int jhead = le32_to_cpu(ref->jhead); in validate_ref() 918 const struct ubifs_ref_node *ref = snod->node; in replay_log_leb() local 920 err = validate_ref(c, ref); in replay_log_leb() 926 err = add_replay_bud(c, le32_to_cpu(ref->lnum), in replay_log_leb() 927 le32_to_cpu(ref->offs), in replay_log_leb() 928 le32_to_cpu(ref->jhead), in replay_log_leb()
|
/fs/nfs/ |
D | pnfs_dev.c | 83 if (atomic_read(&d->ref)) in _lookup_deviceid() 107 atomic_inc(&d->ref); in _find_get_deviceid() 147 if (atomic_dec_and_test(&d->ref)) in nfs4_delete_deviceid() 164 atomic_set(&d->ref, 1); in nfs4_init_deviceid_node() 195 atomic_inc(&new->ref); in nfs4_insert_deviceid_node() 214 if (!atomic_dec_and_test(&d->ref)) in nfs4_put_deviceid_node() 231 if (d->nfs_client == clp && atomic_read(&d->ref)) { in _deviceid_purge_client() 245 if (atomic_dec_and_test(&d->ref)) in _deviceid_purge_client()
|
D | callback_proc.c | 387 struct referring_call *ref; in referring_call_exists() local 404 ref = &rclist->rcl_refcalls[j]; in referring_call_exists() 412 ref->rc_sequenceid, ref->rc_slotid); in referring_call_exists() 415 status = (test_bit(ref->rc_slotid, tbl->used_slots) && in referring_call_exists() 416 tbl->slots[ref->rc_slotid].seq_nr == in referring_call_exists() 417 ref->rc_sequenceid); in referring_call_exists()
|
/fs/quota/ |
D | quota_tree.c | 295 __le32 *ref; in do_insert_tree() local 315 ref = (__le32 *)buf; in do_insert_tree() 316 newblk = le32_to_cpu(ref[get_index(info, dquot->dq_id, depth)]); in do_insert_tree() 324 le32_to_cpu(ref[get_index(info, in do_insert_tree() 335 ref[get_index(info, dquot->dq_id, depth)] = in do_insert_tree() 465 __le32 *ref = (__le32 *)buf; in remove_tree() local 475 newblk = le32_to_cpu(ref[get_index(info, dquot->dq_id, depth)]); in remove_tree() 484 ref[get_index(info, dquot->dq_id, depth)] = cpu_to_le32(0); in remove_tree() 486 for (i = 0; i < (info->dqi_usable_bs >> 2) && !ref[i]; i++) in remove_tree() 560 __le32 *ref = (__le32 *)buf; in find_tree_dqentry() local [all …]
|