/fs/nfs/ |
D | nfs4session.c | 48 struct nfs4_slot *slot = *p; in nfs4_shrink_slot_table() local 50 *p = slot->next; in nfs4_shrink_slot_table() 51 kfree(slot); in nfs4_shrink_slot_table() 82 void nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot) in nfs4_free_slot() argument 84 u32 slotid = slot->slot_nr; in nfs4_free_slot() 106 struct nfs4_slot *slot; in nfs4_new_slot() local 108 slot = kzalloc(sizeof(*slot), gfp_mask); in nfs4_new_slot() 109 if (slot) { in nfs4_new_slot() 110 slot->table = tbl; in nfs4_new_slot() 111 slot->slot_nr = slotid; in nfs4_new_slot() [all …]
|
D | callback_proc.c | 382 validate_seqid(const struct nfs4_slot_table *tbl, const struct nfs4_slot *slot, in validate_seqid() argument 386 __func__, args->csa_slotid, args->csa_sequenceid, slot->seq_nr); in validate_seqid() 392 if (args->csa_sequenceid == slot->seq_nr) { in validate_seqid() 395 if (nfs4_test_locked_slot(tbl, slot->slot_nr)) in validate_seqid() 406 if (unlikely(slot->seq_nr == 0xFFFFFFFFU)) { in validate_seqid() 409 } else if (likely(args->csa_sequenceid == slot->seq_nr + 1)) in validate_seqid() 473 struct nfs4_slot *slot; in nfs4_callback_sequence() local 507 slot = nfs4_lookup_slot(tbl, args->csa_slotid); in nfs4_callback_sequence() 508 if (IS_ERR(slot)) in nfs4_callback_sequence() 514 status = validate_seqid(tbl, slot, args); in nfs4_callback_sequence() [all …]
|
D | nfs4session.h | 88 extern bool nfs4_try_to_lock_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot); 89 extern void nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot); 92 struct nfs4_slot *slot); 110 struct nfs4_slot *slot,
|
/fs/dlm/ |
D | member.c | 37 memb->slot = le16_to_cpu(rf->rf_our_slot); in dlm_slot_save() 43 struct dlm_slot *slot; in dlm_slots_copy_out() local 52 slot = &ls->ls_slots[i]; in dlm_slots_copy_out() 53 if (!slot->nodeid) in dlm_slots_copy_out() 55 ro->ro_nodeid = cpu_to_le32(slot->nodeid); in dlm_slots_copy_out() 56 ro->ro_slot = cpu_to_le16(slot->slot); in dlm_slots_copy_out() 80 array[i].slot, array[i].nodeid); in log_slots() 135 memb->slot = ro->ro_slot; in dlm_slots_copy_in() 136 memb->slot_prev = memb->slot; in dlm_slots_copy_in() 141 if (ls->ls_slot && ls->ls_slot != memb->slot) { in dlm_slots_copy_in() [all …]
|
/fs/btrfs/ |
D | ctree.c | 42 int level, int slot); 318 int slot; member 516 alloc_tree_mod_elem(struct extent_buffer *eb, int slot, in alloc_tree_mod_elem() argument 527 btrfs_node_key(eb, &tm->key, slot); in alloc_tree_mod_elem() 528 tm->blockptr = btrfs_node_blockptr(eb, slot); in alloc_tree_mod_elem() 531 tm->slot = slot; in alloc_tree_mod_elem() 532 tm->generation = btrfs_node_ptr_generation(eb, slot); in alloc_tree_mod_elem() 540 struct extent_buffer *eb, int slot, in tree_mod_log_insert_key() argument 549 tm = alloc_tree_mod_elem(eb, slot, op, flags); in tree_mod_log_insert_key() 591 tm->slot = src_slot; in tree_mod_log_insert_move() [all …]
|
D | uuid-tree.c | 40 int slot; in btrfs_uuid_tree_lookup() local 66 slot = path->slots[0]; in btrfs_uuid_tree_lookup() 67 item_size = btrfs_item_size_nr(eb, slot); in btrfs_uuid_tree_lookup() 68 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_lookup() 102 int slot; in btrfs_uuid_tree_add() local 128 slot = path->slots[0]; in btrfs_uuid_tree_add() 129 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_add() 137 slot = path->slots[0]; in btrfs_uuid_tree_add() 138 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_add() 139 offset += btrfs_item_size_nr(eb, slot) - sizeof(subid_le); in btrfs_uuid_tree_add() [all …]
|
D | root-tree.c | 33 static void btrfs_read_root_item(struct extent_buffer *eb, int slot, in btrfs_read_root_item() argument 40 len = btrfs_item_size_nr(eb, slot); in btrfs_read_root_item() 41 read_extent_buffer(eb, item, btrfs_item_ptr_offset(eb, slot), in btrfs_read_root_item() 84 int slot; in btrfs_find_root() local 102 slot = path->slots[0]; in btrfs_find_root() 104 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_root() 112 btrfs_read_root_item(l, slot, root_item); in btrfs_find_root() 138 int slot; in btrfs_update_root() local 161 slot = path->slots[0]; in btrfs_update_root() 162 ptr = btrfs_item_ptr_offset(l, slot); in btrfs_update_root() [all …]
|
D | backref.c | 349 int slot; in find_extent_in_eb() local 360 for (slot = 0; slot < nritems; ++slot) { in find_extent_in_eb() 361 btrfs_item_key_to_cpu(eb, &key, slot); in find_extent_in_eb() 364 fi = btrfs_item_ptr(eb, slot, struct btrfs_file_extent_item); in find_extent_in_eb() 512 int slot; in add_all_parents() local 544 slot = path->slots[0]; in add_all_parents() 546 btrfs_item_key_to_cpu(eb, &key, slot); in add_all_parents() 552 fi = btrfs_item_ptr(eb, slot, struct btrfs_file_extent_item); in add_all_parents() 967 int slot; in __add_inline_refs() local 981 slot = path->slots[0]; in __add_inline_refs() [all …]
|
D | xattr.c | 178 const int slot = path->slots[0]; in do_setxattr() local 181 const u32 item_size = btrfs_item_size_nr(leaf, slot); in do_setxattr() 210 item = btrfs_item_nr(slot); in do_setxattr() 211 ptr = btrfs_item_ptr(leaf, slot, char); in do_setxattr() 294 int slot; in btrfs_listxattr() local 301 slot = path->slots[0]; in btrfs_listxattr() 304 if (slot >= btrfs_header_nritems(leaf)) { in btrfs_listxattr() 317 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_listxattr() 327 di = btrfs_item_ptr(leaf, slot, struct btrfs_dir_item); in btrfs_listxattr() 328 item_size = btrfs_item_size_nr(leaf, slot); in btrfs_listxattr()
|
D | props.c | 178 int slot; in iterate_object_props() local 181 slot = path->slots[0]; in iterate_object_props() 184 if (slot >= btrfs_header_nritems(leaf)) { in iterate_object_props() 193 btrfs_item_key_to_cpu(leaf, &key, slot); in iterate_object_props() 203 di = btrfs_item_ptr(leaf, slot, struct btrfs_dir_item); in iterate_object_props() 205 total_len = btrfs_item_size_nr(leaf, slot); in iterate_object_props()
|
D | print-tree.c | 54 static void print_extent_item(struct extent_buffer *eb, int slot, int type) in print_extent_item() argument 63 u32 item_size = btrfs_item_size_nr(eb, slot); in print_extent_item() 71 ei0 = btrfs_item_ptr(eb, slot, struct btrfs_extent_item_v0); in print_extent_item() 80 ei = btrfs_item_ptr(eb, slot, struct btrfs_extent_item); in print_extent_item() 132 static void print_extent_ref_v0(struct extent_buffer *eb, int slot) in print_extent_ref_v0() argument 136 ref0 = btrfs_item_ptr(eb, slot, struct btrfs_extent_ref_v0); in print_extent_ref_v0()
|
D | inode-map.c | 38 int slot; in caching_kthread() local 69 slot = path->slots[0]; in caching_kthread() 70 if (slot >= btrfs_header_nritems(leaf)) { in caching_kthread() 98 btrfs_item_key_to_cpu(leaf, &key, slot); in caching_kthread() 527 int slot; in btrfs_find_highest_objectid() local 541 slot = path->slots[0] - 1; in btrfs_find_highest_objectid() 543 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_highest_objectid()
|
D | qgroup.c | 307 int slot; in btrfs_read_qgroup_config() local 343 slot = path->slots[0]; in btrfs_read_qgroup_config() 345 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_read_qgroup_config() 350 ptr = btrfs_item_ptr(l, slot, in btrfs_read_qgroup_config() 392 ptr = btrfs_item_ptr(l, slot, in btrfs_read_qgroup_config() 404 ptr = btrfs_item_ptr(l, slot, in btrfs_read_qgroup_config() 433 slot = path->slots[0]; in btrfs_read_qgroup_config() 435 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_read_qgroup_config() 684 int slot; in update_qgroup_limit_item() local 702 slot = path->slots[0]; in update_qgroup_limit_item() [all …]
|
/fs/efs/ |
D | dir.c | 26 int slot; in efs_readdir() local 36 slot = ctx->pos & 0xff; in efs_readdir() 60 for (; slot < dirblock->slots; slot++) { in efs_readdir() 66 if (dirblock->space[slot] == 0) in efs_readdir() 69 dirslot = (struct efs_dentry *) (((char *) bh->b_data) + EFS_SLOTAT(dirblock, slot)); in efs_readdir() 75 __func__, block, slot, dirblock->slots-1, in efs_readdir() 80 ctx->pos = (block << EFS_DIRBSIZE_BITS) | slot; in efs_readdir() 85 slot); in efs_readdir() 97 slot = 0; in efs_readdir() 100 ctx->pos = (block << EFS_DIRBSIZE_BITS) | slot; in efs_readdir()
|
D | namei.c | 19 int slot, namelen; in efs_find_entry() local 47 for (slot = 0; slot < dirblock->slots; slot++) { in efs_find_entry() 48 dirslot = (struct efs_dentry *) (((char *) bh->b_data) + EFS_SLOTAT(dirblock, slot)); in efs_find_entry()
|
/fs/ocfs2/cluster/ |
D | heartbeat.c | 622 unsigned int slot; in o2hb_issue_node_write() local 627 slot = o2nm_this_node(); in o2hb_issue_node_write() 629 bio = o2hb_setup_one_bio(reg, write_wc, &slot, slot+1, REQ_OP_WRITE, in o2hb_issue_node_write() 693 struct o2hb_disk_slot *slot; in o2hb_check_own_slot() local 697 slot = ®->hr_slots[o2nm_this_node()]; in o2hb_check_own_slot() 699 if (!slot->ds_last_time) in o2hb_check_own_slot() 702 hb_block = slot->ds_raw_block; in o2hb_check_own_slot() 703 if (le64_to_cpu(hb_block->hb_seq) == slot->ds_last_time && in o2hb_check_own_slot() 704 le64_to_cpu(hb_block->hb_generation) == slot->ds_last_generation && in o2hb_check_own_slot() 705 hb_block->hb_node == slot->ds_node_num) in o2hb_check_own_slot() [all …]
|
/fs/ocfs2/ |
D | sysfile.c | 44 u32 slot); 58 u32 slot) in get_local_system_inode() argument 63 BUG_ON(slot == OCFS2_INVALID_SLOT); in get_local_system_inode() 97 index = (slot * NUM_LOCAL_SYSTEM_INODES) + in get_local_system_inode() 105 u32 slot) in ocfs2_get_system_file_inode() argument 114 arr = get_local_system_inode(osb, type, slot); in ocfs2_get_system_file_inode() 127 inode = _ocfs2_get_system_file_inode(osb, type, slot); in ocfs2_get_system_file_inode() 140 u32 slot) in _ocfs2_get_system_file_inode() argument 149 type, slot); in _ocfs2_get_system_file_inode()
|
D | slot_map.c | 291 int slot; in ocfs2_node_num_to_slot() local 295 slot = __ocfs2_node_num_to_slot(si, node_num); in ocfs2_node_num_to_slot() 298 return slot; in ocfs2_node_num_to_slot() 471 int slot; in ocfs2_find_slot() local 483 slot = __ocfs2_node_num_to_slot(si, osb->node_num); in ocfs2_find_slot() 484 if (slot < 0) { in ocfs2_find_slot() 487 slot = __ocfs2_find_empty_slot(si, osb->preferred_slot); in ocfs2_find_slot() 488 if (slot < 0) { in ocfs2_find_slot() 496 "allocated to this node!\n", slot, osb->dev_str); in ocfs2_find_slot() 498 ocfs2_set_slot(si, slot, osb->node_num); in ocfs2_find_slot() [all …]
|
D | journal.c | 74 int slot, 1050 int slot) in ocfs2_clear_journal_error() argument 1057 "journal %u.\n", olderr, slot); in ocfs2_clear_journal_error() 2070 int slot, in ocfs2_queue_orphans() argument 2085 slot); in ocfs2_queue_orphans() 2116 int slot) in ocfs2_orphan_recovery_can_continue() argument 2121 ret = !osb->osb_orphan_wipes[slot]; in ocfs2_orphan_recovery_can_continue() 2127 int slot) in ocfs2_mark_recovering_orphan_dir() argument 2132 ocfs2_node_map_set_bit(osb, &osb->osb_recovering_orphan_dirs, slot); in ocfs2_mark_recovering_orphan_dir() 2133 while (osb->osb_orphan_wipes[slot]) { in ocfs2_mark_recovering_orphan_dir() [all …]
|
D | suballoc.c | 783 u32 slot, in ocfs2_reserve_suballoc_bits() argument 794 alloc_inode = ocfs2_get_system_file_inode(osb, type, slot); in ocfs2_reserve_suballoc_bits() 812 ac->ac_alloc_slot = slot; in ocfs2_reserve_suballoc_bits() 841 slot, bits_wanted, free_bits); in ocfs2_reserve_suballoc_bits() 894 static void __ocfs2_set_steal_slot(struct ocfs2_super *osb, int slot, int type) in __ocfs2_set_steal_slot() argument 898 osb->s_inode_steal_slot = slot; in __ocfs2_set_steal_slot() 900 osb->s_meta_steal_slot = slot; in __ocfs2_set_steal_slot() 906 int slot = OCFS2_INVALID_SLOT; in __ocfs2_get_steal_slot() local 910 slot = osb->s_inode_steal_slot; in __ocfs2_get_steal_slot() 912 slot = osb->s_meta_steal_slot; in __ocfs2_get_steal_slot() [all …]
|
/fs/btrfs/tests/ |
D | inode-tests.c | 30 u64 disk_len, u32 type, u8 compression, int slot) in insert_extent() argument 43 path.slots[0] = slot; in insert_extent() 51 fi = btrfs_item_ptr(leaf, slot, struct btrfs_file_extent_item); in insert_extent() 104 int slot = 0; in setup_file_extents() local 110 slot); in setup_file_extents() 111 slot++; in setup_file_extents() 121 slot); in setup_file_extents() 122 slot++; in setup_file_extents() 127 slot); in setup_file_extents() 128 slot++; in setup_file_extents() [all …]
|
D | btrfs-tests.c | 141 void **slot; in btrfs_free_dummy_fs_info() local 153 radix_tree_for_each_slot(slot, &fs_info->buffer_radix, &iter, 0) { in btrfs_free_dummy_fs_info() 156 eb = radix_tree_deref_slot_protected(slot, &fs_info->buffer_lock); in btrfs_free_dummy_fs_info() 162 slot = radix_tree_iter_retry(&iter); in btrfs_free_dummy_fs_info()
|
/fs/jfs/ |
D | jfs_dtree.c | 256 struct dir_table_slot *slot; in find_index() local 277 slot = &jfs_ip->i_dirtable[index - 2]; in find_index() 297 slot = in find_index() 301 return slot; in find_index() 334 static u32 add_index(tid_t tid, struct inode *ip, s64 bn, int slot) in add_index() argument 371 dirtab_slot->slot = slot; in add_index() 476 dirtab_slot->slot = slot; in add_index() 508 dirtab_slot->slot = dirtab_slot->addr1 = 0; in free_index() 525 int slot, struct metapage ** mp, s64 *lblock) in modify_index() argument 535 dirtab_slot->slot = slot; in modify_index() [all …]
|
D | jfs_dtree.h | 114 u8 slot; /* 1: slot within leaf page of entry */ member 159 struct dtslot slot[9]; member 210 struct dtslot slot[128]; member 236 (s8 *)&(p)->slot[(p)->header.stblindex] )
|
/fs/ |
D | dax.c | 328 static inline int slot_locked(struct address_space *mapping, void **slot) in slot_locked() argument 331 radix_tree_deref_slot_protected(slot, &mapping->tree_lock); in slot_locked() 339 static inline void *lock_slot(struct address_space *mapping, void **slot) in lock_slot() argument 342 radix_tree_deref_slot_protected(slot, &mapping->tree_lock); in lock_slot() 345 radix_tree_replace_slot(slot, (void *)entry); in lock_slot() 353 static inline void *unlock_slot(struct address_space *mapping, void **slot) in unlock_slot() argument 356 radix_tree_deref_slot_protected(slot, &mapping->tree_lock); in unlock_slot() 359 radix_tree_replace_slot(slot, (void *)entry); in unlock_slot() 375 void *ret, **slot; in get_unlocked_mapping_entry() local 386 &slot); in get_unlocked_mapping_entry() [all …]
|