Home
last modified time | relevance | path

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

12

/fs/btrfs/
Dfile-item.c66 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_file_extent()
108 if (path->slots[0] == 0) in btrfs_lookup_csum()
110 path->slots[0]--; in btrfs_lookup_csum()
111 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum()
117 csums_in_item = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_lookup_csum()
125 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); in btrfs_lookup_csum()
232 path->slots[0]); in __btrfs_lookup_bio_sums()
236 path->slots[0]); in __btrfs_lookup_bio_sums()
240 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in __btrfs_lookup_bio_sums()
313 if (ret > 0 && path->slots[0] > 0) { in btrfs_lookup_csums_range()
[all …]
Dctree.c133 p->slots[i] = 0; in btrfs_release_path()
931 int orig_slot = path->slots[level]; in balance_level()
947 pslot = path->slots[level + 1]; in balance_level()
1104 path->slots[level + 1] -= 1; in balance_level()
1105 path->slots[level] = orig_slot; in balance_level()
1112 path->slots[level] = orig_slot; in balance_level()
1117 btrfs_node_blockptr(path->nodes[level], path->slots[level])) in balance_level()
1147 int orig_slot = path->slots[level]; in push_nodes_for_insert()
1157 pslot = path->slots[level + 1]; in push_nodes_for_insert()
1195 path->slots[level + 1] -= 1; in push_nodes_for_insert()
[all …]
Dinode-item.c36 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in find_name_in_backref()
37 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in find_name_in_backref()
118 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_del_inode_ref()
129 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_ref()
169 old_size = btrfs_item_size_nr(path->nodes[0], path->slots[0]); in btrfs_insert_inode_ref()
171 ref = btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_insert_inode_ref()
183 ref = btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_insert_inode_ref()
225 location->offset == (u64)-1 && path->slots[0] != 0) { in btrfs_lookup_inode()
226 slot = path->slots[0] - 1; in btrfs_lookup_inode()
231 path->slots[0]--; in btrfs_lookup_inode()
Dtree-log.c335 path->slots[0]); in overwrite_item()
354 dst_ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in overwrite_item()
380 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in overwrite_item()
407 path->slots[0]); in overwrite_item()
417 path->slots[0]); in overwrite_item()
569 existing = btrfs_item_ptr(leaf, path->slots[0], in replay_one_extent()
603 path->slots[0]); in replay_one_extent()
803 item_size = btrfs_item_size_nr(path->nodes[0], path->slots[0]); in backref_in_log()
804 ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in backref_in_log()
915 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in add_inode_ref()
[all …]
Droot-tree.c51 if (path->slots[0] == 0) { in btrfs_find_last_root()
56 slot = path->slots[0] - 1; in btrfs_find_last_root()
114 slot = path->slots[0]; in btrfs_update_root()
161 slot = path->slots[0]; in btrfs_find_dead_roots()
168 slot = path->slots[0]; in btrfs_find_dead_roots()
201 path->slots[0]++; in btrfs_find_dead_roots()
238 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in btrfs_find_orphan_roots()
247 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_find_orphan_roots()
297 ri = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_item); in btrfs_del_root()
331 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_del_root_ref()
[all …]
Dfile.c588 if (ret > 0 && path->slots[0] > 0 && search_start == start) { in btrfs_drop_extents()
590 btrfs_item_key_to_cpu(leaf, &key, path->slots[0] - 1); in btrfs_drop_extents()
593 path->slots[0]--; in btrfs_drop_extents()
598 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in btrfs_drop_extents()
611 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_drop_extents()
616 fi = btrfs_item_ptr(leaf, path->slots[0], in btrfs_drop_extents()
636 path->slots[0]++; in btrfs_drop_extents()
667 fi = btrfs_item_ptr(leaf, path->slots[0] - 1, in btrfs_drop_extents()
672 fi = btrfs_item_ptr(leaf, path->slots[0], in btrfs_drop_extents()
734 path->slots[0]++; in btrfs_drop_extents()
[all …]
Ddir-item.c57 item = btrfs_item_nr(leaf, path->slots[0]); in insert_with_overflow()
58 ptr = btrfs_item_ptr(leaf, path->slots[0], char); in insert_with_overflow()
271 if (path->slots[0] >= nritems) { in btrfs_search_dir_index_item()
282 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_search_dir_index_item()
290 path->slots[0]++; in btrfs_search_dir_index_item()
335 dir_item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dir_item); in btrfs_match_dir_item_name()
339 total_len = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_match_dir_item_name()
375 item_len = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_delete_one_dir_name()
383 start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_delete_one_dir_name()
Dexport.c197 if (path->slots[0] == 0) { in btrfs_get_parent()
202 path->slots[0]--; in btrfs_get_parent()
205 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_parent()
212 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_parent()
279 path->slots[0]--; in btrfs_get_name()
288 rref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_name()
293 iref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_name()
Drelocation.c723 BUG_ON(!ret || !path1->slots[0]);
725 path1->slots[0]--;
753 if (path1->slots[0] >= btrfs_header_nritems(eb)) {
764 btrfs_item_key_to_cpu(eb, &key, path1->slots[0]);
771 ret = find_inline_backref(eb, path1->slots[0],
802 ref0 = btrfs_item_ptr(eb, path1->slots[0],
902 if (ret > 0 && path2->slots[level] > 0)
903 path2->slots[level]--;
906 WARN_ON(btrfs_node_blockptr(eb, path2->slots[level]) !=
992 path1->slots[0]++;
[all …]
Dextent-tree.c397 if (path->slots[0] < nritems) { in caching_thread()
398 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in caching_thread()
419 path->slots[0]++; in caching_thread()
438 path->slots[0]++; in caching_thread()
779 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_lookup_extent_info()
781 ei = btrfs_item_ptr(leaf, path->slots[0], in btrfs_lookup_extent_info()
789 ei0 = btrfs_item_ptr(leaf, path->slots[0], in btrfs_lookup_extent_info()
971 BUG_ON(btrfs_item_size_nr(leaf, path->slots[0]) != sizeof(*ei0)); in convert_extent_item_v0()
973 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in convert_extent_item_v0()
974 ei0 = btrfs_item_ptr(leaf, path->slots[0], in convert_extent_item_v0()
[all …]
Dbackref.c172 if (ret == 1 && path->slots[0] >= btrfs_header_nritems(eb)) { in __resolve_indirect_ref()
179 btrfs_item_key_to_cpu(eb, &key, path->slots[0]); in __resolve_indirect_ref()
414 slot = path->slots[0] - 1; in __add_inline_refs()
517 slot = path->slots[0]; in __add_keyed_refs()
658 if (path->slots[0]) { in find_parent_nodes()
663 slot = path->slots[0] - 1; in find_parent_nodes()
838 if (ret && path->slots[0] >= btrfs_header_nritems(eb)) { in __inode_info()
845 btrfs_item_key_to_cpu(eb, found_key, path->slots[0]); in __inode_info()
924 slot = path->slots[0]; in iref_to_path()
977 btrfs_item_key_to_cpu(path->nodes[0], found_key, path->slots[0]); in extent_from_logical()
[all …]
Dinode-map.c69 slot = path->slots[0]; in caching_kthread()
116 path->slots[0]++; in caching_kthread()
539 if (path->slots[0] > 0) { in btrfs_find_highest_objectid()
540 slot = path->slots[0] - 1; in btrfs_find_highest_objectid()
Dinode.c158 ei = btrfs_item_ptr(leaf, path->slots[0], in insert_inline_extent()
1179 if (ret > 0 && path->slots[0] > 0 && check_prev) { in run_delalloc_nocow()
1182 path->slots[0] - 1); in run_delalloc_nocow()
1185 path->slots[0]--; in run_delalloc_nocow()
1190 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in run_delalloc_nocow()
1204 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in run_delalloc_nocow()
1217 fi = btrfs_item_ptr(leaf, path->slots[0], in run_delalloc_nocow()
1228 path->slots[0]++; in run_delalloc_nocow()
1265 path->slots[0]++; in run_delalloc_nocow()
1274 path->slots[0]++; in run_delalloc_nocow()
[all …]
Dvolumes.c806 slot = path->slots[0]; in btrfs_account_dev_extents_size()
844 path->slots[0]++; in btrfs_account_dev_extents_size()
927 slot = path->slots[0]; in find_free_dev_extent()
977 path->slots[0]++; in find_free_dev_extent()
1036 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_free_dev_extent()
1037 extent = btrfs_item_ptr(leaf, path->slots[0], in btrfs_free_dev_extent()
1046 extent = btrfs_item_ptr(leaf, path->slots[0], in btrfs_free_dev_extent()
1096 extent = btrfs_item_ptr(leaf, path->slots[0], in btrfs_alloc_dev_extent()
1141 path->slots[0]); in find_next_chunk()
1145 chunk = btrfs_item_ptr(path->nodes[0], path->slots[0], in find_next_chunk()
[all …]
Dxattr.c241 slot = path->slots[0]; in btrfs_listxattr()
288 path->slots[0]++; in btrfs_listxattr()
Ddelayed-inode.c844 slot = path->slots[0]; in btrfs_batch_insert_items()
886 item = btrfs_item_nr(leaf, path->slots[0]); in btrfs_insert_delayed_item()
887 ptr = btrfs_item_ptr(leaf, path->slots[0], char); in btrfs_insert_delayed_item()
925 path->slots[0]++; in btrfs_insert_delayed_items()
956 i = path->slots[0]; in btrfs_batch_delete_items()
989 ret = btrfs_del_items(trans, root, path, path->slots[0], nitems); in btrfs_batch_delete_items()
1096 inode_item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_update_delayed_inode()
/fs/efs/
Ddir.c60 while (slot < dirblock->slots) { in efs_readdir()
73 … slot %d/%d: inode %u, name \"%s\", namelen %u\n", block, slot, dirblock->slots-1, inodenum, namep… in efs_readdir()
90 if (++slot == dirblock->slots) { in efs_readdir()
Defs.h97 unsigned char slots; member
Dnamei.c44 for(slot = 0; slot < dirblock->slots; slot++) { in efs_find_entry()
/fs/fat/
Dnamei_vfat.c587 struct msdos_dir_slot *slots, int *nr_slots) in vfat_build_slots() argument
621 de = (struct msdos_dir_entry *)slots; in vfat_build_slots()
630 for (ps = slots, i = *nr_slots; i > 0; i--, ps++) { in vfat_build_slots()
641 slots[0].id |= 0x40; in vfat_build_slots()
666 struct msdos_dir_slot *slots; in vfat_add_entry() local
674 slots = kmalloc(sizeof(*slots) * MSDOS_SLOTS, GFP_NOFS); in vfat_add_entry()
675 if (slots == NULL) in vfat_add_entry()
679 slots, &nr_slots); in vfat_add_entry()
683 err = fat_add_entries(dir, slots, nr_slots, sinfo); in vfat_add_entry()
694 kfree(slots); in vfat_add_entry()
Ddir.c279 unsigned char id, slot, slots, alias_checksum; in fat_parse_long() local
289 slots = 0; in fat_parse_long()
294 slots = id & ~0x40; in fat_parse_long()
295 if (slots > 20 || !slots) /* ceil(256 * 2 / 26) */ in fat_parse_long()
297 *nr_slots = slots; in fat_parse_long()
300 slot = slots; in fat_parse_long()
1157 static int fat_add_new_entries(struct inode *dir, void *slots, int nr_slots, in fat_add_new_entries() argument
1199 memcpy(bhs[n]->b_data, slots, copy); in fat_add_new_entries()
1200 slots += copy; in fat_add_new_entries()
1237 int fat_add_entries(struct inode *dir, void *slots, int nr_slots, in fat_add_entries() argument
[all …]
/fs/dlm/
Dmember.c491 struct dlm_slot *slots; in dlm_lsop_recover_done() local
499 slots = kzalloc(num * sizeof(struct dlm_slot), GFP_KERNEL); in dlm_lsop_recover_done()
500 if (!slots) in dlm_lsop_recover_done()
509 slots[i].nodeid = memb->nodeid; in dlm_lsop_recover_done()
510 slots[i].slot = memb->slot; in dlm_lsop_recover_done()
514 ls->ls_ops->recover_done(ls->ls_ops_arg, slots, num, in dlm_lsop_recover_done()
517 kfree(slots); in dlm_lsop_recover_done()
Drecover.c177 struct dlm_slot *slots; in dlm_recover_members_wait() local
194 rv = dlm_slots_assign(ls, &num_slots, &slots_size, &slots, &gen); in dlm_recover_members_wait()
200 ls->ls_slots = slots; in dlm_recover_members_wait()
/fs/ntfs/
Drunlist.c667 int slots = 0; in ntfs_runlists_merge() local
684 slots = 1; in ntfs_runlists_merge()
688 if (!slots) { in ntfs_runlists_merge()
691 slots = 2; in ntfs_runlists_merge()
695 if (slots != 1) in ntfs_runlists_merge()
700 slots--; in ntfs_runlists_merge()
705 if (!slots) in ntfs_runlists_merge()
/fs/gfs2/
Dlock_dlm.c1000 static int set_recover_size(struct gfs2_sbd *sdp, struct dlm_slot *slots, in set_recover_size() argument
1011 if (max_jid < slots[i].slot - 1) in set_recover_size()
1012 max_jid = slots[i].slot - 1; in set_recover_size()
1098 static void gdlm_recover_done(void *arg, struct dlm_slot *slots, int num_slots, in gdlm_recover_done() argument
1105 set_recover_size(sdp, slots, num_slots); in gdlm_recover_done()

12