Home
last modified time | relevance | path

Searched refs:slots (Results 1 – 25 of 56) sorted by relevance

123

/fs/btrfs/
Dfile-item.c159 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_file_extent()
203 if (path->slots[0] == 0) in btrfs_lookup_csum()
205 path->slots[0]--; in btrfs_lookup_csum()
206 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum()
212 csums_in_item = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_lookup_csum()
222 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); in btrfs_lookup_csum()
275 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in search_csum_tree()
277 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in search_csum_tree()
278 itemsize = btrfs_item_size_nr(path->nodes[0], path->slots[0]); in search_csum_tree()
294 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in search_csum_tree()
[all …]
Dctree.c102 p->slots[i] = 0; in btrfs_release_path()
901 int orig_slot = path->slots[level]; in balance_level()
915 pslot = path->slots[level + 1]; in balance_level()
1096 path->slots[level + 1] -= 1; in balance_level()
1097 path->slots[level] = orig_slot; in balance_level()
1104 path->slots[level] = orig_slot; in balance_level()
1109 btrfs_node_blockptr(path->nodes[level], path->slots[level])) in balance_level()
1140 int orig_slot = path->slots[level]; in push_nodes_for_insert()
1150 pslot = path->slots[level + 1]; in push_nodes_for_insert()
1192 path->slots[level + 1] -= 1; in push_nodes_for_insert()
[all …]
Dinode-item.c93 return btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_lookup_inode_extref()
133 extref = btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_del_inode_extref()
142 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_del_inode_extref()
156 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_extref()
203 ref = btrfs_find_name_in_backref(path->nodes[0], path->slots[0], name, in btrfs_del_inode_ref()
211 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_del_inode_ref()
222 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_ref()
273 path->slots[0], in btrfs_insert_inode_extref()
285 item = btrfs_item_nr(path->slots[0]); in btrfs_insert_inode_extref()
286 ptr = (unsigned long)btrfs_item_ptr(leaf, path->slots[0], char); in btrfs_insert_inode_extref()
[all …]
Dfree-space-tree.c69 info = btrfs_item_ptr(leaf, path->slots[0], in add_new_free_space_info()
106 return btrfs_item_ptr(path->nodes[0], path->slots[0], in search_free_space_info()
130 if (p->slots[0] == 0) { in btrfs_search_prev_slot()
134 p->slots[0]--; in btrfs_search_prev_slot()
225 path->slots[0]++; in convert_free_space_to_bitmaps()
226 while (path->slots[0] > 0) { in convert_free_space_to_bitmaps()
227 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in convert_free_space_to_bitmaps()
249 path->slots[0]--; in convert_free_space_to_bitmaps()
255 ret = btrfs_del_items(trans, root, path, path->slots[0], nr); in convert_free_space_to_bitmaps()
305 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in convert_free_space_to_bitmaps()
[all …]
Dtree-log.c415 path->slots[0]); in overwrite_item()
434 dst_ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in overwrite_item()
461 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in overwrite_item()
509 path->slots[0]); in overwrite_item()
518 path->slots[0]); in overwrite_item()
678 existing = btrfs_item_ptr(leaf, path->slots[0], in replay_one_extent()
720 path->slots[0]); in replay_one_extent()
1033 path->slots[0], in backref_in_log()
1038 path->slots[0], in backref_in_log()
1086 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in __add_inode_ref()
[all …]
Dverity.c136 if (path->slots[0] == 0) in drop_verity_items()
138 path->slots[0]--; in drop_verity_items()
144 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in drop_verity_items()
156 ret = btrfs_del_items(trans, root, path, path->slots[0], 1); in drop_verity_items()
254 data = btrfs_item_ptr(leaf, path->slots[0], void); in write_key_bytes()
324 if (path->slots[0] == 0) in read_key_bytes()
326 path->slots[0]--; in read_key_bytes()
331 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in read_key_bytes()
336 item_end = btrfs_item_size_nr(leaf, path->slots[0]) + key.offset; in read_key_bytes()
372 data = btrfs_item_ptr(leaf, path->slots[0], void); in read_key_bytes()
[all …]
Ddir-item.c44 item = btrfs_item_nr(path->slots[0]); in insert_with_overflow()
45 ptr = btrfs_item_ptr(leaf, path->slots[0], char); in insert_with_overflow()
273 slot = path->slots[0]; in btrfs_check_dir_item_collision()
348 if (path->slots[0] >= nritems) { in btrfs_search_dir_index_item()
359 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_search_dir_index_item()
368 path->slots[0]++; in btrfs_search_dir_index_item()
410 dir_item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dir_item); in btrfs_match_dir_item_name()
412 total_len = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_match_dir_item_name()
448 item_len = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_delete_one_dir_name()
456 start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_delete_one_dir_name()
Dexport.c166 if (path->slots[0] == 0) { in btrfs_get_parent()
171 path->slots[0]--; in btrfs_get_parent()
174 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_parent()
181 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_parent()
243 path->slots[0]--; in btrfs_get_name()
252 rref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_name()
257 iref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_name()
Droot-tree.c82 if (path->slots[0] == 0) in btrfs_find_root()
84 path->slots[0]--; in btrfs_find_root()
89 slot = path->slots[0]; in btrfs_find_root()
149 slot = path->slots[0]; in btrfs_update_root()
180 slot = path->slots[0]; in btrfs_update_root()
235 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in btrfs_find_orphan_roots()
244 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_find_orphan_roots()
359 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_del_root_ref()
435 ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref); in btrfs_add_root_ref()
Dextent-tree.c161 if (path->slots[0]) { in btrfs_lookup_extent_info()
162 path->slots[0]--; in btrfs_lookup_extent_info()
164 path->slots[0]); in btrfs_lookup_extent_info()
174 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_lookup_extent_info()
176 ei = btrfs_item_ptr(leaf, path->slots[0], in btrfs_lookup_extent_info()
481 if (path->slots[0] >= nritems) { in lookup_extent_data_ref()
493 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in lookup_extent_data_ref()
498 ref = btrfs_item_ptr(leaf, path->slots[0], in lookup_extent_data_ref()
510 path->slots[0]++; in lookup_extent_data_ref()
548 ref = btrfs_item_ptr(leaf, path->slots[0], in insert_extent_data_ref()
[all …]
Dfile.c744 if (ret > 0 && path->slots[0] > 0 && search_start == args->start) { in btrfs_drop_extents()
746 btrfs_item_key_to_cpu(leaf, &key, path->slots[0] - 1); in btrfs_drop_extents()
749 path->slots[0]--; in btrfs_drop_extents()
755 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in btrfs_drop_extents()
769 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_drop_extents()
776 path->slots[0]++; in btrfs_drop_extents()
782 fi = btrfs_item_ptr(leaf, path->slots[0], in btrfs_drop_extents()
816 path->slots[0]++; in btrfs_drop_extents()
851 fi = btrfs_item_ptr(leaf, path->slots[0] - 1, in btrfs_drop_extents()
856 fi = btrfs_item_ptr(leaf, path->slots[0], in btrfs_drop_extents()
[all …]
Dsend.c847 ii = btrfs_item_ptr(path->nodes[0], path->slots[0], in __get_inode_info()
906 int slot = path->slots[0]; in iterate_inode_ref()
1047 slot = path->slots[0]; in iterate_dir_item()
1169 btrfs_item_key_to_cpu(p->nodes[0], &found_key, p->slots[0]); in get_inode_path()
1345 fi = btrfs_item_ptr(eb, path->slots[0], in find_extent_clone()
1374 ei = btrfs_item_ptr(tmp_path->nodes[0], tmp_path->slots[0], in find_extent_clone()
1527 ei = btrfs_item_ptr(path->nodes[0], path->slots[0], in read_symlink()
1771 path->slots[0]); in get_first_ref()
1781 iref = btrfs_item_ptr(path->nodes[0], path->slots[0], in get_first_ref()
1790 extref = btrfs_item_ptr(path->nodes[0], path->slots[0], in get_first_ref()
[all …]
Dbackref.c457 if (path->slots[0] >= btrfs_header_nritems(eb) || in add_all_parents()
468 slot = path->slots[0]; in add_all_parents()
984 slot = path->slots[0]; in add_inline_refs()
1107 slot = path->slots[0]; in add_keyed_refs()
1300 if (path->slots[0]) {
1304 path->slots[0]--;
1306 slot = path->slots[0];
1655 slot = path->slots[0];
1690 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]);
1754 slot = path->slots[0];
[all …]
Drelocation.c1027 fi = btrfs_item_ptr(leaf, path->slots[0], in get_new_location()
1184 btrfs_node_key(path->nodes[level], &key2, path->slots[level]); in memcmp_node_keys()
1224 slot = path->slots[lowest_level]; in replace_path()
1273 path->slots[level]); in replace_path()
1275 path->slots[level]); in replace_path()
1325 path->slots[level]); in replace_path()
1355 path->nodes[level], path->slots[level], in replace_path()
1367 path->slots[level], old_bytenr); in replace_path()
1369 path->slots[level], old_ptr_gen); in replace_path()
1447 while (path->slots[i] + 1 < nritems) { in walk_up_reloc_tree()
[all …]
Duuid-tree.c54 slot = path->slots[0]; in btrfs_uuid_tree_lookup()
117 slot = path->slots[0]; in btrfs_uuid_tree_add()
126 slot = path->slots[0]; in btrfs_uuid_tree_add()
187 slot = path->slots[0]; in btrfs_uuid_tree_remove()
326 slot = path->slots[0]; in btrfs_uuid_tree_iterate()
Dreflink.c195 if (path->slots[0] >= btrfs_header_nritems(path->nodes[0])) { in clone_copy_inline_extent()
202 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in clone_copy_inline_extent()
215 ei = btrfs_item_ptr(path->nodes[0], path->slots[0], in clone_copy_inline_extent()
277 path->slots[0]), in clone_copy_inline_extent()
387 if (key.offset == off && ret > 0 && path->slots[0] > 0) { in btrfs_clone()
389 path->slots[0] - 1); in btrfs_clone()
391 path->slots[0]--; in btrfs_clone()
396 if (path->slots[0] >= nritems) { in btrfs_clone()
405 slot = path->slots[0]; in btrfs_clone()
436 path->slots[0]++; in btrfs_clone()
Dqgroup.c375 slot = path->slots[0]; in btrfs_read_qgroup_config()
469 slot = path->slots[0]; in btrfs_read_qgroup_config()
672 qgroup_info = btrfs_item_ptr(leaf, path->slots[0], in add_qgroup_item()
691 qgroup_limit = btrfs_item_ptr(leaf, path->slots[0], in add_qgroup_item()
780 slot = path->slots[0]; in update_qgroup_limit_item()
826 slot = path->slots[0]; in update_qgroup_info_item()
868 slot = path->slots[0]; in update_qgroup_status_item()
915 path->slots[0] = 0; in btrfs_clean_quota_tree()
1032 ptr = btrfs_item_ptr(leaf, path->slots[0], in btrfs_quota_enable()
1057 slot = path->slots[0]; in btrfs_quota_enable()
[all …]
Dinode.c271 ei = btrfs_item_ptr(leaf, path->slots[0], in insert_inline_extent()
1680 if (ret > 0 && path->slots[0] > 0 && check_prev) { in run_delalloc_nocow()
1683 path->slots[0] - 1); in run_delalloc_nocow()
1686 path->slots[0]--; in run_delalloc_nocow()
1692 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in run_delalloc_nocow()
1704 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in run_delalloc_nocow()
1715 path->slots[0]++; in run_delalloc_nocow()
1738 fi = btrfs_item_ptr(leaf, path->slots[0], in run_delalloc_nocow()
1756 path->slots[0]++; in run_delalloc_nocow()
1844 path->slots[0]++; in run_delalloc_nocow()
[all …]
/fs/fat/
Dnamei_vfat.c582 struct msdos_dir_slot *slots, int *nr_slots) in vfat_build_slots() argument
616 de = (struct msdos_dir_entry *)slots; in vfat_build_slots()
625 for (ps = slots, i = *nr_slots; i > 0; i--, ps++) { in vfat_build_slots()
636 slots[0].id |= 0x40; in vfat_build_slots()
660 struct msdos_dir_slot *slots; in vfat_add_entry() local
668 slots = kmalloc_array(MSDOS_SLOTS, sizeof(*slots), GFP_NOFS); in vfat_add_entry()
669 if (slots == NULL) in vfat_add_entry()
673 slots, &nr_slots); in vfat_add_entry()
677 err = fat_add_entries(dir, slots, nr_slots, sinfo); in vfat_add_entry()
688 kfree(slots); in vfat_add_entry()
Ddir.c284 unsigned char id, slot, slots, alias_checksum; in fat_parse_long() local
298 slots = id & ~0x40; in fat_parse_long()
299 if (slots > 20 || !slots) /* ceil(256 * 2 / 26) */ in fat_parse_long()
301 *nr_slots = slots; in fat_parse_long()
304 slot = slots; in fat_parse_long()
1198 static int fat_add_new_entries(struct inode *dir, void *slots, int nr_slots, in fat_add_new_entries() argument
1242 memcpy(bhs[n]->b_data, slots, copy); in fat_add_new_entries()
1246 slots += copy; in fat_add_new_entries()
1281 int fat_add_entries(struct inode *dir, void *slots, int nr_slots, in fat_add_entries() argument
1346 memcpy(bhs[i]->b_data + offset, slots, copy); in fat_add_entries()
[all …]
/fs/dlm/
Dmember.c496 struct dlm_slot *slots; in dlm_lsop_recover_done() local
503 slots = kcalloc(num, sizeof(*slots), GFP_KERNEL); in dlm_lsop_recover_done()
504 if (!slots) in dlm_lsop_recover_done()
513 slots[i].nodeid = memb->nodeid; in dlm_lsop_recover_done()
514 slots[i].slot = memb->slot; in dlm_lsop_recover_done()
518 ls->ls_ops->recover_done(ls->ls_ops_arg, slots, num, in dlm_lsop_recover_done()
521 kfree(slots); in dlm_lsop_recover_done()
/fs/f2fs/
Ddir.c622 int f2fs_room_for_filename(const void *bitmap, int slots, int max_slots) in f2fs_room_for_filename() argument
632 if (zero_end - zero_start >= slots) in f2fs_room_for_filename()
647 int slots = GET_DENTRY_SLOTS(fname->disk_name.len); in f2fs_has_enough_room() local
651 bit_pos = f2fs_room_for_filename(d.bitmap, slots, d.max); in f2fs_has_enough_room()
661 int slots = GET_DENTRY_SLOTS(name->len); in f2fs_update_dentry() local
670 for (i = 0; i < slots; i++) { in f2fs_update_dentry()
690 int slots, err = 0; in f2fs_add_regular_entry() local
693 slots = GET_DENTRY_SLOTS(fname->disk_name.len); in f2fs_add_regular_entry()
725 slots, NR_DENTRY_IN_BLOCK); in f2fs_add_regular_entry()
885 int slots = GET_DENTRY_SLOTS(le16_to_cpu(dentry->name_len)); in f2fs_delete_entry() local
[all …]
/fs/btrfs/tests/
Dfree-space-tree-tests.c49 if (path->slots[0] != 0) in __check_free_space_extents()
53 while (++path->slots[0] < btrfs_header_nritems(path->nodes[0])) { in __check_free_space_extents()
54 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in __check_free_space_extents()
84 path->slots[0] != 0) in __check_free_space_extents()
87 path->slots[0]++; in __check_free_space_extents()
88 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in __check_free_space_extents()
/fs/efs/
Ddir.c61 for (; slot < dirblock->slots; slot++) { in efs_readdir()
76 __func__, block, slot, dirblock->slots-1, in efs_readdir()
/fs/nfs/
Dnfs4session.c45 p = &tbl->slots; in nfs4_shrink_slot_table()
125 p = &tbl->slots; in nfs4_find_or_create_slot()
279 p = &tbl->slots; in nfs4_reset_slot_table()
317 tbl, tbl->slots, tbl->max_slots); in nfs4_realloc_slot_table()
548 if (status && tbl->slots == NULL) in nfs4_setup_session_slot_tables()

123