/fs/btrfs/ |
D | file-item.c | 152 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_file_extent() 196 if (path->slots[0] == 0) in btrfs_lookup_csum() 198 path->slots[0]--; in btrfs_lookup_csum() 199 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum() 205 csums_in_item = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_lookup_csum() 215 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); in btrfs_lookup_csum() 353 path->slots[0]); in btrfs_lookup_bio_sums() 357 path->slots[0]); in btrfs_lookup_bio_sums() 361 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_lookup_bio_sums() 431 if (ret > 0 && path->slots[0] > 0) { in btrfs_lookup_csums_range() [all …]
|
D | inode-item.c | 93 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 …]
|
D | ctree.c | 101 p->slots[i] = 0; in btrfs_release_path() 1856 int orig_slot = path->slots[level]; in balance_level() 1871 pslot = path->slots[level + 1]; in balance_level() 2043 path->slots[level + 1] -= 1; in balance_level() 2044 path->slots[level] = orig_slot; in balance_level() 2051 path->slots[level] = orig_slot; in balance_level() 2056 btrfs_node_blockptr(path->nodes[level], path->slots[level])) in balance_level() 2087 int orig_slot = path->slots[level]; in push_nodes_for_insert() 2097 pslot = path->slots[level + 1]; in push_nodes_for_insert() 2140 path->slots[level + 1] -= 1; in push_nodes_for_insert() [all …]
|
D | free-space-tree.c | 69 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() 306 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in convert_free_space_to_bitmaps() [all …]
|
D | tree-log.c | 374 path->slots[0]); in overwrite_item() 393 dst_ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in overwrite_item() 420 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in overwrite_item() 468 path->slots[0]); in overwrite_item() 477 path->slots[0]); in overwrite_item() 636 existing = btrfs_item_ptr(leaf, path->slots[0], in replay_one_extent() 675 path->slots[0]); in replay_one_extent() 972 path->slots[0], in backref_in_log() 977 path->slots[0], in backref_in_log() 1025 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in __add_inode_ref() [all …]
|
D | dir-item.c | 44 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() 274 slot = path->slots[0]; in btrfs_check_dir_item_collision() 349 if (path->slots[0] >= nritems) { in btrfs_search_dir_index_item() 360 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_search_dir_index_item() 369 path->slots[0]++; in btrfs_search_dir_index_item() 411 dir_item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dir_item); in btrfs_match_dir_item_name() 413 total_len = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_match_dir_item_name() 449 item_len = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_delete_one_dir_name() 457 start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_delete_one_dir_name()
|
D | extent-tree.c | 159 if (path->slots[0]) { in btrfs_lookup_extent_info() 160 path->slots[0]--; in btrfs_lookup_extent_info() 162 path->slots[0]); in btrfs_lookup_extent_info() 172 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_lookup_extent_info() 174 ei = btrfs_item_ptr(leaf, path->slots[0], in btrfs_lookup_extent_info() 479 if (path->slots[0] >= nritems) { in lookup_extent_data_ref() 491 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in lookup_extent_data_ref() 496 ref = btrfs_item_ptr(leaf, path->slots[0], in lookup_extent_data_ref() 508 path->slots[0]++; in lookup_extent_data_ref() 546 ref = btrfs_item_ptr(leaf, path->slots[0], in insert_extent_data_ref() [all …]
|
D | export.c | 166 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() 244 path->slots[0]--; in btrfs_get_name() 253 rref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_name() 258 iref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_name()
|
D | root-tree.c | 82 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() 344 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_del_root_ref() 420 ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref); in btrfs_add_root_ref()
|
D | file.c | 720 if (ret > 0 && path->slots[0] > 0 && search_start == start) { in __btrfs_drop_extents() 722 btrfs_item_key_to_cpu(leaf, &key, path->slots[0] - 1); in __btrfs_drop_extents() 725 path->slots[0]--; in __btrfs_drop_extents() 731 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in __btrfs_drop_extents() 745 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in __btrfs_drop_extents() 752 path->slots[0]++; in __btrfs_drop_extents() 758 fi = btrfs_item_ptr(leaf, path->slots[0], in __btrfs_drop_extents() 792 path->slots[0]++; in __btrfs_drop_extents() 827 fi = btrfs_item_ptr(leaf, path->slots[0] - 1, in __btrfs_drop_extents() 832 fi = btrfs_item_ptr(leaf, path->slots[0], in __btrfs_drop_extents() [all …]
|
D | relocation.c | 1018 fi = btrfs_item_ptr(leaf, path->slots[0], in get_new_location() 1173 btrfs_node_key(path->nodes[level], &key2, path->slots[level]); in memcmp_node_keys() 1213 slot = path->slots[lowest_level]; in replace_path() 1263 path->slots[level]); in replace_path() 1265 path->slots[level]); in replace_path() 1317 path->slots[level]); in replace_path() 1341 path->nodes[level], path->slots[level], in replace_path() 1353 path->slots[level], old_bytenr); in replace_path() 1355 path->slots[level], old_ptr_gen); in replace_path() 1417 while (path->slots[i] + 1 < nritems) { in walk_up_reloc_tree() [all …]
|
D | send.c | 837 ii = btrfs_item_ptr(path->nodes[0], path->slots[0], in __get_inode_info() 896 int slot = path->slots[0]; in iterate_inode_ref() 1037 slot = path->slots[0]; in iterate_dir_item() 1159 btrfs_item_key_to_cpu(p->nodes[0], &found_key, p->slots[0]); in get_inode_path() 1344 fi = btrfs_item_ptr(eb, path->slots[0], in find_extent_clone() 1373 ei = btrfs_item_ptr(tmp_path->nodes[0], tmp_path->slots[0], in find_extent_clone() 1520 ei = btrfs_item_ptr(path->nodes[0], path->slots[0], in read_symlink() 1764 path->slots[0]); in get_first_ref() 1774 iref = btrfs_item_ptr(path->nodes[0], path->slots[0], in get_first_ref() 1783 extref = btrfs_item_ptr(path->nodes[0], path->slots[0], in get_first_ref() [all …]
|
D | reflink.c | 195 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() 273 path->slots[0]), in clone_copy_inline_extent() 384 if (key.offset == off && ret > 0 && path->slots[0] > 0) { in btrfs_clone() 386 path->slots[0] - 1); in btrfs_clone() 388 path->slots[0]--; in btrfs_clone() 393 if (path->slots[0] >= nritems) { in btrfs_clone() 402 slot = path->slots[0]; in btrfs_clone() 433 path->slots[0]++; in btrfs_clone()
|
D | backref.c | 456 if (path->slots[0] >= btrfs_header_nritems(eb) || in add_all_parents() 467 slot = path->slots[0]; in add_all_parents() 983 slot = path->slots[0]; in add_inline_refs() 1106 slot = path->slots[0]; in add_keyed_refs() 1299 if (path->slots[0]) { 1303 path->slots[0]--; 1305 slot = path->slots[0]; 1650 slot = path->slots[0]; 1685 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); 1751 slot = path->slots[0]; [all …]
|
D | uuid-tree.c | 54 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() 327 slot = path->slots[0]; in btrfs_uuid_tree_iterate()
|
D | qgroup.c | 374 slot = path->slots[0]; in btrfs_read_qgroup_config() 468 slot = path->slots[0]; in btrfs_read_qgroup_config() 671 qgroup_info = btrfs_item_ptr(leaf, path->slots[0], in add_qgroup_item() 690 qgroup_limit = btrfs_item_ptr(leaf, path->slots[0], in add_qgroup_item() 779 slot = path->slots[0]; in update_qgroup_limit_item() 825 slot = path->slots[0]; in update_qgroup_info_item() 867 slot = path->slots[0]; in update_qgroup_status_item() 916 path->slots[0] = 0; in btrfs_clean_quota_tree() 1033 ptr = btrfs_item_ptr(leaf, path->slots[0], in btrfs_quota_enable() 1058 slot = path->slots[0]; in btrfs_quota_enable() [all …]
|
D | ref-verify.c | 564 path->slots[level]); in walk_down_tree() 566 path->slots[level]); in walk_down_tree() 568 path->slots[level]); in walk_down_tree() 580 path->slots[level-1] = 0; in walk_down_tree() 601 path->slots[l]++; in walk_up_tree() 602 if (path->slots[l] < in walk_up_tree() 611 path->slots[l] = 0; in walk_up_tree() 1011 path->slots[level] = 0; in btrfs_build_ref_tree()
|
D | inode.c | 200 ei = btrfs_item_ptr(leaf, path->slots[0], in insert_inline_extent() 1500 if (ret > 0 && path->slots[0] > 0 && check_prev) { in run_delalloc_nocow() 1503 path->slots[0] - 1); in run_delalloc_nocow() 1506 path->slots[0]--; in run_delalloc_nocow() 1512 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in run_delalloc_nocow() 1524 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in run_delalloc_nocow() 1535 path->slots[0]++; in run_delalloc_nocow() 1558 fi = btrfs_item_ptr(leaf, path->slots[0], in run_delalloc_nocow() 1576 path->slots[0]++; in run_delalloc_nocow() 1657 path->slots[0]++; in run_delalloc_nocow() [all …]
|
/fs/fat/ |
D | namei_vfat.c | 582 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()
|
D | dir.c | 284 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/ |
D | member.c | 484 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/f2fs/ |
D | dir.c | 653 int f2fs_room_for_filename(const void *bitmap, int slots, int max_slots) in f2fs_room_for_filename() argument 663 if (zero_end - zero_start >= slots) in f2fs_room_for_filename() 678 int slots = GET_DENTRY_SLOTS(fname->disk_name.len); in f2fs_has_enough_room() local 682 bit_pos = f2fs_room_for_filename(d.bitmap, slots, d.max); in f2fs_has_enough_room() 692 int slots = GET_DENTRY_SLOTS(name->len); in f2fs_update_dentry() local 701 for (i = 0; i < slots; i++) { in f2fs_update_dentry() 721 int slots, err = 0; in f2fs_add_regular_entry() local 724 slots = GET_DENTRY_SLOTS(fname->disk_name.len); in f2fs_add_regular_entry() 758 slots, NR_DENTRY_IN_BLOCK); in f2fs_add_regular_entry() 911 int slots = GET_DENTRY_SLOTS(le16_to_cpu(dentry->name_len)); in f2fs_delete_entry() local [all …]
|
/fs/btrfs/tests/ |
D | free-space-tree-tests.c | 49 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/ |
D | dir.c | 61 for (; slot < dirblock->slots; slot++) { in efs_readdir() 76 __func__, block, slot, dirblock->slots-1, in efs_readdir()
|
/fs/nfs/ |
D | nfs4session.c | 45 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()
|