Home
last modified time | relevance | path

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

123

/fs/btrfs/
Dfile-item.c61 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_file_extent()
105 if (path->slots[0] == 0) in btrfs_lookup_csum()
107 path->slots[0]--; in btrfs_lookup_csum()
108 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum()
114 csums_in_item = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_lookup_csum()
124 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); in btrfs_lookup_csum()
250 path->slots[0]); in __btrfs_lookup_bio_sums()
254 path->slots[0]); in __btrfs_lookup_bio_sums()
258 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in __btrfs_lookup_bio_sums()
338 if (ret > 0 && path->slots[0] > 0) { in btrfs_lookup_csums_range()
[all …]
Dinode-item.c93 return btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_lookup_inode_extref()
135 extref = btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_del_inode_extref()
144 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_del_inode_extref()
158 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_extref()
207 ref = btrfs_find_name_in_backref(path->nodes[0], path->slots[0], name, in btrfs_del_inode_ref()
215 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_del_inode_ref()
226 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_ref()
278 path->slots[0], in btrfs_insert_inode_extref()
290 item = btrfs_item_nr(path->slots[0]); in btrfs_insert_inode_extref()
291 ptr = (unsigned long)btrfs_item_ptr(leaf, path->slots[0], char); in btrfs_insert_inode_extref()
[all …]
Dctree.c104 p->slots[i] = 0; in btrfs_release_path()
1858 int orig_slot = path->slots[level]; in balance_level()
1873 pslot = path->slots[level + 1]; in balance_level()
2042 path->slots[level + 1] -= 1; in balance_level()
2043 path->slots[level] = orig_slot; in balance_level()
2050 path->slots[level] = orig_slot; in balance_level()
2055 btrfs_node_blockptr(path->nodes[level], path->slots[level])) in balance_level()
2086 int orig_slot = path->slots[level]; in push_nodes_for_insert()
2096 pslot = path->slots[level + 1]; in push_nodes_for_insert()
2138 path->slots[level + 1] -= 1; in push_nodes_for_insert()
[all …]
Dfree-space-tree.c66 info = btrfs_item_ptr(leaf, path->slots[0], in add_new_free_space_info()
103 return btrfs_item_ptr(path->nodes[0], path->slots[0], in search_free_space_info()
127 if (p->slots[0] == 0) { in btrfs_search_prev_slot()
131 p->slots[0]--; in btrfs_search_prev_slot()
222 path->slots[0]++; in convert_free_space_to_bitmaps()
223 while (path->slots[0] > 0) { in convert_free_space_to_bitmaps()
224 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in convert_free_space_to_bitmaps()
246 path->slots[0]--; in convert_free_space_to_bitmaps()
252 ret = btrfs_del_items(trans, root, path, path->slots[0], nr); in convert_free_space_to_bitmaps()
303 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in convert_free_space_to_bitmaps()
[all …]
Dtree-log.c372 path->slots[0]); in overwrite_item()
391 dst_ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in overwrite_item()
418 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in overwrite_item()
466 path->slots[0]); in overwrite_item()
475 path->slots[0]); in overwrite_item()
643 existing = btrfs_item_ptr(leaf, path->slots[0], in replay_one_extent()
682 path->slots[0]); in replay_one_extent()
966 ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in backref_in_log()
970 path->slots[0], in backref_in_log()
978 item_size = btrfs_item_size_nr(path->nodes[0], path->slots[0]); in backref_in_log()
[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()
250 slot = path->slots[0]; in btrfs_check_dir_item_collision()
318 if (path->slots[0] >= nritems) { in btrfs_search_dir_index_item()
329 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_search_dir_index_item()
338 path->slots[0]++; in btrfs_search_dir_index_item()
383 dir_item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dir_item); in btrfs_match_dir_item_name()
385 total_len = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_match_dir_item_name()
421 item_len = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_delete_one_dir_name()
429 start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_delete_one_dir_name()
Dextent-tree.c196 if (path->slots[0]) { in btrfs_lookup_extent_info()
197 path->slots[0]--; in btrfs_lookup_extent_info()
199 path->slots[0]); in btrfs_lookup_extent_info()
209 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_lookup_extent_info()
211 ei = btrfs_item_ptr(leaf, path->slots[0], in btrfs_lookup_extent_info()
517 if (path->slots[0] >= nritems) { in lookup_extent_data_ref()
529 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in lookup_extent_data_ref()
534 ref = btrfs_item_ptr(leaf, path->slots[0], in lookup_extent_data_ref()
546 path->slots[0]++; in lookup_extent_data_ref()
584 ref = btrfs_item_ptr(leaf, path->slots[0], in insert_extent_data_ref()
[all …]
Drelocation.c743 ASSERT(path1->slots[0]); in build_backref_tree()
745 path1->slots[0]--; in build_backref_tree()
773 if (path1->slots[0] >= btrfs_header_nritems(eb)) { in build_backref_tree()
784 btrfs_item_key_to_cpu(eb, &key, path1->slots[0]); in build_backref_tree()
792 ret = find_inline_backref(eb, path1->slots[0], in build_backref_tree()
921 if (ret > 0 && path2->slots[level] > 0) in build_backref_tree()
922 path2->slots[level]--; in build_backref_tree()
925 if (btrfs_node_blockptr(eb, path2->slots[level]) != in build_backref_tree()
1025 path1->slots[0]++; in build_backref_tree()
1635 fi = btrfs_item_ptr(leaf, path->slots[0], in get_new_location()
[all …]
Dfile.c792 if (ret > 0 && path->slots[0] > 0 && search_start == start) { in __btrfs_drop_extents()
794 btrfs_item_key_to_cpu(leaf, &key, path->slots[0] - 1); in __btrfs_drop_extents()
797 path->slots[0]--; in __btrfs_drop_extents()
803 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in __btrfs_drop_extents()
817 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in __btrfs_drop_extents()
824 path->slots[0]++; in __btrfs_drop_extents()
830 fi = btrfs_item_ptr(leaf, path->slots[0], in __btrfs_drop_extents()
864 path->slots[0]++; in __btrfs_drop_extents()
899 fi = btrfs_item_ptr(leaf, path->slots[0] - 1, in __btrfs_drop_extents()
904 fi = btrfs_item_ptr(leaf, path->slots[0], in __btrfs_drop_extents()
[all …]
Dexport.c187 if (path->slots[0] == 0) { in btrfs_get_parent()
192 path->slots[0]--; in btrfs_get_parent()
195 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_parent()
202 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_parent()
267 path->slots[0]--; in btrfs_get_name()
276 rref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_name()
281 iref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_name()
Droot-tree.c84 if (path->slots[0] == 0) in btrfs_find_root()
86 path->slots[0]--; in btrfs_find_root()
91 slot = path->slots[0]; in btrfs_find_root()
151 slot = path->slots[0]; in btrfs_update_root()
182 slot = path->slots[0]; in btrfs_update_root()
239 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in btrfs_find_orphan_roots()
248 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_find_orphan_roots()
377 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_del_root_ref()
453 ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref); in btrfs_add_root_ref()
Dsend.c842 ii = btrfs_item_ptr(path->nodes[0], path->slots[0], in __get_inode_info()
901 int slot = path->slots[0]; in iterate_inode_ref()
1042 slot = path->slots[0]; in iterate_dir_item()
1164 btrfs_item_key_to_cpu(p->nodes[0], &found_key, p->slots[0]); in get_inode_path()
1340 fi = btrfs_item_ptr(eb, path->slots[0], in find_extent_clone()
1369 ei = btrfs_item_ptr(tmp_path->nodes[0], tmp_path->slots[0], in find_extent_clone()
1516 ei = btrfs_item_ptr(path->nodes[0], path->slots[0], in read_symlink()
1760 path->slots[0]); in get_first_ref()
1770 iref = btrfs_item_ptr(path->nodes[0], path->slots[0], in get_first_ref()
1779 extref = btrfs_item_ptr(path->nodes[0], path->slots[0], in get_first_ref()
[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()
188 slot = path->slots[0]; in btrfs_uuid_tree_remove()
283 slot = path->slots[0]; in btrfs_uuid_tree_iterate()
Dqgroup.c370 slot = path->slots[0]; in btrfs_read_qgroup_config()
460 slot = path->slots[0]; in btrfs_read_qgroup_config()
621 qgroup_info = btrfs_item_ptr(leaf, path->slots[0], in add_qgroup_item()
640 qgroup_limit = btrfs_item_ptr(leaf, path->slots[0], in add_qgroup_item()
729 slot = path->slots[0]; in update_qgroup_limit_item()
775 slot = path->slots[0]; in update_qgroup_info_item()
817 slot = path->slots[0]; in update_qgroup_status_item()
866 path->slots[0] = 0; in btrfs_clean_quota_tree()
947 ptr = btrfs_item_ptr(leaf, path->slots[0], in btrfs_quota_enable()
972 slot = path->slots[0]; in btrfs_quota_enable()
[all …]
Dbackref.c441 if (path->slots[0] >= btrfs_header_nritems(path->nodes[0])) { in add_all_parents()
450 slot = path->slots[0]; in add_all_parents()
896 slot = path->slots[0]; in add_inline_refs()
1018 slot = path->slots[0]; in add_keyed_refs()
1207 if (path->slots[0]) {
1211 path->slots[0]--;
1213 slot = path->slots[0];
1552 slot = path->slots[0];
1587 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]);
1653 slot = path->slots[0];
[all …]
Dinode.c206 ei = btrfs_item_ptr(leaf, path->slots[0], in insert_inline_extent()
1385 if (ret > 0 && path->slots[0] > 0 && check_prev) { in run_delalloc_nocow()
1388 path->slots[0] - 1); in run_delalloc_nocow()
1391 path->slots[0]--; in run_delalloc_nocow()
1397 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in run_delalloc_nocow()
1409 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in run_delalloc_nocow()
1420 path->slots[0]++; in run_delalloc_nocow()
1443 fi = btrfs_item_ptr(leaf, path->slots[0], in run_delalloc_nocow()
1461 path->slots[0]++; in run_delalloc_nocow()
1542 path->slots[0]++; in run_delalloc_nocow()
[all …]
Dref-verify.c562 path->slots[level]); in walk_down_tree()
564 path->slots[level]); in walk_down_tree()
566 path->slots[level]); in walk_down_tree()
578 path->slots[level-1] = 0; in walk_down_tree()
599 path->slots[l]++; in walk_up_tree()
600 if (path->slots[l] < in walk_up_tree()
609 path->slots[l] = 0; in walk_up_tree()
990 path->slots[level] = 0; in btrfs_build_ref_tree()
Dinode-map.c71 slot = path->slots[0]; in caching_kthread()
116 path->slots[0]++; in caching_kthread()
547 if (path->slots[0] > 0) { in btrfs_find_highest_objectid()
548 slot = path->slots[0] - 1; in btrfs_find_highest_objectid()
/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()
1202 static int fat_add_new_entries(struct inode *dir, void *slots, int nr_slots, in fat_add_new_entries() argument
1246 memcpy(bhs[n]->b_data, slots, copy); in fat_add_new_entries()
1250 slots += copy; in fat_add_new_entries()
1285 int fat_add_entries(struct inode *dir, void *slots, int nr_slots, in fat_add_entries() argument
1350 memcpy(bhs[i]->b_data + offset, slots, copy); in fat_add_entries()
[all …]
/fs/dlm/
Dmember.c484 struct dlm_slot *slots; in dlm_lsop_recover_done() local
491 slots = kcalloc(num, sizeof(*slots), GFP_KERNEL); in dlm_lsop_recover_done()
492 if (!slots) in dlm_lsop_recover_done()
501 slots[i].nodeid = memb->nodeid; in dlm_lsop_recover_done()
502 slots[i].slot = memb->slot; in dlm_lsop_recover_done()
506 ls->ls_ops->recover_done(ls->ls_ops_arg, slots, num, in dlm_lsop_recover_done()
509 kfree(slots); in dlm_lsop_recover_done()
/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()
86 path->slots[0] != 0) in __check_free_space_extents()
89 path->slots[0]++; in __check_free_space_extents()
90 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()
/fs/f2fs/
Ddir.c561 int f2fs_room_for_filename(const void *bitmap, int slots, int max_slots) in f2fs_room_for_filename() argument
571 if (zero_end - zero_start >= slots) in f2fs_room_for_filename()
586 int slots = GET_DENTRY_SLOTS(name->len); in f2fs_update_dentry() local
595 for (i = 0; i < slots; i++) { in f2fs_update_dentry()
617 int slots, err = 0; in f2fs_add_regular_entry() local
620 slots = GET_DENTRY_SLOTS(new_name->len); in f2fs_add_regular_entry()
655 slots, NR_DENTRY_IN_BLOCK); in f2fs_add_regular_entry()
814 int slots = GET_DENTRY_SLOTS(le16_to_cpu(dentry->name_len)); in f2fs_delete_entry() local
830 for (i = 0; i < slots; i++) in f2fs_delete_entry()

123