Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 179) sorted by relevance

12345678

/fs/ubifs/
Dkey.h97 union ubifs_key *key, ino_t inum) in ino_key_init() argument
99 key->u32[0] = inum; in ino_key_init()
100 key->u32[1] = UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS; in ino_key_init()
112 union ubifs_key *key = k; in ino_key_init_flash() local
114 key->j32[0] = cpu_to_le32(inum); in ino_key_init_flash()
115 key->j32[1] = cpu_to_le32(UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS); in ino_key_init_flash()
126 union ubifs_key *key, ino_t inum) in lowest_ino_key() argument
128 key->u32[0] = inum; in lowest_ino_key()
129 key->u32[1] = 0; in lowest_ino_key()
139 union ubifs_key *key, ino_t inum) in highest_ino_key() argument
[all …]
Dtnc.c338 ubifs_assert(is_hash_key(c, &zbr->key)); in lnc_add()
413 ubifs_assert(is_hash_key(c, &zbr->key)); in tnc_read_node_nm()
503 static int fallible_read_node(struct ubifs_info *c, const union ubifs_key *key, in fallible_read_node() argument
508 dbg_tnck(key, "LEB %d:%d, key ", zbr->lnum, zbr->offs); in fallible_read_node()
510 ret = try_read_node(c, node, key_type(c, key), zbr->len, zbr->lnum, in fallible_read_node()
517 key_read(c, &dent->key, &node_key); in fallible_read_node()
518 if (keys_cmp(c, key, &node_key) != 0) in fallible_read_node()
522 dbg_mntk(key, "dangling branch LEB %d:%d len %d, key ", in fallible_read_node()
707 static int resolve_collision(struct ubifs_info *c, const union ubifs_key *key, in resolve_collision() argument
730 if (keys_cmp(c, &(*zn)->zbranch[*n].key, key)) { in resolve_collision()
[all …]
Dtnc_misc.c137 const union ubifs_key *key, int *n) in ubifs_search_zbranch() argument
147 cmp = keys_cmp(c, key, &zbr[mid].key); in ubifs_search_zbranch()
163 ubifs_assert(keys_cmp(c, key, &zbr[0].key) < 0); in ubifs_search_zbranch()
165 ubifs_assert(keys_cmp(c, key, &zbr[*n].key) > 0); in ubifs_search_zbranch()
167 ubifs_assert(keys_cmp(c, key, &zbr[*n + 1].key) < 0); in ubifs_search_zbranch()
308 key_read(c, &br->key, &zbr->key); in read_znode()
324 switch (key_type(c, &zbr->key)) { in read_znode()
332 i, key_type(c, &zbr->key)); in read_znode()
340 type = key_type(c, &zbr->key); in read_znode()
368 key1 = &znode->zbranch[i].key; in read_znode()
[all …]
/fs/nilfs2/
Ddirect.c37 nilfs_direct_get_ptr(const struct nilfs_bmap *direct, __u64 key) in nilfs_direct_get_ptr() argument
39 return le64_to_cpu(*(nilfs_direct_dptrs(direct) + key)); in nilfs_direct_get_ptr()
43 __u64 key, __u64 ptr) in nilfs_direct_set_ptr() argument
45 *(nilfs_direct_dptrs(direct) + key) = cpu_to_le64(ptr); in nilfs_direct_set_ptr()
49 __u64 key, int level, __u64 *ptrp) in nilfs_direct_lookup() argument
53 if (key > NILFS_DIRECT_KEY_MAX || level != 1) in nilfs_direct_lookup()
55 ptr = nilfs_direct_get_ptr(direct, key); in nilfs_direct_lookup()
64 __u64 key, __u64 *ptrp, in nilfs_direct_lookup_contig() argument
72 if (key > NILFS_DIRECT_KEY_MAX) in nilfs_direct_lookup_contig()
74 ptr = nilfs_direct_get_ptr(direct, key); in nilfs_direct_lookup_contig()
[all …]
Dbmap.c75 int nilfs_bmap_lookup_at_level(struct nilfs_bmap *bmap, __u64 key, int level, in nilfs_bmap_lookup_at_level() argument
82 ret = bmap->b_ops->bop_lookup(bmap, key, level, ptrp); in nilfs_bmap_lookup_at_level()
99 int nilfs_bmap_lookup_contig(struct nilfs_bmap *bmap, __u64 key, __u64 *ptrp, in nilfs_bmap_lookup_contig() argument
105 ret = bmap->b_ops->bop_lookup_contig(bmap, key, ptrp, maxblocks); in nilfs_bmap_lookup_contig()
111 static int nilfs_bmap_do_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr) in nilfs_bmap_do_insert() argument
118 ret = bmap->b_ops->bop_check_insert(bmap, key); in nilfs_bmap_do_insert()
125 bmap, key, ptr, keys, ptrs, n); in nilfs_bmap_do_insert()
134 return bmap->b_ops->bop_insert(bmap, key, ptr); in nilfs_bmap_do_insert()
156 unsigned long key, in nilfs_bmap_insert() argument
162 ret = nilfs_bmap_do_insert(bmap, key, rec); in nilfs_bmap_insert()
[all …]
/fs/btrfs/
Droot-tree.c30 struct btrfs_root_item *item, struct btrfs_key *key) in btrfs_find_last_root() argument
66 if (key) in btrfs_find_last_root()
67 memcpy(key, &found_key, sizeof(found_key)); in btrfs_find_last_root()
86 *root, struct btrfs_key *key, struct btrfs_root_item in btrfs_update_root() argument
99 ret = btrfs_search_slot(trans, root, key, path, 0, 1); in btrfs_update_root()
108 (unsigned long long)key->objectid, key->type, in btrfs_update_root()
109 (unsigned long long)key->offset); in btrfs_update_root()
124 struct btrfs_key *key, struct btrfs_root_item *item) in btrfs_insert_root() argument
126 return btrfs_insert_item(trans, root, key, item, sizeof(*item)); in btrfs_insert_root()
139 struct btrfs_key key; in btrfs_find_dead_roots() local
[all …]
Dexport.c73 struct btrfs_key key; in btrfs_get_dentry() local
80 key.objectid = root_objectid; in btrfs_get_dentry()
81 btrfs_set_key_type(&key, BTRFS_ROOT_ITEM_KEY); in btrfs_get_dentry()
82 key.offset = (u64)-1; in btrfs_get_dentry()
86 root = btrfs_read_fs_root_no_name(fs_info, &key); in btrfs_get_dentry()
97 key.objectid = objectid; in btrfs_get_dentry()
98 btrfs_set_key_type(&key, BTRFS_INODE_ITEM_KEY); in btrfs_get_dentry()
99 key.offset = 0; in btrfs_get_dentry()
101 inode = btrfs_iget(sb, &key, root, NULL); in btrfs_get_dentry()
173 struct btrfs_key key; in btrfs_get_parent() local
[all …]
Dorphan.c26 struct btrfs_key key; in btrfs_insert_orphan_item() local
29 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_insert_orphan_item()
30 btrfs_set_key_type(&key, BTRFS_ORPHAN_ITEM_KEY); in btrfs_insert_orphan_item()
31 key.offset = offset; in btrfs_insert_orphan_item()
37 ret = btrfs_insert_empty_item(trans, root, path, &key, 0); in btrfs_insert_orphan_item()
47 struct btrfs_key key; in btrfs_del_orphan_item() local
50 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_del_orphan_item()
51 btrfs_set_key_type(&key, BTRFS_ORPHAN_ITEM_KEY); in btrfs_del_orphan_item()
52 key.offset = offset; in btrfs_del_orphan_item()
58 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); in btrfs_del_orphan_item()
[all …]
Dbackref.c33 struct btrfs_key key; member
41 struct btrfs_key *key, int level, u64 parent, in __add_prelim_ref() argument
52 if (key) in __add_prelim_ref()
53 ref->key = *key; in __add_prelim_ref()
55 memset(&ref->key, 0, sizeof(ref->key)); in __add_prelim_ref()
74 struct btrfs_key key; in add_all_parents() local
100 btrfs_item_key_to_cpu(eb, &key, slot); in add_all_parents()
101 if (key.objectid != wanted_objectid || in add_all_parents()
102 key.type != BTRFS_EXTENT_DATA_KEY) in add_all_parents()
127 struct btrfs_key key = {0}; in __resolve_indirect_ref() local
[all …]
Ddir-item.c77 struct btrfs_key key, location; in btrfs_insert_xattr_item() local
84 key.objectid = objectid; in btrfs_insert_xattr_item()
85 btrfs_set_key_type(&key, BTRFS_XATTR_ITEM_KEY); in btrfs_insert_xattr_item()
86 key.offset = btrfs_name_hash(name, name_len); in btrfs_insert_xattr_item()
89 dir_item = insert_with_overflow(trans, root, path, &key, data_size, in btrfs_insert_xattr_item()
131 struct btrfs_key key; in btrfs_insert_dir_item() local
135 key.objectid = btrfs_ino(dir); in btrfs_insert_dir_item()
136 btrfs_set_key_type(&key, BTRFS_DIR_ITEM_KEY); in btrfs_insert_dir_item()
137 key.offset = btrfs_name_hash(name, name_len); in btrfs_insert_dir_item()
147 dir_item = insert_with_overflow(trans, root, path, &key, data_size, in btrfs_insert_dir_item()
[all …]
Dinode-item.c60 struct btrfs_key key; in btrfs_lookup_inode_ref() local
66 key.objectid = inode_objectid; in btrfs_lookup_inode_ref()
67 key.type = BTRFS_INODE_REF_KEY; in btrfs_lookup_inode_ref()
68 key.offset = ref_objectid; in btrfs_lookup_inode_ref()
70 ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); in btrfs_lookup_inode_ref()
86 struct btrfs_key key; in btrfs_del_inode_ref() local
96 key.objectid = inode_objectid; in btrfs_del_inode_ref()
97 key.offset = ref_objectid; in btrfs_del_inode_ref()
98 btrfs_set_key_type(&key, BTRFS_INODE_REF_KEY); in btrfs_del_inode_ref()
106 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); in btrfs_del_inode_ref()
[all …]
Drelocation.c142 struct btrfs_key key; member
583 struct btrfs_key key; in read_fs_root() local
585 key.objectid = root_objectid; in read_fs_root()
586 key.type = BTRFS_ROOT_ITEM_KEY; in read_fs_root()
588 key.offset = 0; in read_fs_root()
590 key.offset = (u64)-1; in read_fs_root()
592 return btrfs_read_fs_root_no_name(fs_info, &key); in read_fs_root()
679 struct btrfs_key key; local
711 key.objectid = cur->bytenr;
712 key.type = BTRFS_EXTENT_ITEM_KEY;
[all …]
Dfile-item.c283 struct btrfs_key key; in btrfs_lookup_csums_range() local
306 key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csums_range()
307 key.offset = start; in btrfs_lookup_csums_range()
308 key.type = BTRFS_EXTENT_CSUM_KEY; in btrfs_lookup_csums_range()
310 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); in btrfs_lookup_csums_range()
315 btrfs_item_key_to_cpu(leaf, &key, path->slots[0] - 1); in btrfs_lookup_csums_range()
316 if (key.objectid == BTRFS_EXTENT_CSUM_OBJECTID && in btrfs_lookup_csums_range()
317 key.type == BTRFS_EXTENT_CSUM_KEY) { in btrfs_lookup_csums_range()
318 offset = (start - key.offset) >> in btrfs_lookup_csums_range()
337 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_lookup_csums_range()
[all …]
Dtree-log.c309 struct btrfs_key *key) in overwrite_item() argument
318 bool inode_item = key->type == BTRFS_INODE_ITEM_KEY; in overwrite_item()
327 ret = btrfs_search_slot(NULL, root, key, path, 0, 0); in overwrite_item()
401 key, item_size); in overwrite_item()
428 if (key->type == BTRFS_INODE_ITEM_KEY && ret == -EEXIST) { in overwrite_item()
457 if (key->type == BTRFS_INODE_ITEM_KEY) { in overwrite_item()
478 struct btrfs_key key; in read_one_inode() local
481 key.objectid = objectid; in read_one_inode()
482 key.type = BTRFS_INODE_ITEM_KEY; in read_one_inode()
483 key.offset = 0; in read_one_inode()
[all …]
/fs/afs/
Dsecurity.c23 struct key *afs_request_key(struct afs_cell *cell) in afs_request_key()
25 struct key *key; in afs_request_key() local
30 key = request_key(&key_type_rxrpc, cell->anonymous_key->description, in afs_request_key()
32 if (IS_ERR(key)) { in afs_request_key()
33 if (PTR_ERR(key) != -ENOKEY) { in afs_request_key()
34 _leave(" = %ld", PTR_ERR(key)); in afs_request_key()
35 return key; in afs_request_key()
43 _leave(" = {%x} [auth]", key_serial(key)); in afs_request_key()
44 return key; in afs_request_key()
60 key_put(permits->permits[loop].key); in afs_zap_permits()
[all …]
Ddir.c191 struct key *key) in afs_dir_get_page() argument
196 page = read_cache_page(dir->i_mapping, index, afs_page_filler, key); in afs_dir_get_page()
328 filldir_t filldir, struct key *key) in afs_dir_iterate() argument
353 page = afs_dir_get_page(dir, blkoff / PAGE_SIZE, key); in afs_dir_iterate()
445 struct afs_fid *fid, struct key *key) in afs_do_lookup() argument
464 key); in afs_do_lookup()
486 int ret, struct dentry *dentry, struct inode *dir, struct key *key, in afs_try_auto_mntpt() argument
494 ret, dentry, devname, vnode->fid.vid, vnode->fid.vnode, key); in afs_try_auto_mntpt()
500 inode = afs_iget_autocell(dir, devname, strlen(devname), key); in afs_try_auto_mntpt()
524 struct key *key; in afs_lookup() local
[all …]
Dfile.c69 struct key *key; in afs_open() local
74 key = afs_request_key(vnode->volume->cell); in afs_open()
75 if (IS_ERR(key)) { in afs_open()
76 _leave(" = %ld [key]", PTR_ERR(key)); in afs_open()
77 return PTR_ERR(key); in afs_open()
80 ret = afs_validate(vnode, key); in afs_open()
86 file->private_data = key; in afs_open()
130 struct key *key = data; in afs_page_filler() local
135 _enter("{%x},{%lu},{%lu}", key_serial(key), inode->i_ino, page->index); in afs_page_filler()
173 ret = afs_vnode_fetch_data(vnode, key, offset, len, page); in afs_page_filler()
[all …]
Dinternal.h51 struct key *key; /* key to use for secure mounting */ member
82 struct key *key; /* security for this call */ member
147 struct key *key; /* owner of this write */ member
196 struct key *anonymous_key; /* anonymous user key for this cell */
371 struct key *unlock_key; /* key to be used in unlocking */
389 struct key *key; /* RxRPC ticket holding a security context */ member
515 extern int afs_fs_fetch_file_status(struct afs_server *, struct key *,
520 extern int afs_fs_fetch_data(struct afs_server *, struct key *,
523 extern int afs_fs_create(struct afs_server *, struct key *,
528 extern int afs_fs_remove(struct afs_server *, struct key *,
[all …]
Dvnode.c265 struct afs_vnode *auth_vnode, struct key *key) in afs_vnode_fetch_status() argument
360 ret = afs_fs_fetch_file_status(server, key, vnode, NULL, in afs_vnode_fetch_status()
369 afs_cache_permit(vnode, key, acl_order); in afs_vnode_fetch_status()
395 int afs_vnode_fetch_data(struct afs_vnode *vnode, struct key *key, in afs_vnode_fetch_data() argument
406 key_serial(key)); in afs_vnode_fetch_data()
423 ret = afs_fs_fetch_data(server, key, vnode, offset, length, in afs_vnode_fetch_data()
450 int afs_vnode_create(struct afs_vnode *vnode, struct key *key, in afs_vnode_create() argument
463 key_serial(key), in afs_vnode_create()
479 ret = afs_fs_create(server, key, vnode, name, mode, newfid, in afs_vnode_create()
508 int afs_vnode_remove(struct afs_vnode *vnode, struct key *key, const char *name, in afs_vnode_remove() argument
[all …]
Dfsclient.c272 struct key *key, in afs_fs_fetch_file_status() argument
281 key_serial(key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_fetch_file_status()
287 call->key = key; in afs_fs_fetch_file_status()
444 struct key *key, in afs_fs_fetch_data64() argument
461 call->key = key; in afs_fs_fetch_data64()
487 struct key *key, in afs_fs_fetch_data() argument
497 return afs_fs_fetch_data64(server, key, vnode, offset, length, in afs_fs_fetch_data()
506 call->key = key; in afs_fs_fetch_data()
655 struct key *key, in afs_fs_create() argument
679 call->key = key; in afs_fs_create()
[all …]
/fs/nfs/
Dfscache.c70 struct nfs_fscache_key *key, *xkey; in nfs_fscache_get_super_cookie() local
80 uniq = mnt_s->fscache_key->key.uniquifier; in nfs_fscache_get_super_cookie()
81 ulen = mnt_s->fscache_key->key.uniq_len; in nfs_fscache_get_super_cookie()
90 key = kzalloc(sizeof(*key) + ulen, GFP_KERNEL); in nfs_fscache_get_super_cookie()
91 if (!key) in nfs_fscache_get_super_cookie()
94 key->nfs_client = nfss->nfs_client; in nfs_fscache_get_super_cookie()
95 key->key.super.s_flags = sb->s_flags & NFS_MS_MASK; in nfs_fscache_get_super_cookie()
96 key->key.nfs_server.flags = nfss->flags; in nfs_fscache_get_super_cookie()
97 key->key.nfs_server.rsize = nfss->rsize; in nfs_fscache_get_super_cookie()
98 key->key.nfs_server.wsize = nfss->wsize; in nfs_fscache_get_super_cookie()
[all …]
Ddns_resolve.c68 struct nfs_dns_ent *key; in nfs_dns_ent_update() local
71 key = container_of(ckey, struct nfs_dns_ent, h); in nfs_dns_ent_update()
73 memcpy(&new->addr, &key->addr, key->addrlen); in nfs_dns_ent_update()
74 new->addrlen = key->addrlen; in nfs_dns_ent_update()
81 struct nfs_dns_ent *key; in nfs_dns_ent_init() local
84 key = container_of(ckey, struct nfs_dns_ent, h); in nfs_dns_ent_init()
87 new->hostname = kstrndup(key->hostname, key->namelen, GFP_KERNEL); in nfs_dns_ent_init()
89 new->namelen = key->namelen; in nfs_dns_ent_init()
119 static unsigned int nfs_dns_hash(const struct nfs_dns_ent *key) in nfs_dns_hash() argument
121 return hash_str(key->hostname, NFS_DNS_HASHBITS); in nfs_dns_hash()
[all …]
Dfscache-index.c74 struct nfs_server_key *key = buffer; in nfs_server_get_key() local
77 key->nfsversion = clp->rpc_ops->version; in nfs_server_get_key()
78 key->family = clp->cl_addr.ss_family; in nfs_server_get_key()
80 memset(key, 0, len); in nfs_server_get_key()
84 key->port = sin->sin_port; in nfs_server_get_key()
85 key->addr[0].ipv4_addr = sin->sin_addr; in nfs_server_get_key()
86 len += sizeof(key->addr[0].ipv4_addr); in nfs_server_get_key()
90 key->port = sin6->sin6_port; in nfs_server_get_key()
91 key->addr[0].ipv6_addr = sin6->sin6_addr; in nfs_server_get_key()
92 len += sizeof(key->addr[0].ipv6_addr); in nfs_server_get_key()
[all …]
/fs/cachefiles/
Dkey.c41 char *key; in cachefiles_cook_key() local
81 key = kmalloc(max, GFP_KERNEL); in cachefiles_cook_key()
82 if (!key) in cachefiles_cook_key()
88 sprintf(key, "@%02x%c+", (unsigned) csum, 0); in cachefiles_cook_key()
96 key[len + 1] = cachefiles_charmap[acc & 63]; in cachefiles_cook_key()
98 key[len] = cachefiles_charmap[acc & 63]; in cachefiles_cook_key()
104 key[len++] = '\0'; in cachefiles_cook_key()
106 key[len++] = '+'; in cachefiles_cook_key()
110 key[len++] = *raw++; in cachefiles_cook_key()
123 key[len++] = '\0'; in cachefiles_cook_key()
[all …]
/fs/reiserfs/
Dprints.c17 static char *reiserfs_cpu_offset(struct cpu_key *key) in reiserfs_cpu_offset() argument
19 if (cpu_key_k_type(key) == TYPE_DIRENTRY) in reiserfs_cpu_offset()
22 GET_HASH_VALUE(cpu_key_k_offset(key)), in reiserfs_cpu_offset()
24 GET_GENERATION_NUMBER(cpu_key_k_offset(key))); in reiserfs_cpu_offset()
27 (unsigned long long)cpu_key_k_offset(key)); in reiserfs_cpu_offset()
31 static char *le_offset(struct reiserfs_key *key) in le_offset() argument
35 version = le_key_version(key); in le_offset()
36 if (le_key_k_type(version, key) == TYPE_DIRENTRY) in le_offset()
39 GET_HASH_VALUE(le_key_k_offset(version, key)), in le_offset()
41 GET_GENERATION_NUMBER(le_key_k_offset(version, key))); in le_offset()
[all …]

12345678