Home
last modified time | relevance | path

Searched refs:slot (Results 1 – 25 of 77) sorted by relevance

1234

/fs/btrfs/
Dtree-checker.c56 static void generic_err(const struct extent_buffer *eb, int slot, in generic_err() argument
71 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, &vaf); in generic_err()
81 static void file_extent_err(const struct extent_buffer *eb, int slot, in file_extent_err() argument
89 btrfs_item_key_to_cpu(eb, &key, slot); in file_extent_err()
98 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, in file_extent_err()
107 #define CHECK_FE_ALIGNED(leaf, slot, fi, name, alignment) \ argument
111 file_extent_err((leaf), (slot), \
141 static void dir_item_err(const struct extent_buffer *eb, int slot, in dir_item_err() argument
149 btrfs_item_key_to_cpu(eb, &key, slot); in dir_item_err()
158 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, in dir_item_err()
[all …]
Dctree.c921 const struct btrfs_key *key, int *slot) in btrfs_bin_search() argument
979 *slot = mid; in btrfs_bin_search()
983 *slot = low; in btrfs_bin_search()
1007 int slot) in btrfs_read_node_slot() argument
1013 if (slot < 0 || slot >= btrfs_header_nritems(parent)) in btrfs_read_node_slot()
1019 check.transid = btrfs_node_ptr_generation(parent, slot); in btrfs_read_node_slot()
1022 btrfs_node_key_to_cpu(parent, &check.first_key, slot); in btrfs_read_node_slot()
1024 eb = read_tree_block(parent->fs_info, btrfs_node_blockptr(parent, slot), in btrfs_read_node_slot()
1452 int level, int slot, u64 objectid) in reada_for_search() argument
1487 search = btrfs_node_blockptr(node, slot); in reada_for_search()
[all …]
Duuid-tree.c31 int slot; in btrfs_uuid_tree_lookup() local
57 slot = path->slots[0]; in btrfs_uuid_tree_lookup()
58 item_size = btrfs_item_size(eb, slot); in btrfs_uuid_tree_lookup()
59 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_lookup()
94 int slot; in btrfs_uuid_tree_add() local
120 slot = path->slots[0]; in btrfs_uuid_tree_add()
121 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_add()
129 slot = path->slots[0]; in btrfs_uuid_tree_add()
130 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_add()
131 offset += btrfs_item_size(eb, slot) - sizeof(subid_le); in btrfs_uuid_tree_add()
[all …]
Dtree-mod-log.c25 int slot; member
203 int slot, in alloc_tree_mod_elem() argument
214 btrfs_node_key(eb, &tm->key, slot); in alloc_tree_mod_elem()
215 tm->blockptr = btrfs_node_blockptr(eb, slot); in alloc_tree_mod_elem()
218 tm->slot = slot; in alloc_tree_mod_elem()
219 tm->generation = btrfs_node_ptr_generation(eb, slot); in alloc_tree_mod_elem()
225 int btrfs_tree_mod_log_insert_key(struct extent_buffer *eb, int slot, in btrfs_tree_mod_log_insert_key() argument
234 tm = alloc_tree_mod_elem(eb, slot, op); in btrfs_tree_mod_log_insert_key()
273 tm->slot = src_slot; in tree_mod_log_alloc_move()
830 BUG_ON(tm->slot < n); in tree_mod_log_rewind()
[all …]
Droot-tree.c27 static void btrfs_read_root_item(struct extent_buffer *eb, int slot, in btrfs_read_root_item() argument
33 len = btrfs_item_size(eb, slot); in btrfs_read_root_item()
34 read_extent_buffer(eb, item, btrfs_item_ptr_offset(eb, slot), in btrfs_read_root_item()
74 int slot; in btrfs_find_root() local
92 slot = path->slots[0]; in btrfs_find_root()
94 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_root()
102 btrfs_read_root_item(l, slot, root_item); in btrfs_find_root()
129 int slot; in btrfs_update_root() local
152 slot = path->slots[0]; in btrfs_update_root()
153 ptr = btrfs_item_ptr_offset(l, slot); in btrfs_update_root()
[all …]
Dbackref.c111 int slot; in find_extent_in_eb() local
122 for (slot = 0; slot < nritems; ++slot) { in find_extent_in_eb()
123 btrfs_item_key_to_cpu(eb, &key, slot); in find_extent_in_eb()
126 fi = btrfs_item_ptr(eb, slot, struct btrfs_file_extent_item); in find_extent_in_eb()
478 int slot; in add_all_parents() local
520 slot = path->slots[0]; in add_all_parents()
522 btrfs_item_key_to_cpu(eb, &key, slot); in add_all_parents()
533 if (slot == 0 && in add_all_parents()
542 fi = btrfs_item_ptr(eb, slot, struct btrfs_file_extent_item); in add_all_parents()
1022 int slot; in add_inline_refs() local
[all …]
Dxattr.c172 const int slot = path->slots[0]; in btrfs_setxattr() local
175 const u32 item_size = btrfs_item_size(leaf, slot); in btrfs_setxattr()
202 ptr = btrfs_item_ptr(leaf, slot, char); in btrfs_setxattr()
203 ptr += btrfs_item_size(leaf, slot) - data_size; in btrfs_setxattr()
305 int slot; in btrfs_listxattr() local
311 slot = path->slots[0]; in btrfs_listxattr()
321 di = btrfs_item_ptr(leaf, slot, struct btrfs_dir_item); in btrfs_listxattr()
322 item_size = btrfs_item_size(leaf, slot); in btrfs_listxattr()
Dinode-item.c19 int slot, in btrfs_find_name_in_backref() argument
29 item_size = btrfs_item_size(leaf, slot); in btrfs_find_name_in_backref()
30 ptr = btrfs_item_ptr_offset(leaf, slot); in btrfs_find_name_in_backref()
46 struct extent_buffer *leaf, int slot, u64 ref_objectid, in btrfs_find_name_in_ext_backref() argument
56 item_size = btrfs_item_size(leaf, slot); in btrfs_find_name_in_ext_backref()
57 ptr = btrfs_item_ptr_offset(leaf, slot); in btrfs_find_name_in_ext_backref()
408 int slot; in btrfs_lookup_inode() local
415 slot = path->slots[0] - 1; in btrfs_lookup_inode()
417 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_lookup_inode()
430 u64 offset, int extent_type, int slot) in btrfs_trace_truncate() argument
[all …]
Dtree-log.c398 struct extent_buffer *eb, int slot, in overwrite_item() argument
418 item_size = btrfs_item_size(eb, slot); in overwrite_item()
419 src_ptr = btrfs_item_ptr_offset(eb, slot); in overwrite_item()
479 item = btrfs_item_ptr(eb, slot, in overwrite_item()
500 item = btrfs_item_ptr(eb, slot, struct btrfs_inode_item); in overwrite_item()
646 struct extent_buffer *eb, int slot, in replay_one_extent() argument
660 item = btrfs_item_ptr(eb, slot, struct btrfs_file_extent_item); in replay_one_extent()
900 ret = overwrite_item(trans, root, path, eb, slot, key); in replay_one_extent()
1370 struct extent_buffer *eb, int slot, in add_inode_ref() argument
1385 ref_ptr = btrfs_item_ptr_offset(eb, slot); in add_inode_ref()
[all …]
Dprops.c164 int slot; in iterate_object_props() local
167 slot = path->slots[0]; in iterate_object_props()
170 if (slot >= btrfs_header_nritems(leaf)) { in iterate_object_props()
179 btrfs_item_key_to_cpu(leaf, &key, slot); in iterate_object_props()
189 di = btrfs_item_ptr(leaf, slot, struct btrfs_dir_item); in iterate_object_props()
191 total_len = btrfs_item_size(leaf, slot); in iterate_object_props()
/fs/nfs/
Dnfs4session.c49 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 …]
Dcallback_proc.c402 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 …]
Dnfs4session.h91 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/
Dmember.c36 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/
Dheartbeat.c591 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 = &reg->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/
Ddir.c27 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()
Dnamei.c20 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/
Dsysfile.c28 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()
Dslot_map.c273 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 …]
Djournal.c59 int slot,
1117 int slot) in ocfs2_clear_journal_error() argument
1124 "journal %u.\n", olderr, slot); in ocfs2_clear_journal_error()
2156 int slot, in ocfs2_queue_orphans() argument
2171 slot); in ocfs2_queue_orphans()
2202 int slot) in ocfs2_orphan_recovery_can_continue() argument
2207 ret = !osb->osb_orphan_wipes[slot]; in ocfs2_orphan_recovery_can_continue()
2213 int slot) in ocfs2_mark_recovering_orphan_dir() argument
2218 ocfs2_node_map_set_bit(osb, &osb->osb_recovering_orphan_dirs, slot); in ocfs2_mark_recovering_orphan_dir()
2219 while (osb->osb_orphan_wipes[slot]) { in ocfs2_mark_recovering_orphan_dir()
[all …]
/fs/btrfs/tests/
Dinode-tests.c18 u64 disk_len, u32 type, u8 compression, int slot) in insert_extent() argument
31 path.slots[0] = slot; in insert_extent()
42 fi = btrfs_item_ptr(leaf, slot, struct btrfs_file_extent_item); in insert_extent()
98 int slot = 0; in setup_file_extents() local
108 slot); in setup_file_extents()
109 slot++; in setup_file_extents()
114 slot); in setup_file_extents()
115 slot++; in setup_file_extents()
120 disk_bytenr, sectorsize, BTRFS_FILE_EXTENT_REG, 0, slot); in setup_file_extents()
121 slot++; in setup_file_extents()
[all …]
Dbtrfs-tests.c156 void **slot; in btrfs_free_dummy_fs_info() local
169 radix_tree_for_each_slot(slot, &fs_info->buffer_radix, &iter, 0) { in btrfs_free_dummy_fs_info()
172 eb = radix_tree_deref_slot_protected(slot, &fs_info->buffer_lock); in btrfs_free_dummy_fs_info()
178 slot = radix_tree_iter_retry(&iter); in btrfs_free_dummy_fs_info()
181 slot = radix_tree_iter_resume(slot, &iter); in btrfs_free_dummy_fs_info()
/fs/afs/
Ddir_edit.c216 int slot; in afs_edit_dir_add() local
284 slot = afs_find_contig_bits(block, need_slots); in afs_edit_dir_add()
285 if (slot >= 0) { in afs_edit_dir_add()
286 _debug("slot %u", slot); in afs_edit_dir_add()
309 slot = AFS_DIR_RESV_BLOCKS0; in afs_edit_dir_add()
317 trace_afs_edit_dir(vnode, why, afs_edit_dir_create, b, slot, in afs_edit_dir_add()
319 de = &block->dirents[slot]; in afs_edit_dir_add()
329 afs_set_contig_bits(block, slot, need_slots); in afs_edit_dir_add()
342 _debug("Insert %s in %u[%u]", name->name, b, slot); in afs_edit_dir_add()
383 int slot; in afs_edit_dir_remove() local
[all …]
/fs/jfs/
Djfs_dtree.c243 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 …]
Djfs_dtree.h101 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] )

1234