Home
last modified time | relevance | path

Searched refs:disk_key (Results 1 - 20 of 20) sorted by relevance

/kernel/linux/linux-6.6/fs/btrfs/
H A Daccessors.h423 struct btrfs_disk_key *disk_key, int nr);
426 struct btrfs_disk_key *disk_key, int nr) in btrfs_set_node_key()
432 struct btrfs_key_ptr, key, disk_key); in btrfs_set_node_key()
484 struct btrfs_disk_key *disk_key, int nr) in btrfs_item_key()
488 read_eb_member(eb, item, struct btrfs_item, key, disk_key); in btrfs_item_key()
492 struct btrfs_disk_key *disk_key, int nr) in btrfs_set_item_key()
496 write_eb_member(eb, item, struct btrfs_item, key, disk_key); in btrfs_set_item_key()
578 const struct btrfs_disk_key *disk_key) in btrfs_disk_key_to_cpu()
580 memcpy(cpu_key, disk_key, sizeof(struct btrfs_key)); in btrfs_disk_key_to_cpu()
583 static inline void btrfs_cpu_key_to_disk(struct btrfs_disk_key *disk_key, in btrfs_cpu_key_to_disk() argument
425 btrfs_set_node_key(const struct extent_buffer *eb, struct btrfs_disk_key *disk_key, int nr) btrfs_set_node_key() argument
483 btrfs_item_key(const struct extent_buffer *eb, struct btrfs_disk_key *disk_key, int nr) btrfs_item_key() argument
491 btrfs_set_item_key(struct extent_buffer *eb, struct btrfs_disk_key *disk_key, int nr) btrfs_set_item_key() argument
577 btrfs_disk_key_to_cpu(struct btrfs_key *cpu_key, const struct btrfs_disk_key *disk_key) btrfs_disk_key_to_cpu() argument
592 struct btrfs_disk_key *disk_key = (struct btrfs_disk_key *)cpu_key; btrfs_node_key_to_cpu() local
600 struct btrfs_disk_key *disk_key = (struct btrfs_disk_key *)cpu_key; btrfs_item_key_to_cpu() local
609 struct btrfs_disk_key *disk_key = (struct btrfs_disk_key *)cpu_key; btrfs_dir_item_key_to_cpu() local
635 struct btrfs_disk_key disk_key; btrfs_node_key_to_cpu() local
644 struct btrfs_disk_key disk_key; btrfs_item_key_to_cpu() local
654 struct btrfs_disk_key disk_key; btrfs_dir_item_key_to_cpu() local
[all...]
H A Dctree.c318 struct btrfs_disk_key disk_key; in btrfs_copy_root() local
327 btrfs_item_key(buf, &disk_key, 0); in btrfs_copy_root()
329 btrfs_node_key(buf, &disk_key, 0); in btrfs_copy_root()
332 &disk_key, level, buf->start, 0, in btrfs_copy_root()
530 struct btrfs_disk_key disk_key; in __btrfs_cow_block() local
550 btrfs_item_key(buf, &disk_key, 0); in __btrfs_cow_block()
552 btrfs_node_key(buf, &disk_key, 0); in __btrfs_cow_block()
558 root->root_key.objectid, &disk_key, level, in __btrfs_cow_block()
763 static int comp_keys(const struct btrfs_disk_key *disk_key, in comp_keys() argument
766 const struct btrfs_key *k1 = (const struct btrfs_key *)disk_key; in comp_keys()
829 struct btrfs_disk_key disk_key; btrfs_realloc_node() local
1353 struct btrfs_disk_key disk_key; push_nodes_for_insert() local
1413 struct btrfs_disk_key disk_key; push_nodes_for_insert() local
1455 struct btrfs_disk_key disk_key; reada_for_search() local
2716 struct btrfs_disk_key disk_key; btrfs_set_item_key_safe() local
3105 struct btrfs_disk_key disk_key; split_node() local
3244 struct btrfs_disk_key disk_key; __push_leaf_right() local
3456 struct btrfs_disk_key disk_key; __push_leaf_left() local
3660 struct btrfs_disk_key disk_key; copy_for_split() local
3784 struct btrfs_disk_key disk_key; split_leaf() local
4040 struct btrfs_disk_key disk_key; split_item() local
4180 struct btrfs_disk_key disk_key; btrfs_truncate_item() local
4303 struct btrfs_disk_key disk_key; setup_items_for_insert() local
4542 struct btrfs_disk_key disk_key; btrfs_del_ptr() local
4641 struct btrfs_disk_key disk_key; btrfs_del_items() local
[all...]
H A Ddir-item.c66 struct btrfs_disk_key disk_key; in btrfs_insert_xattr_item() local
85 btrfs_cpu_key_to_disk(&disk_key, &location); in btrfs_insert_xattr_item()
86 btrfs_set_dir_item_key(leaf, dir_item, &disk_key); in btrfs_insert_xattr_item()
121 struct btrfs_disk_key disk_key; in btrfs_insert_dir_item() local
132 btrfs_cpu_key_to_disk(&disk_key, location); in btrfs_insert_dir_item()
148 btrfs_set_dir_item_key(leaf, dir_item, &disk_key); in btrfs_insert_dir_item()
167 &disk_key, type, index); in btrfs_insert_dir_item()
H A Dcheck-integrity.c146 struct btrfs_disk_key disk_key; /* extra info to print in case of member
263 struct btrfs_disk_key *disk_key,
336 b->disk_key.objectid = 0; in btrfsic_block_init()
337 b->disk_key.type = 0; in btrfsic_block_init()
338 b->disk_key.offset = 0; in btrfsic_block_init()
842 next_block->disk_key = tmp_disk_key; in btrfsic_process_superblock_dev_mirror()
932 struct btrfs_disk_key *disk_key; in btrfsic_process_metablock() local
952 disk_key = &disk_item.key; in btrfsic_process_metablock()
953 type = btrfs_disk_key_type(disk_key); in btrfsic_process_metablock()
983 disk_key, in btrfsic_process_metablock()
1166 btrfsic_create_link_to_next_block( struct btrfsic_state *state, struct btrfsic_block *block, struct btrfsic_block_data_ctx *block_ctx, u64 next_bytenr, int limit_nesting, struct btrfsic_block_data_ctx *next_block_ctx, struct btrfsic_block **next_blockp, int force_iodone_flag, int *num_copiesp, int *mirror_nump, struct btrfs_disk_key *disk_key, u64 parent_generation) btrfsic_create_link_to_next_block() argument
[all...]
H A Daccessors.c169 struct btrfs_disk_key *disk_key, int nr) in btrfs_node_key()
173 struct btrfs_key_ptr, key, disk_key); in btrfs_node_key() local
168 btrfs_node_key(const struct extent_buffer *eb, struct btrfs_disk_key *disk_key, int nr) btrfs_node_key() argument
H A Ddelayed-inode.h116 struct btrfs_disk_key *disk_key, u8 flags,
H A Dvolumes.c2986 struct btrfs_disk_key *disk_key; in btrfs_del_sys_chunk() local
3003 disk_key = (struct btrfs_disk_key *)ptr; in btrfs_del_sys_chunk()
3004 btrfs_disk_key_to_cpu(&key, disk_key); in btrfs_del_sys_chunk()
3006 len = sizeof(*disk_key); in btrfs_del_sys_chunk()
5015 struct btrfs_disk_key disk_key; in btrfs_add_system_chunk() local
5022 if (array_size + item_size + sizeof(disk_key) in btrfs_add_system_chunk()
5027 btrfs_cpu_key_to_disk(&disk_key, key); in btrfs_add_system_chunk()
5028 memcpy(ptr, &disk_key, sizeof(disk_key)); in btrfs_add_system_chunk()
5029 ptr += sizeof(disk_key); in btrfs_add_system_chunk()
7054 struct btrfs_disk_key *disk_key; btrfs_read_sys_array() local
[all...]
H A Dfree-space-cache.c85 struct btrfs_disk_key disk_key; in __lookup_free_space_inode() local
107 btrfs_free_space_key(leaf, header, &disk_key); in __lookup_free_space_inode()
108 btrfs_disk_key_to_cpu(&location, &disk_key); in __lookup_free_space_inode()
169 struct btrfs_disk_key disk_key; in __create_free_space_inode() local
185 btrfs_item_key(leaf, &disk_key, path->slots[0]); in __create_free_space_inode()
215 btrfs_set_free_space_key(leaf, header, &disk_key); in __create_free_space_inode()
H A Ddelayed-inode.c1459 struct btrfs_disk_key *disk_key, u8 flags, in btrfs_insert_delayed_dir_index()
1486 dir_item->location = *disk_key; in btrfs_insert_delayed_dir_index()
1456 btrfs_insert_delayed_dir_index(struct btrfs_trans_handle *trans, const char *name, int name_len, struct btrfs_inode *dir, struct btrfs_disk_key *disk_key, u8 flags, u64 index) btrfs_insert_delayed_dir_index() argument
H A Dioctl.c2909 struct btrfs_disk_key disk_key; in btrfs_ioctl_default_subvol() local
2964 btrfs_cpu_key_to_disk(&disk_key, &new_root->root_key); in btrfs_ioctl_default_subvol()
2965 btrfs_set_dir_item_key(path->nodes[0], di, &disk_key); in btrfs_ioctl_default_subvol()
/kernel/linux/linux-5.10/fs/btrfs/
H A Dctree.c187 struct btrfs_disk_key disk_key; in btrfs_copy_root() local
196 btrfs_item_key(buf, &disk_key, 0); in btrfs_copy_root()
198 btrfs_node_key(buf, &disk_key, 0); in btrfs_copy_root()
201 &disk_key, level, buf->start, 0, in btrfs_copy_root()
961 const struct btrfs_disk_key *disk_key, in alloc_tree_block_no_bg_flush()
993 root->root_key.objectid, disk_key, level, in alloc_tree_block_no_bg_flush()
1021 struct btrfs_disk_key disk_key; in __btrfs_cow_block() local
1041 btrfs_item_key(buf, &disk_key, 0); in __btrfs_cow_block()
1043 btrfs_node_key(buf, &disk_key, 0); in __btrfs_cow_block()
1048 cow = alloc_tree_block_no_bg_flush(trans, root, parent_start, &disk_key, in __btrfs_cow_block()
957 alloc_tree_block_no_bg_flush( struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 parent_start, const struct btrfs_disk_key *disk_key, int level, u64 hint, u64 empty_size, enum btrfs_lock_nesting nest) alloc_tree_block_no_bg_flush() argument
1549 comp_keys(const struct btrfs_disk_key *disk_key, const struct btrfs_key *k2) comp_keys() argument
1618 struct btrfs_disk_key disk_key; btrfs_realloc_node() local
2130 struct btrfs_disk_key disk_key; push_nodes_for_insert() local
2185 struct btrfs_disk_key disk_key; push_nodes_for_insert() local
2222 struct btrfs_disk_key disk_key; reada_for_search() local
3178 struct btrfs_disk_key disk_key; btrfs_set_item_key_safe() local
3547 struct btrfs_disk_key disk_key; split_node() local
3685 struct btrfs_disk_key disk_key; __push_leaf_right() local
3917 struct btrfs_disk_key disk_key; __push_leaf_left() local
4148 struct btrfs_disk_key disk_key; copy_for_split() local
4273 struct btrfs_disk_key disk_key; split_leaf() local
4516 struct btrfs_disk_key disk_key; split_item() local
4693 struct btrfs_disk_key disk_key; btrfs_truncate_item() local
4822 struct btrfs_disk_key disk_key; setup_items_for_insert() local
5004 struct btrfs_disk_key disk_key; del_ptr() local
5105 struct btrfs_disk_key disk_key; btrfs_del_items() local
[all...]
H A Ddir-item.c65 struct btrfs_disk_key disk_key; in btrfs_insert_xattr_item() local
84 btrfs_cpu_key_to_disk(&disk_key, &location); in btrfs_insert_xattr_item()
85 btrfs_set_dir_item_key(leaf, dir_item, &disk_key); in btrfs_insert_xattr_item()
120 struct btrfs_disk_key disk_key; in btrfs_insert_dir_item() local
132 btrfs_cpu_key_to_disk(&disk_key, location); in btrfs_insert_dir_item()
145 btrfs_set_dir_item_key(leaf, dir_item, &disk_key); in btrfs_insert_dir_item()
164 &disk_key, type, index); in btrfs_insert_dir_item()
H A Dctree.h1818 struct btrfs_disk_key *disk_key, int nr);
1821 struct btrfs_disk_key *disk_key, int nr) in btrfs_set_node_key()
1826 struct btrfs_key_ptr, key, disk_key); in btrfs_set_node_key()
1868 struct btrfs_disk_key *disk_key, int nr) in btrfs_item_key()
1871 read_eb_member(eb, item, struct btrfs_item, key, disk_key); in btrfs_item_key()
1875 struct btrfs_disk_key *disk_key, int nr) in btrfs_set_item_key()
1878 write_eb_member(eb, item, struct btrfs_item, key, disk_key); in btrfs_set_item_key()
1952 const struct btrfs_disk_key *disk_key) in btrfs_disk_key_to_cpu()
1954 memcpy(cpu_key, disk_key, sizeof(struct btrfs_key)); in btrfs_disk_key_to_cpu()
1957 static inline void btrfs_cpu_key_to_disk(struct btrfs_disk_key *disk_key, in btrfs_cpu_key_to_disk() argument
1820 btrfs_set_node_key(const struct extent_buffer *eb, struct btrfs_disk_key *disk_key, int nr) btrfs_set_node_key() argument
1867 btrfs_item_key(const struct extent_buffer *eb, struct btrfs_disk_key *disk_key, int nr) btrfs_item_key() argument
1874 btrfs_set_item_key(struct extent_buffer *eb, struct btrfs_disk_key *disk_key, int nr) btrfs_set_item_key() argument
1951 btrfs_disk_key_to_cpu(struct btrfs_key *cpu_key, const struct btrfs_disk_key *disk_key) btrfs_disk_key_to_cpu() argument
1966 struct btrfs_disk_key *disk_key = (struct btrfs_disk_key *)cpu_key; btrfs_node_key_to_cpu() local
1974 struct btrfs_disk_key *disk_key = (struct btrfs_disk_key *)cpu_key; btrfs_item_key_to_cpu() local
1983 struct btrfs_disk_key *disk_key = (struct btrfs_disk_key *)cpu_key; btrfs_dir_item_key_to_cpu() local
2009 struct btrfs_disk_key disk_key; btrfs_node_key_to_cpu() local
2017 struct btrfs_disk_key disk_key; btrfs_item_key_to_cpu() local
2026 struct btrfs_disk_key disk_key; btrfs_dir_item_key_to_cpu() local
[all...]
H A Dcheck-integrity.c145 struct btrfs_disk_key disk_key; /* extra info to print in case of member
305 struct btrfs_disk_key *disk_key,
386 b->disk_key.objectid = 0; in btrfsic_block_init()
387 b->disk_key.type = 0; in btrfsic_block_init()
388 b->disk_key.offset = 0; in btrfsic_block_init()
895 next_block->disk_key = tmp_disk_key; in btrfsic_process_superblock_dev_mirror()
985 struct btrfs_disk_key *disk_key; in btrfsic_process_metablock() local
1004 disk_key = &disk_item.key; in btrfsic_process_metablock()
1005 type = btrfs_disk_key_type(disk_key); in btrfsic_process_metablock()
1035 disk_key, in btrfsic_process_metablock()
1217 btrfsic_create_link_to_next_block( struct btrfsic_state *state, struct btrfsic_block *block, struct btrfsic_block_data_ctx *block_ctx, u64 next_bytenr, int limit_nesting, struct btrfsic_block_data_ctx *next_block_ctx, struct btrfsic_block **next_blockp, int force_iodone_flag, int *num_copiesp, int *mirror_nump, struct btrfs_disk_key *disk_key, u64 parent_generation) btrfsic_create_link_to_next_block() argument
[all...]
H A Dstruct-funcs.c164 struct btrfs_disk_key *disk_key, int nr) in btrfs_node_key()
168 struct btrfs_key_ptr, key, disk_key); in btrfs_node_key() local
163 btrfs_node_key(const struct extent_buffer *eb, struct btrfs_disk_key *disk_key, int nr) btrfs_node_key() argument
H A Ddelayed-inode.h91 struct btrfs_disk_key *disk_key, u8 type,
H A Dvolumes.c2933 struct btrfs_disk_key *disk_key; in btrfs_del_sys_chunk() local
2950 disk_key = (struct btrfs_disk_key *)ptr; in btrfs_del_sys_chunk()
2951 btrfs_disk_key_to_cpu(&key, disk_key); in btrfs_del_sys_chunk()
2953 len = sizeof(*disk_key); in btrfs_del_sys_chunk()
4852 struct btrfs_disk_key disk_key; in btrfs_add_system_chunk() local
4858 if (array_size + item_size + sizeof(disk_key) in btrfs_add_system_chunk()
4865 btrfs_cpu_key_to_disk(&disk_key, key); in btrfs_add_system_chunk()
4866 memcpy(ptr, &disk_key, sizeof(disk_key)); in btrfs_add_system_chunk()
4867 ptr += sizeof(disk_key); in btrfs_add_system_chunk()
6973 struct btrfs_disk_key *disk_key; btrfs_read_sys_array() local
[all...]
H A Dfree-space-cache.c54 struct btrfs_disk_key disk_key; in __lookup_free_space_inode() local
76 btrfs_free_space_key(leaf, header, &disk_key); in __lookup_free_space_inode()
77 btrfs_disk_key_to_cpu(&location, &disk_key); in __lookup_free_space_inode()
140 struct btrfs_disk_key disk_key; in __create_free_space_inode() local
158 btrfs_item_key(leaf, &disk_key, path->slots[0]); in __create_free_space_inode()
188 btrfs_set_free_space_key(leaf, header, &disk_key); in __create_free_space_inode()
H A Ddelayed-inode.c1456 struct btrfs_disk_key *disk_key, u8 type, in btrfs_insert_delayed_dir_index()
1479 dir_item->location = *disk_key; in btrfs_insert_delayed_dir_index()
1453 btrfs_insert_delayed_dir_index(struct btrfs_trans_handle *trans, const char *name, int name_len, struct btrfs_inode *dir, struct btrfs_disk_key *disk_key, u8 type, u64 index) btrfs_insert_delayed_dir_index() argument
H A Dioctl.c3449 struct btrfs_disk_key disk_key; in btrfs_ioctl_default_subvol() local
3504 btrfs_cpu_key_to_disk(&disk_key, &new_root->root_key); in btrfs_ioctl_default_subvol()
3505 btrfs_set_dir_item_key(path->nodes[0], di, &disk_key); in btrfs_ioctl_default_subvol()

Completed in 81 milliseconds