Home
last modified time | relevance | path

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

123

/fs/btrfs/
Dtree-checker.c50 static void generic_err(const struct extent_buffer *eb, int slot, in generic_err() argument
65 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, &vaf); in generic_err()
75 static void file_extent_err(const struct extent_buffer *eb, int slot, in file_extent_err() argument
83 btrfs_item_key_to_cpu(eb, &key, slot); in file_extent_err()
92 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, in file_extent_err()
101 #define CHECK_FE_ALIGNED(leaf, slot, fi, name, alignment) \ argument
104 file_extent_err((leaf), (slot), \
134 static void dir_item_err(const struct extent_buffer *eb, int slot, in dir_item_err() argument
142 btrfs_item_key_to_cpu(eb, &key, slot); in dir_item_err()
151 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, in dir_item_err()
[all …]
Dctree.c30 int level, int slot);
258 int slot; member
434 alloc_tree_mod_elem(struct extent_buffer *eb, int slot, in alloc_tree_mod_elem() argument
445 btrfs_node_key(eb, &tm->key, slot); in alloc_tree_mod_elem()
446 tm->blockptr = btrfs_node_blockptr(eb, slot); in alloc_tree_mod_elem()
449 tm->slot = slot; in alloc_tree_mod_elem()
450 tm->generation = btrfs_node_ptr_generation(eb, slot); in alloc_tree_mod_elem()
456 static noinline int tree_mod_log_insert_key(struct extent_buffer *eb, int slot, in tree_mod_log_insert_key() argument
465 tm = alloc_tree_mod_elem(eb, slot, op, flags); in tree_mod_log_insert_key()
505 tm->slot = src_slot; in tree_mod_log_insert_move()
[all …]
Duuid-tree.c28 int slot; in btrfs_uuid_tree_lookup() local
54 slot = path->slots[0]; in btrfs_uuid_tree_lookup()
55 item_size = btrfs_item_size_nr(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_nr(eb, slot) - sizeof(subid_le); in btrfs_uuid_tree_add()
[all …]
Droot-tree.c22 static void btrfs_read_root_item(struct extent_buffer *eb, int slot, in btrfs_read_root_item() argument
28 len = btrfs_item_size_nr(eb, slot); in btrfs_read_root_item()
29 read_extent_buffer(eb, item, btrfs_item_ptr_offset(eb, slot), in btrfs_read_root_item()
71 int slot; in btrfs_find_root() local
89 slot = path->slots[0]; in btrfs_find_root()
91 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_root()
99 btrfs_read_root_item(l, slot, root_item); in btrfs_find_root()
126 int slot; in btrfs_update_root() local
149 slot = path->slots[0]; in btrfs_update_root()
150 ptr = btrfs_item_ptr_offset(l, slot); in btrfs_update_root()
[all …]
Dxattr.c168 const int slot = path->slots[0]; in btrfs_setxattr() local
171 const u32 item_size = btrfs_item_size_nr(leaf, slot); in btrfs_setxattr()
199 item = btrfs_item_nr(slot); in btrfs_setxattr()
200 ptr = btrfs_item_ptr(leaf, slot, char); in btrfs_setxattr()
304 int slot; in btrfs_listxattr() local
311 slot = path->slots[0]; in btrfs_listxattr()
314 if (slot >= btrfs_header_nritems(leaf)) { in btrfs_listxattr()
327 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_listxattr()
337 di = btrfs_item_ptr(leaf, slot, struct btrfs_dir_item); in btrfs_listxattr()
338 item_size = btrfs_item_size_nr(leaf, slot); in btrfs_listxattr()
Dinode-item.c12 int slot, const char *name, in btrfs_find_name_in_backref() argument
22 item_size = btrfs_item_size_nr(leaf, slot); in btrfs_find_name_in_backref()
23 ptr = btrfs_item_ptr_offset(leaf, slot); in btrfs_find_name_in_backref()
38 struct extent_buffer *leaf, int slot, u64 ref_objectid, in btrfs_find_name_in_ext_backref() argument
48 item_size = btrfs_item_size_nr(leaf, slot); in btrfs_find_name_in_ext_backref()
49 ptr = btrfs_item_ptr_offset(leaf, slot); in btrfs_find_name_in_ext_backref()
410 int slot; in btrfs_lookup_inode() local
417 slot = path->slots[0] - 1; in btrfs_lookup_inode()
419 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_lookup_inode()
Dbackref.c83 int slot; in find_extent_in_eb() local
94 for (slot = 0; slot < nritems; ++slot) { in find_extent_in_eb()
95 btrfs_item_key_to_cpu(eb, &key, slot); in find_extent_in_eb()
98 fi = btrfs_item_ptr(eb, slot, struct btrfs_file_extent_item); in find_extent_in_eb()
425 int slot; in add_all_parents() local
467 slot = path->slots[0]; in add_all_parents()
469 btrfs_item_key_to_cpu(eb, &key, slot); in add_all_parents()
480 if (slot == 0 && in add_all_parents()
489 fi = btrfs_item_ptr(eb, slot, struct btrfs_file_extent_item); in add_all_parents()
969 int slot; in add_inline_refs() local
[all …]
Dprops.c134 int slot; in iterate_object_props() local
137 slot = path->slots[0]; in iterate_object_props()
140 if (slot >= btrfs_header_nritems(leaf)) { in iterate_object_props()
149 btrfs_item_key_to_cpu(leaf, &key, slot); in iterate_object_props()
159 di = btrfs_item_ptr(leaf, slot, struct btrfs_dir_item); in iterate_object_props()
161 total_len = btrfs_item_size_nr(leaf, slot); in iterate_object_props()
Dtree-log.c347 struct extent_buffer *eb, int slot, in overwrite_item() argument
362 item_size = btrfs_item_size_nr(eb, slot); in overwrite_item()
363 src_ptr = btrfs_item_ptr_offset(eb, slot); in overwrite_item()
423 item = btrfs_item_ptr(eb, slot, in overwrite_item()
444 item = btrfs_item_ptr(eb, slot, struct btrfs_inode_item); in overwrite_item()
576 struct extent_buffer *eb, int slot, in replay_one_extent() argument
589 item = btrfs_item_ptr(eb, slot, struct btrfs_file_extent_item); in replay_one_extent()
823 ret = overwrite_item(trans, root, path, eb, slot, key); in replay_one_extent()
1426 struct extent_buffer *eb, int slot, in add_inode_ref() argument
1443 ref_ptr = btrfs_item_ptr_offset(eb, slot); in add_inode_ref()
[all …]
/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.c397 validate_seqid(const struct nfs4_slot_table *tbl, const struct nfs4_slot *slot, in validate_seqid() argument
407 if (args->csa_sequenceid == slot->seq_nr) { in validate_seqid()
409 if (nfs4_test_locked_slot(tbl, slot->slot_nr)) in validate_seqid()
425 if (args->csa_sequenceid != slot->seq_nr + 1) in validate_seqid()
489 struct nfs4_slot *slot; in nfs4_callback_sequence() local
523 slot = nfs4_lookup_slot(tbl, args->csa_slotid); in nfs4_callback_sequence()
524 if (IS_ERR(slot)) in nfs4_callback_sequence()
530 status = validate_seqid(tbl, slot, args); in nfs4_callback_sequence()
533 if (!nfs4_try_to_lock_slot(tbl, slot)) { in nfs4_callback_sequence()
537 cps->slot = slot; in nfs4_callback_sequence()
[all …]
Dnfs4session.h90 extern bool nfs4_try_to_lock_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot);
91 extern void nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot);
94 struct nfs4_slot *slot);
117 struct nfs4_slot *slot,
/fs/dlm/
Dmember.c35 memb->slot = le16_to_cpu(rf->rf_our_slot); in dlm_slot_save()
41 struct dlm_slot *slot; in dlm_slots_copy_out() local
50 slot = &ls->ls_slots[i]; in dlm_slots_copy_out()
51 if (!slot->nodeid) in dlm_slots_copy_out()
53 ro->ro_nodeid = cpu_to_le32(slot->nodeid); in dlm_slots_copy_out()
54 ro->ro_slot = cpu_to_le16(slot->slot); in dlm_slots_copy_out()
78 array[i].slot, array[i].nodeid); in log_slots()
133 memb->slot = ro->ro_slot; in dlm_slots_copy_in()
134 memb->slot_prev = memb->slot; in dlm_slots_copy_in()
139 if (ls->ls_slot && ls->ls_slot != memb->slot) { in dlm_slots_copy_in()
[all …]
/fs/ocfs2/cluster/
Dheartbeat.c598 unsigned int slot; in o2hb_issue_node_write() local
603 slot = o2nm_this_node(); in o2hb_issue_node_write()
605 bio = o2hb_setup_one_bio(reg, write_wc, &slot, slot+1, REQ_OP_WRITE, in o2hb_issue_node_write()
669 struct o2hb_disk_slot *slot; in o2hb_check_own_slot() local
673 slot = &reg->hr_slots[o2nm_this_node()]; in o2hb_check_own_slot()
675 if (!slot->ds_last_time) in o2hb_check_own_slot()
678 hb_block = slot->ds_raw_block; in o2hb_check_own_slot()
679 if (le64_to_cpu(hb_block->hb_seq) == slot->ds_last_time && in o2hb_check_own_slot()
680 le64_to_cpu(hb_block->hb_generation) == slot->ds_last_generation && in o2hb_check_own_slot()
681 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.c30 u32 slot);
44 u32 slot) in get_local_system_inode() argument
49 BUG_ON(slot == OCFS2_INVALID_SLOT); in get_local_system_inode()
84 index = (slot * NUM_LOCAL_SYSTEM_INODES) + in get_local_system_inode()
92 u32 slot) in ocfs2_get_system_file_inode() argument
101 arr = get_local_system_inode(osb, type, slot); in ocfs2_get_system_file_inode()
114 inode = _ocfs2_get_system_file_inode(osb, type, slot); in ocfs2_get_system_file_inode()
127 u32 slot) in _ocfs2_get_system_file_inode() argument
136 type, slot); in _ocfs2_get_system_file_inode()
Dslot_map.c275 int slot; in ocfs2_node_num_to_slot() local
279 slot = __ocfs2_node_num_to_slot(si, node_num); in ocfs2_node_num_to_slot()
282 return slot; in ocfs2_node_num_to_slot()
451 int slot; in ocfs2_find_slot() local
463 slot = __ocfs2_node_num_to_slot(si, osb->node_num); in ocfs2_find_slot()
464 if (slot < 0) { in ocfs2_find_slot()
467 slot = __ocfs2_find_empty_slot(si, osb->preferred_slot); in ocfs2_find_slot()
468 if (slot < 0) { in ocfs2_find_slot()
476 "allocated to this node!\n", slot, osb->dev_str); in ocfs2_find_slot()
478 ocfs2_set_slot(si, slot, osb->node_num); in ocfs2_find_slot()
[all …]
Djournal.c60 int slot,
1040 int slot) in ocfs2_clear_journal_error() argument
1047 "journal %u.\n", olderr, slot); in ocfs2_clear_journal_error()
2084 int slot, in ocfs2_queue_orphans() argument
2099 slot); in ocfs2_queue_orphans()
2130 int slot) in ocfs2_orphan_recovery_can_continue() argument
2135 ret = !osb->osb_orphan_wipes[slot]; in ocfs2_orphan_recovery_can_continue()
2141 int slot) in ocfs2_mark_recovering_orphan_dir() argument
2146 ocfs2_node_map_set_bit(osb, &osb->osb_recovering_orphan_dirs, slot); in ocfs2_mark_recovering_orphan_dir()
2147 while (osb->osb_orphan_wipes[slot]) { in ocfs2_mark_recovering_orphan_dir()
[all …]
Dsuballoc.c767 u32 slot, in ocfs2_reserve_suballoc_bits() argument
778 alloc_inode = ocfs2_get_system_file_inode(osb, type, slot); in ocfs2_reserve_suballoc_bits()
796 ac->ac_alloc_slot = slot; in ocfs2_reserve_suballoc_bits()
825 slot, bits_wanted, free_bits); in ocfs2_reserve_suballoc_bits()
878 static void __ocfs2_set_steal_slot(struct ocfs2_super *osb, int slot, int type) in __ocfs2_set_steal_slot() argument
882 osb->s_inode_steal_slot = (u16)slot; in __ocfs2_set_steal_slot()
884 osb->s_meta_steal_slot = (u16)slot; in __ocfs2_set_steal_slot()
890 int slot = OCFS2_INVALID_SLOT; in __ocfs2_get_steal_slot() local
894 slot = osb->s_inode_steal_slot; in __ocfs2_get_steal_slot()
896 slot = osb->s_meta_steal_slot; in __ocfs2_get_steal_slot()
[all …]
/fs/btrfs/tests/
Dinode-tests.c17 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 …]
Dbtrfs-tests.c147 void **slot; in btrfs_free_dummy_fs_info() local
160 radix_tree_for_each_slot(slot, &fs_info->buffer_radix, &iter, 0) { in btrfs_free_dummy_fs_info()
163 eb = radix_tree_deref_slot_protected(slot, &fs_info->buffer_lock); in btrfs_free_dummy_fs_info()
169 slot = radix_tree_iter_retry(&iter); in btrfs_free_dummy_fs_info()
172 slot = radix_tree_iter_resume(slot, &iter); in btrfs_free_dummy_fs_info()
/fs/afs/
Ddir_edit.c198 int slot; in afs_edit_dir_add() local
276 slot = afs_find_contig_bits(block, need_slots); in afs_edit_dir_add()
277 if (slot >= 0) { in afs_edit_dir_add()
278 _debug("slot %u", slot); in afs_edit_dir_add()
301 slot = AFS_DIR_RESV_BLOCKS0; in afs_edit_dir_add()
309 trace_afs_edit_dir(vnode, why, afs_edit_dir_create, b, slot, in afs_edit_dir_add()
311 de = &block->dirents[slot]; in afs_edit_dir_add()
321 afs_set_contig_bits(block, slot, need_slots); in afs_edit_dir_add()
334 _debug("Insert %s in %u[%u]", name->name, b, slot); in afs_edit_dir_add()
375 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] )

123