/fs/btrfs/ |
D | tree-checker.c | 51 static void generic_err(const struct extent_buffer *eb, int slot, in generic_err() argument 66 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, &vaf); in generic_err() 76 static void file_extent_err(const struct extent_buffer *eb, int slot, in file_extent_err() argument 84 btrfs_item_key_to_cpu(eb, &key, slot); in file_extent_err() 93 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, in file_extent_err() 102 #define CHECK_FE_ALIGNED(leaf, slot, fi, name, alignment) \ argument 106 file_extent_err((leaf), (slot), \ 136 static void dir_item_err(const struct extent_buffer *eb, int slot, in dir_item_err() argument 144 btrfs_item_key_to_cpu(eb, &key, slot); in dir_item_err() 153 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, in dir_item_err() [all …]
|
D | ctree.c | 33 int level, int slot); 790 const struct btrfs_key *key, int *slot) in generic_bin_search() argument 843 *slot = mid; in generic_bin_search() 847 *slot = low; in generic_bin_search() 856 int *slot) in btrfs_bin_search() argument 858 return generic_bin_search(eb, 0, key, slot); in btrfs_bin_search() 881 int slot) in btrfs_read_node_slot() argument 887 if (slot < 0 || slot >= btrfs_header_nritems(parent)) in btrfs_read_node_slot() 892 btrfs_node_key_to_cpu(parent, &first_key, slot); in btrfs_read_node_slot() 893 eb = read_tree_block(parent->fs_info, btrfs_node_blockptr(parent, slot), in btrfs_read_node_slot() [all …]
|
D | uuid-tree.c | 28 int slot; in btrfs_uuid_tree_lookup() local 54 slot = path->slots[0]; in btrfs_uuid_tree_lookup() 55 item_size = btrfs_item_size(eb, slot); in btrfs_uuid_tree_lookup() 56 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_lookup() 91 int slot; in btrfs_uuid_tree_add() local 117 slot = path->slots[0]; in btrfs_uuid_tree_add() 118 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_add() 126 slot = path->slots[0]; in btrfs_uuid_tree_add() 127 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_add() 128 offset += btrfs_item_size(eb, slot) - sizeof(subid_le); in btrfs_uuid_tree_add() [all …]
|
D | root-tree.c | 22 static void btrfs_read_root_item(struct extent_buffer *eb, int slot, in btrfs_read_root_item() argument 28 len = btrfs_item_size(eb, slot); in btrfs_read_root_item() 29 read_extent_buffer(eb, item, btrfs_item_ptr_offset(eb, slot), in btrfs_read_root_item() 69 int slot; in btrfs_find_root() local 87 slot = path->slots[0]; in btrfs_find_root() 89 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_root() 97 btrfs_read_root_item(l, slot, root_item); in btrfs_find_root() 124 int slot; in btrfs_update_root() local 147 slot = path->slots[0]; in btrfs_update_root() 148 ptr = btrfs_item_ptr_offset(l, slot); in btrfs_update_root() [all …]
|
D | tree-mod-log.c | 21 int slot; member 199 int slot, in alloc_tree_mod_elem() argument 211 btrfs_node_key(eb, &tm->key, slot); in alloc_tree_mod_elem() 212 tm->blockptr = btrfs_node_blockptr(eb, slot); in alloc_tree_mod_elem() 215 tm->slot = slot; in alloc_tree_mod_elem() 216 tm->generation = btrfs_node_ptr_generation(eb, slot); in alloc_tree_mod_elem() 222 int btrfs_tree_mod_log_insert_key(struct extent_buffer *eb, int slot, in btrfs_tree_mod_log_insert_key() argument 231 tm = alloc_tree_mod_elem(eb, slot, op, flags); in btrfs_tree_mod_log_insert_key() 272 tm->slot = src_slot; in btrfs_tree_mod_log_insert_move() 675 BUG_ON(tm->slot < n); in tree_mod_log_rewind() [all …]
|
D | backref.c | 84 int slot; in find_extent_in_eb() local 95 for (slot = 0; slot < nritems; ++slot) { in find_extent_in_eb() 96 btrfs_item_key_to_cpu(eb, &key, slot); in find_extent_in_eb() 99 fi = btrfs_item_ptr(eb, slot, struct btrfs_file_extent_item); in find_extent_in_eb() 426 int slot; in add_all_parents() local 468 slot = path->slots[0]; in add_all_parents() 470 btrfs_item_key_to_cpu(eb, &key, slot); in add_all_parents() 481 if (slot == 0 && in add_all_parents() 490 fi = btrfs_item_ptr(eb, slot, struct btrfs_file_extent_item); in add_all_parents() 972 int slot; in add_inline_refs() local [all …]
|
D | xattr.c | 168 const int slot = path->slots[0]; in btrfs_setxattr() local 171 const u32 item_size = btrfs_item_size(leaf, slot); in btrfs_setxattr() 198 ptr = btrfs_item_ptr(leaf, slot, char); in btrfs_setxattr() 199 ptr += btrfs_item_size(leaf, slot) - data_size; in btrfs_setxattr() 301 int slot; in btrfs_listxattr() local 307 slot = path->slots[0]; in btrfs_listxattr() 317 di = btrfs_item_ptr(leaf, slot, struct btrfs_dir_item); in btrfs_listxattr() 318 item_size = btrfs_item_size(leaf, slot); in btrfs_listxattr()
|
D | inode-item.c | 13 int slot, in btrfs_find_name_in_backref() argument 23 item_size = btrfs_item_size(leaf, slot); in btrfs_find_name_in_backref() 24 ptr = btrfs_item_ptr_offset(leaf, slot); in btrfs_find_name_in_backref() 40 struct extent_buffer *leaf, int slot, u64 ref_objectid, in btrfs_find_name_in_ext_backref() argument 50 item_size = btrfs_item_size(leaf, slot); in btrfs_find_name_in_ext_backref() 51 ptr = btrfs_item_ptr_offset(leaf, slot); in btrfs_find_name_in_ext_backref() 402 int slot; in btrfs_lookup_inode() local 409 slot = path->slots[0] - 1; in btrfs_lookup_inode() 411 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_lookup_inode() 424 u64 offset, int extent_type, int slot) in btrfs_trace_truncate() argument [all …]
|
D | props.c | 159 int slot; in iterate_object_props() local 162 slot = path->slots[0]; in iterate_object_props() 165 if (slot >= btrfs_header_nritems(leaf)) { in iterate_object_props() 174 btrfs_item_key_to_cpu(leaf, &key, slot); in iterate_object_props() 184 di = btrfs_item_ptr(leaf, slot, struct btrfs_dir_item); in iterate_object_props() 186 total_len = btrfs_item_size(leaf, slot); in iterate_object_props()
|
/fs/nfs/ |
D | nfs4session.c | 49 struct nfs4_slot *slot = *p; in nfs4_shrink_slot_table() local 51 *p = slot->next; in nfs4_shrink_slot_table() 52 kfree(slot); in nfs4_shrink_slot_table() 83 void nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot) in nfs4_free_slot() argument 85 u32 slotid = slot->slot_nr; in nfs4_free_slot() 107 struct nfs4_slot *slot; in nfs4_new_slot() local 109 slot = kzalloc(sizeof(*slot), gfp_mask); in nfs4_new_slot() 110 if (slot) { in nfs4_new_slot() 111 slot->table = tbl; in nfs4_new_slot() 112 slot->slot_nr = slotid; in nfs4_new_slot() [all …]
|
D | callback_proc.c | 402 validate_seqid(const struct nfs4_slot_table *tbl, const struct nfs4_slot *slot, in validate_seqid() argument 412 if (args->csa_sequenceid == slot->seq_nr) { in validate_seqid() 414 if (nfs4_test_locked_slot(tbl, slot->slot_nr)) in validate_seqid() 430 if (args->csa_sequenceid != slot->seq_nr + 1) in validate_seqid() 494 struct nfs4_slot *slot; in nfs4_callback_sequence() local 528 slot = nfs4_lookup_slot(tbl, args->csa_slotid); in nfs4_callback_sequence() 529 if (IS_ERR(slot)) in nfs4_callback_sequence() 535 status = validate_seqid(tbl, slot, args); in nfs4_callback_sequence() 538 if (!nfs4_try_to_lock_slot(tbl, slot)) { in nfs4_callback_sequence() 542 cps->slot = slot; in nfs4_callback_sequence() [all …]
|
D | nfs4session.h | 91 extern bool nfs4_try_to_lock_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot); 92 extern void nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot); 95 struct nfs4_slot *slot); 118 struct nfs4_slot *slot,
|
/fs/dlm/ |
D | member.c | 36 memb->slot = le16_to_cpu(rf->rf_our_slot); in dlm_slot_save() 42 struct dlm_slot *slot; in dlm_slots_copy_out() local 51 slot = &ls->ls_slots[i]; in dlm_slots_copy_out() 52 if (!slot->nodeid) in dlm_slots_copy_out() 54 ro->ro_nodeid = cpu_to_le32(slot->nodeid); in dlm_slots_copy_out() 55 ro->ro_slot = cpu_to_le16(slot->slot); in dlm_slots_copy_out() 79 array[i].slot, array[i].nodeid); in log_slots() 129 memb->slot = le16_to_cpu(ro->ro_slot); in dlm_slots_copy_in() 130 memb->slot_prev = memb->slot; in dlm_slots_copy_in() 135 if (ls->ls_slot && ls->ls_slot != memb->slot) { in dlm_slots_copy_in() [all …]
|
/fs/ocfs2/cluster/ |
D | heartbeat.c | 591 unsigned int slot; in o2hb_issue_node_write() local 596 slot = o2nm_this_node(); in o2hb_issue_node_write() 598 bio = o2hb_setup_one_bio(reg, write_wc, &slot, slot+1, in o2hb_issue_node_write() 662 struct o2hb_disk_slot *slot; in o2hb_check_own_slot() local 666 slot = ®->hr_slots[o2nm_this_node()]; in o2hb_check_own_slot() 668 if (!slot->ds_last_time) in o2hb_check_own_slot() 671 hb_block = slot->ds_raw_block; in o2hb_check_own_slot() 672 if (le64_to_cpu(hb_block->hb_seq) == slot->ds_last_time && in o2hb_check_own_slot() 673 le64_to_cpu(hb_block->hb_generation) == slot->ds_last_generation && in o2hb_check_own_slot() 674 hb_block->hb_node == slot->ds_node_num) in o2hb_check_own_slot() [all …]
|
/fs/efs/ |
D | dir.c | 27 int slot; in efs_readdir() local 37 slot = ctx->pos & 0xff; in efs_readdir() 61 for (; slot < dirblock->slots; slot++) { in efs_readdir() 67 if (dirblock->space[slot] == 0) in efs_readdir() 70 dirslot = (struct efs_dentry *) (((char *) bh->b_data) + EFS_SLOTAT(dirblock, slot)); in efs_readdir() 76 __func__, block, slot, dirblock->slots-1, in efs_readdir() 81 ctx->pos = (block << EFS_DIRBSIZE_BITS) | slot; in efs_readdir() 86 slot); in efs_readdir() 98 slot = 0; in efs_readdir() 101 ctx->pos = (block << EFS_DIRBSIZE_BITS) | slot; in efs_readdir()
|
D | namei.c | 20 int slot, namelen; in efs_find_entry() local 48 for (slot = 0; slot < dirblock->slots; slot++) { in efs_find_entry() 49 dirslot = (struct efs_dentry *) (((char *) bh->b_data) + EFS_SLOTAT(dirblock, slot)); in efs_find_entry()
|
/fs/ocfs2/ |
D | sysfile.c | 28 u32 slot); 42 u32 slot) in get_local_system_inode() argument 47 BUG_ON(slot == OCFS2_INVALID_SLOT); in get_local_system_inode() 82 index = (slot * NUM_LOCAL_SYSTEM_INODES) + in get_local_system_inode() 90 u32 slot) in ocfs2_get_system_file_inode() argument 99 arr = get_local_system_inode(osb, type, slot); in ocfs2_get_system_file_inode() 112 inode = _ocfs2_get_system_file_inode(osb, type, slot); in ocfs2_get_system_file_inode() 125 u32 slot) in _ocfs2_get_system_file_inode() argument 134 type, slot); in _ocfs2_get_system_file_inode()
|
D | slot_map.c | 273 int slot; in ocfs2_node_num_to_slot() local 277 slot = __ocfs2_node_num_to_slot(si, node_num); in ocfs2_node_num_to_slot() 280 return slot; in ocfs2_node_num_to_slot() 449 int slot; in ocfs2_find_slot() local 461 slot = __ocfs2_node_num_to_slot(si, osb->node_num); in ocfs2_find_slot() 462 if (slot < 0) { in ocfs2_find_slot() 465 slot = __ocfs2_find_empty_slot(si, osb->preferred_slot); in ocfs2_find_slot() 466 if (slot < 0) { in ocfs2_find_slot() 474 "allocated to this node!\n", slot, osb->dev_str); in ocfs2_find_slot() 476 ocfs2_set_slot(si, slot, osb->node_num); in ocfs2_find_slot() [all …]
|
D | journal.c | 58 int slot, 1067 int slot) in ocfs2_clear_journal_error() argument 1074 "journal %u.\n", olderr, slot); in ocfs2_clear_journal_error() 2106 int slot, in ocfs2_queue_orphans() argument 2121 slot); in ocfs2_queue_orphans() 2152 int slot) in ocfs2_orphan_recovery_can_continue() argument 2157 ret = !osb->osb_orphan_wipes[slot]; in ocfs2_orphan_recovery_can_continue() 2163 int slot) in ocfs2_mark_recovering_orphan_dir() argument 2168 ocfs2_node_map_set_bit(osb, &osb->osb_recovering_orphan_dirs, slot); in ocfs2_mark_recovering_orphan_dir() 2169 while (osb->osb_orphan_wipes[slot]) { in ocfs2_mark_recovering_orphan_dir() [all …]
|
D | suballoc.c | 765 u32 slot, in ocfs2_reserve_suballoc_bits() argument 776 alloc_inode = ocfs2_get_system_file_inode(osb, type, slot); in ocfs2_reserve_suballoc_bits() 794 ac->ac_alloc_slot = slot; in ocfs2_reserve_suballoc_bits() 823 slot, bits_wanted, free_bits); in ocfs2_reserve_suballoc_bits() 876 static void __ocfs2_set_steal_slot(struct ocfs2_super *osb, int slot, int type) in __ocfs2_set_steal_slot() argument 880 osb->s_inode_steal_slot = (u16)slot; in __ocfs2_set_steal_slot() 882 osb->s_meta_steal_slot = (u16)slot; in __ocfs2_set_steal_slot() 888 int slot = OCFS2_INVALID_SLOT; in __ocfs2_get_steal_slot() local 892 slot = osb->s_inode_steal_slot; in __ocfs2_get_steal_slot() 894 slot = osb->s_meta_steal_slot; in __ocfs2_get_steal_slot() [all …]
|
/fs/btrfs/tests/ |
D | inode-tests.c | 17 u64 disk_len, u32 type, u8 compression, int slot) in insert_extent() argument 30 path.slots[0] = slot; in insert_extent() 37 fi = btrfs_item_ptr(leaf, slot, struct btrfs_file_extent_item); in insert_extent() 89 int slot = 0; in setup_file_extents() local 95 slot); in setup_file_extents() 96 slot++; in setup_file_extents() 106 slot); in setup_file_extents() 107 slot++; in setup_file_extents() 112 slot); in setup_file_extents() 113 slot++; in setup_file_extents() [all …]
|
D | btrfs-tests.c | 155 void **slot; in btrfs_free_dummy_fs_info() local 168 radix_tree_for_each_slot(slot, &fs_info->buffer_radix, &iter, 0) { in btrfs_free_dummy_fs_info() 171 eb = radix_tree_deref_slot_protected(slot, &fs_info->buffer_lock); in btrfs_free_dummy_fs_info() 177 slot = radix_tree_iter_retry(&iter); in btrfs_free_dummy_fs_info() 180 slot = radix_tree_iter_resume(slot, &iter); in btrfs_free_dummy_fs_info()
|
/fs/afs/ |
D | dir_edit.c | 215 int slot; in afs_edit_dir_add() local 283 slot = afs_find_contig_bits(block, need_slots); in afs_edit_dir_add() 284 if (slot >= 0) { in afs_edit_dir_add() 285 _debug("slot %u", slot); in afs_edit_dir_add() 308 slot = AFS_DIR_RESV_BLOCKS0; in afs_edit_dir_add() 316 trace_afs_edit_dir(vnode, why, afs_edit_dir_create, b, slot, in afs_edit_dir_add() 318 de = &block->dirents[slot]; in afs_edit_dir_add() 328 afs_set_contig_bits(block, slot, need_slots); in afs_edit_dir_add() 341 _debug("Insert %s in %u[%u]", name->name, b, slot); in afs_edit_dir_add() 382 int slot; in afs_edit_dir_remove() local [all …]
|
/fs/jfs/ |
D | jfs_dtree.c | 243 struct dir_table_slot *slot; in find_index() local 264 slot = &jfs_ip->i_dirtable[index - 2]; in find_index() 284 slot = in find_index() 288 return slot; in find_index() 321 static u32 add_index(tid_t tid, struct inode *ip, s64 bn, int slot) in add_index() argument 358 dirtab_slot->slot = slot; in add_index() 463 dirtab_slot->slot = slot; in add_index() 495 dirtab_slot->slot = dirtab_slot->addr1 = 0; in free_index() 512 int slot, struct metapage ** mp, s64 *lblock) in modify_index() argument 522 dirtab_slot->slot = slot; in modify_index() [all …]
|
D | jfs_dtree.h | 101 u8 slot; /* 1: slot within leaf page of entry */ member 146 struct dtslot slot[9]; member 197 struct dtslot slot[128]; member 223 (s8 *)&(p)->slot[(p)->header.stblindex] )
|