Home
last modified time | relevance | path

Searched refs:search_key (Results 1 – 23 of 23) sorted by relevance

/Linux-v5.10/fs/hfs/
Dcatalog.c108 hfs_cat_build_key(sb, fd.search_key, cnid, NULL); in hfs_cat_create()
122 hfs_cat_build_key(sb, fd.search_key, dir->i_ino, str); in hfs_cat_create()
142 hfs_cat_build_key(sb, fd.search_key, cnid, NULL); in hfs_cat_create()
193 hfs_cat_build_key(sb, fd->search_key, cnid, NULL); in hfs_cat_find_brec()
204 fd->search_key->cat.ParID = rec.thread.ParID; in hfs_cat_find_brec()
205 len = fd->search_key->cat.CName.len = rec.thread.CName.len; in hfs_cat_find_brec()
210 memcpy(fd->search_key->cat.CName.name, rec.thread.CName.name, len); in hfs_cat_find_brec()
234 hfs_cat_build_key(sb, fd.search_key, dir->i_ino, str); in hfs_cat_delete()
254 if (fd.tree->keycmp(fd.search_key, (void *)&rd->key) < 0) in hfs_cat_delete()
263 hfs_cat_build_key(sb, fd.search_key, cnid, NULL); in hfs_cat_delete()
[all …]
Dbrec.c85 key_len = (fd->search_key->key_len | 1) + 1; in hfs_brec_insert()
132 hfs_bnode_write(node, fd->search_key, data_off, key_len); in hfs_brec_insert()
141 hfs_bnode_read_key(node, fd->search_key, data_off + size); in hfs_brec_insert()
159 hfs_bnode_read_key(new_node, fd->search_key, 14); in hfs_brec_insert()
166 key_len = fd->search_key->key_len + 1; in hfs_brec_insert()
168 fd->search_key->key_len = tree->max_key_len; in hfs_brec_insert()
434 hfs_bnode_read_key(new_node, fd->search_key, 14); in hfs_brec_update_parent()
446 hfs_bnode_read_key(node, fd->search_key, 14); in hfs_brec_update_parent()
Dbfind.c24 fd->search_key = ptr; in hfs_find_init()
35 kfree(fd->search_key); in hfs_find_exit()
63 cmpval = bnode->tree->keycmp(fd->key, fd->search_key); in __hfs_brec_find()
Dattr.c36 fd.search_key->cat = HFS_I(inode)->cat_key; in __hfs_setxattr()
83 fd.search_key->cat = HFS_I(inode)->cat_key; in __hfs_getxattr()
Ddir.c31 hfs_cat_build_key(dir->i_sb, fd.search_key, dir->i_ino, &dentry->d_name); in hfs_lookup()
37 inode = hfs_iget(dir->i_sb, &fd.search_key->cat, &rec); in hfs_lookup()
65 hfs_cat_build_key(sb, fd.search_key, inode->i_ino, NULL); in hfs_readdir()
Dextent.c114 hfs_ext_build_key(fd->search_key, inode->i_ino, HFS_I(inode)->cached_start, in __hfs_ext_write_extent()
155 hfs_ext_build_key(fd->search_key, cnid, block, type); in __hfs_ext_read_extent()
160 if (fd->key->ext.FNum != fd->search_key->ext.FNum || in __hfs_ext_read_extent()
161 fd->key->ext.FkType != fd->search_key->ext.FkType) in __hfs_ext_read_extent()
Dbtree.h72 btree_key *search_key; member
Dinode.c457 fd.search_key->cat = HFS_I(main_inode)->cat_key; in hfs_write_inode()
531 fd.search_key->cat = HFS_I(dir)->cat_key; in hfs_file_lookup()
Dsuper.c432 root_inode = hfs_iget(sb, &fd.search_key->cat, &rec); in hfs_fill_super()
/Linux-v5.10/fs/hfsplus/
Dcatalog.c201 hfsplus_cat_build_key_with_cnid(sb, fd->search_key, cnid); in hfsplus_find_cat()
217 hfsplus_cat_build_key_uni(fd->search_key, in hfsplus_find_cat()
276 hfsplus_cat_build_key_with_cnid(sb, fd.search_key, cnid); in hfsplus_create_cat()
296 err = hfsplus_cat_build_key(sb, fd.search_key, dir->i_ino, str); in hfsplus_create_cat()
322 hfsplus_cat_build_key_with_cnid(sb, fd.search_key, cnid); in hfsplus_create_cat()
355 hfsplus_cat_build_key_with_cnid(sb, fd.search_key, cnid); in hfsplus_delete_cat()
362 fd.search_key->cat.parent = cpu_to_be32(dir->i_ino); in hfsplus_delete_cat()
364 &fd.search_key->cat.name.length, off, 2); in hfsplus_delete_cat()
365 len = be16_to_cpu(fd.search_key->cat.name.length) * 2; in hfsplus_delete_cat()
367 &fd.search_key->cat.name.unicode, in hfsplus_delete_cat()
[all …]
Dbfind.c24 fd->search_key = ptr; in hfs_find_init()
47 kfree(fd->search_key); in hfs_find_exit()
65 search_cnid = fd->search_key->ext.cnid; in hfs_find_1st_rec_by_cnid()
68 search_cnid = fd->search_key->cat.parent; in hfs_find_1st_rec_by_cnid()
71 search_cnid = fd->search_key->attr.cnid; in hfs_find_1st_rec_by_cnid()
100 cmpval = bnode->tree->keycmp(fd->key, fd->search_key); in hfs_find_rec_by_key()
Dattributes.c150 err = hfsplus_attr_build_key(sb, fd->search_key, cnid, name); in hfsplus_find_attr()
157 err = hfsplus_attr_build_key(sb, fd->search_key, cnid, NULL); in hfsplus_find_attr()
226 err = hfsplus_attr_build_key(sb, fd.search_key, in hfsplus_create_attr()
296 hfs_bnode_read(fd->bnode, fd->search_key, in __hfsplus_delete_attr()
331 err = hfsplus_attr_build_key(sb, fd.search_key, in hfsplus_delete_attr()
Dbrec.c83 key_len = be16_to_cpu(fd->search_key->key_len) + 2; in hfs_brec_insert()
132 hfs_bnode_write(node, fd->search_key, data_off, key_len); in hfs_brec_insert()
141 hfs_bnode_read_key(node, fd->search_key, data_off + size); in hfs_brec_insert()
159 hfs_bnode_read_key(new_node, fd->search_key, 14); in hfs_brec_insert()
167 key_len = be16_to_cpu(fd->search_key->key_len) + 2; in hfs_brec_insert()
169 fd->search_key->key_len = in hfs_brec_insert()
438 hfs_bnode_read_key(new_node, fd->search_key, 14); in hfs_brec_update_parent()
450 hfs_bnode_read_key(node, fd->search_key, 14); in hfs_brec_update_parent()
Dextents.c95 hfsplus_ext_build_key(fd->search_key, inode->i_ino, hip->cached_start, in __hfsplus_ext_write_extent()
162 hfsplus_ext_build_key(fd->search_key, cnid, block, type); in __hfsplus_ext_read_extent()
167 if (fd->key->ext.cnid != fd->search_key->ext.cnid || in __hfsplus_ext_read_extent()
168 fd->key->ext.fork_type != fd->search_key->ext.fork_type) in __hfsplus_ext_read_extent()
Ddir.c47 err = hfsplus_cat_build_key(sb, fd.search_key, dir->i_ino, in hfsplus_lookup()
103 err = hfsplus_cat_build_key(sb, fd.search_key, in hfsplus_lookup()
152 hfsplus_cat_build_key_with_cnid(sb, fd.search_key, inode->i_ino); in hfsplus_readdir()
Dhfsplus_fs.h285 hfsplus_btree_key *search_key; member
Dsuper.c522 err = hfsplus_cat_build_key(sb, fd.search_key, HFSPLUS_ROOT_CNID, &str); in hfsplus_fill_super()
/Linux-v5.10/fs/btrfs/
Dinode-map.c534 struct btrfs_key search_key; in btrfs_find_highest_objectid() local
542 search_key.objectid = BTRFS_LAST_FREE_OBJECTID; in btrfs_find_highest_objectid()
543 search_key.type = -1; in btrfs_find_highest_objectid()
544 search_key.offset = (u64)-1; in btrfs_find_highest_objectid()
545 ret = btrfs_search_slot(NULL, root, &search_key, path, 0, 0); in btrfs_find_highest_objectid()
Droot-tree.c64 int btrfs_find_root(struct btrfs_root *root, const struct btrfs_key *search_key, in btrfs_find_root() argument
73 ret = btrfs_search_slot(NULL, root, search_key, path, 0, 0); in btrfs_find_root()
77 if (search_key->offset != -1ULL) { /* the search key is exact */ in btrfs_find_root()
92 if (found_key.objectid != search_key->objectid || in btrfs_find_root()
Dtree-log.c990 struct btrfs_key search_key; in __add_inode_ref() local
995 search_key.objectid = inode_objectid; in __add_inode_ref()
996 search_key.type = BTRFS_INODE_REF_KEY; in __add_inode_ref()
997 search_key.offset = parent_objectid; in __add_inode_ref()
998 ret = btrfs_search_slot(NULL, root, &search_key, path, 0, 0); in __add_inode_ref()
1009 if (search_key.objectid == search_key.offset) in __add_inode_ref()
1030 ret = backref_in_log(log_root, &search_key, in __add_inode_ref()
1093 search_key.objectid = inode_objectid; in __add_inode_ref()
1094 search_key.type = BTRFS_INODE_EXTREF_KEY; in __add_inode_ref()
1095 search_key.offset = btrfs_extref_hash(parent_objectid, in __add_inode_ref()
[all …]
Dbackref.c545 struct btrfs_key search_key = ref->key_for_search; in resolve_indirect_ref() local
604 if (search_key.type == BTRFS_EXTENT_DATA_KEY && in resolve_indirect_ref()
605 search_key.offset >= LLONG_MAX) in resolve_indirect_ref()
606 search_key.offset = 0; in resolve_indirect_ref()
609 ret = btrfs_search_slot(NULL, root, &search_key, path, 0, 0); in resolve_indirect_ref()
611 ret = btrfs_search_old_slot(root, &search_key, path, time_seq); in resolve_indirect_ref()
Dctree.h2845 int btrfs_find_root(struct btrfs_root *root, const struct btrfs_key *search_key,
/Linux-v5.10/drivers/firewire/
Dcore-device.c50 static const u32 *search_leaf(const u32 *directory, int search_key) in search_leaf() argument
57 if (last_key == search_key && in search_leaf()