/linux-5.19.10/fs/btrfs/ |
D | misc.h | 70 u64 bytenr; member 73 static inline struct rb_node *rb_simple_search(struct rb_root *root, u64 bytenr) in rb_simple_search() argument 81 if (bytenr < entry->bytenr) in rb_simple_search() 83 else if (bytenr > entry->bytenr) in rb_simple_search() 91 static inline struct rb_node *rb_simple_insert(struct rb_root *root, u64 bytenr, in rb_simple_insert() argument 102 if (bytenr < entry->bytenr) in rb_simple_insert() 104 else if (bytenr > entry->bytenr) in rb_simple_insert()
|
D | ref-verify.c | 64 u64 bytenr; member 85 if (entry->bytenr > be->bytenr) in insert_block_entry() 87 else if (entry->bytenr < be->bytenr) in insert_block_entry() 98 static struct block_entry *lookup_block_entry(struct rb_root *root, u64 bytenr) in lookup_block_entry() argument 106 if (entry->bytenr < bytenr) in lookup_block_entry() 108 else if (entry->bytenr > bytenr) in lookup_block_entry() 261 u64 bytenr, u64 len, in add_block_entry() argument 274 be->bytenr = bytenr; in add_block_entry() 310 u64 parent, u64 bytenr, int level) in add_tree_block() argument 329 be = add_block_entry(fs_info, bytenr, fs_info->nodesize, ref_root); in add_tree_block() [all …]
|
D | delayed-ref.c | 309 u64 bytenr; in htree_insert() local 313 bytenr = ins->bytenr; in htree_insert() 319 if (bytenr < entry->bytenr) { in htree_insert() 321 } else if (bytenr > entry->bytenr) { in htree_insert() 386 struct btrfs_delayed_ref_root *dr, u64 bytenr, in find_ref_head() argument 398 if (bytenr < entry->bytenr) in find_ref_head() 400 else if (bytenr > entry->bytenr) in find_ref_head() 406 if (bytenr > entry->bytenr) { in find_ref_head() 578 delayed_refs->run_delayed_start = head->bytenr + in btrfs_select_ref_head() 739 u64 bytenr, u64 num_bytes, u64 ref_root, in init_delayed_ref_head() argument [all …]
|
D | file-item.c | 181 u64 bytenr, int cow) in btrfs_lookup_csum() argument 194 file_key.offset = bytenr; in btrfs_lookup_csum() 209 csum_offset = (bytenr - found_key.offset) >> in btrfs_lookup_csum() 593 sums->bytenr = start; in btrfs_lookup_csums_range() 663 sums->bytenr = bio->bi_iter.bi_sector << 9; in btrfs_csum_one_bio() 714 sums->bytenr = (bio->bi_iter.bi_sector << 9) in btrfs_csum_one_bio() 752 u64 bytenr, u64 len) in truncate_one_csum() argument 757 u64 end_byte = bytenr + len; in truncate_one_csum() 765 if (key->offset < bytenr && csum_end <= end_byte) { in truncate_one_csum() 772 u32 new_size = (bytenr - key->offset) >> blocksize_bits; in truncate_one_csum() [all …]
|
D | backref.h | 45 struct btrfs_fs_info *fs_info, u64 bytenr, 49 struct btrfs_fs_info *fs_info, u64 bytenr, 66 int btrfs_check_shared(struct btrfs_root *root, u64 inum, u64 bytenr, 89 u64 bytenr; member 132 int btrfs_backref_iter_start(struct btrfs_backref_iter *iter, u64 bytenr); 147 iter->bytenr = 0; in btrfs_backref_iter_release() 168 u64 bytenr; member 276 struct btrfs_backref_cache *cache, u64 bytenr, int level); 363 u64 bytenr, int errno) in btrfs_backref_panic() argument 367 bytenr); in btrfs_backref_panic()
|
D | extent-tree.c | 117 struct btrfs_fs_info *fs_info, u64 bytenr, in btrfs_lookup_extent_info() argument 151 key.objectid = bytenr; in btrfs_lookup_extent_info() 158 extent_root = btrfs_extent_root(fs_info, bytenr); in btrfs_lookup_extent_info() 168 if (key.objectid == bytenr && in btrfs_lookup_extent_info() 206 head = btrfs_find_delayed_ref_head(delayed_refs, bytenr); in btrfs_lookup_extent_info() 445 u64 bytenr, u64 parent, in lookup_extent_data_ref() argument 449 struct btrfs_root *root = btrfs_extent_root(trans->fs_info, bytenr); in lookup_extent_data_ref() 458 key.objectid = bytenr; in lookup_extent_data_ref() 497 if (key.objectid != bytenr || in lookup_extent_data_ref() 521 u64 bytenr, u64 parent, in insert_extent_data_ref() argument [all …]
|
D | delayed-ref.h | 27 u64 bytenr; member 71 u64 bytenr; member 237 u64 bytenr; member 257 int action, u64 bytenr, u64 len, u64 parent) in btrfs_init_generic_ref() argument 260 generic_ref->bytenr = bytenr; in btrfs_init_generic_ref() 358 u64 bytenr, u64 num_bytes, 366 u64 bytenr);
|
D | backref.c | 391 static int is_shared_data_backref(struct preftrees *preftrees, u64 bytenr) in is_shared_data_backref() argument 399 target.parent = bytenr; in is_shared_data_backref() 862 node->bytenr, count, sc, in add_delayed_refs() 873 ref->parent, node->bytenr, count, in add_delayed_refs() 896 &key, 0, node->bytenr, count, sc, in add_delayed_refs() 907 node->bytenr, count, sc, in add_delayed_refs() 934 struct btrfs_path *path, u64 bytenr, in add_inline_refs() argument 996 bytenr, 1, NULL, GFP_NOFS); in add_inline_refs() 1006 bytenr, count, sc, GFP_NOFS); in add_inline_refs() 1012 bytenr, 1, NULL, GFP_NOFS); in add_inline_refs() [all …]
|
D | free-space-cache.h | 106 int __btrfs_add_free_space(struct btrfs_block_group *block_group, u64 bytenr, 109 u64 bytenr, u64 size); 111 u64 bytenr, u64 size); 113 u64 bytenr, u64 size); 115 u64 bytenr, u64 size);
|
D | relocation.c | 85 u64 bytenr; member 101 u64 bytenr; member 165 in_range(node->bytenr, rc->block_group->start, in mark_block_processed() 168 set_extent_bits(&rc->processed_blocks, node->bytenr, in mark_block_processed() 169 node->bytenr + blocksize - 1, EXTENT_DIRTY); in mark_block_processed() 230 struct btrfs_backref_node *node, u64 bytenr) in update_backref_node() argument 234 node->bytenr = bytenr; in update_backref_node() 235 rb_node = rb_simple_insert(&cache->rb_root, node->bytenr, &node->rb_node); in update_backref_node() 237 btrfs_backref_panic(cache->fs_info, bytenr, -EEXIST); in update_backref_node() 283 if (node->bytenr == node->new_bytenr) in update_backref_cache() [all …]
|
D | disk-io.h | 42 struct extent_buffer *read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr, 47 u64 bytenr, u64 owner_root, 78 struct btrfs_root *btrfs_csum_root(struct btrfs_fs_info *fs_info, u64 bytenr); 79 struct btrfs_root *btrfs_extent_root(struct btrfs_fs_info *fs_info, u64 bytenr);
|
D | check-integrity.c | 267 static int btrfsic_map_block(struct btrfsic_state *state, u64 bytenr, u32 len, 318 u64 bytenr, 1453 static int btrfsic_map_block(struct btrfsic_state *state, u64 bytenr, u32 len, in btrfsic_map_block() argument 1465 bytenr, &length, &multi, mirror_num); in btrfsic_map_block() 1487 block_ctx_out->start = bytenr; in btrfsic_map_block() 1708 u64 bytenr = 0; in btrfsic_process_written_block() local 1712 bytenr = btrfs_super_bytenr((struct btrfs_super_block *) in btrfsic_process_written_block() 1736 bytenr = btrfs_stack_header_bytenr( in btrfsic_process_written_block() 1739 btrfsic_cmp_log_and_dev_bytenr(state, bytenr, in btrfsic_process_written_block() 1744 if (block->logical_bytenr != bytenr && in btrfsic_process_written_block() [all …]
|
D | block-group.h | 250 struct btrfs_fs_info *info, u64 bytenr); 252 struct btrfs_fs_info *info, u64 bytenr); 261 u64 bytenr); 294 u64 bytenr, u64 num_bytes, bool alloc);
|
D | qgroup.h | 109 u64 bytenr; member 317 int btrfs_qgroup_trace_extent(struct btrfs_trans_handle *trans, u64 bytenr, 341 int btrfs_qgroup_account_extent(struct btrfs_trans_handle *trans, u64 bytenr,
|
D | disk-io.c | 1003 u64 bytenr, u64 owner_root, in btrfs_find_create_tree_block() argument 1007 return alloc_test_extent_buffer(fs_info, bytenr); in btrfs_find_create_tree_block() 1008 return alloc_extent_buffer(fs_info, bytenr, owner_root, level); in btrfs_find_create_tree_block() 1020 struct extent_buffer *read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr, in read_tree_block() argument 1027 buf = btrfs_find_create_tree_block(fs_info, bytenr, owner_root, level); in read_tree_block() 1220 static u64 btrfs_global_root_id(struct btrfs_fs_info *fs_info, u64 bytenr) in btrfs_global_root_id() argument 1228 if (bytenr) in btrfs_global_root_id() 1229 block_group = btrfs_lookup_block_group(fs_info, bytenr); in btrfs_global_root_id() 1231 block_group = btrfs_lookup_first_block_group(fs_info, bytenr); in btrfs_global_root_id() 1241 struct btrfs_root *btrfs_csum_root(struct btrfs_fs_info *fs_info, u64 bytenr) in btrfs_csum_root() argument [all …]
|
D | block-group.c | 206 struct btrfs_fs_info *info, u64 bytenr, int contains) in block_group_cache_tree_search() argument 220 if (bytenr < start) { in block_group_cache_tree_search() 224 } else if (bytenr > start) { in block_group_cache_tree_search() 225 if (contains && bytenr <= end) { in block_group_cache_tree_search() 246 struct btrfs_fs_info *info, u64 bytenr) in btrfs_lookup_first_block_group() argument 248 return block_group_cache_tree_search(info, bytenr, 0); in btrfs_lookup_first_block_group() 255 struct btrfs_fs_info *info, u64 bytenr) in btrfs_lookup_block_group() argument 257 return block_group_cache_tree_search(info, bytenr, 1); in btrfs_lookup_block_group() 303 u64 bytenr) in btrfs_inc_nocow_writers() argument 308 bg = btrfs_lookup_block_group(fs_info, bytenr); in btrfs_inc_nocow_writers() [all …]
|
D | qgroup.c | 1737 u64 bytenr = record->bytenr; in btrfs_qgroup_trace_extent_nolock() local 1746 if (bytenr < entry->bytenr) { in btrfs_qgroup_trace_extent_nolock() 1748 } else if (bytenr > entry->bytenr) { in btrfs_qgroup_trace_extent_nolock() 1769 u64 bytenr = qrecord->bytenr; in btrfs_qgroup_trace_extent_post() local 1793 ret = btrfs_find_all_roots(NULL, trans->fs_info, bytenr, 0, &old_root, in btrfs_qgroup_trace_extent_post() 1814 int btrfs_qgroup_trace_extent(struct btrfs_trans_handle *trans, u64 bytenr, in btrfs_qgroup_trace_extent() argument 1823 || bytenr == 0 || num_bytes == 0) in btrfs_qgroup_trace_extent() 1830 record->bytenr = bytenr; in btrfs_qgroup_trace_extent() 1852 u64 bytenr, num_bytes; in btrfs_qgroup_trace_leaf_items() local 1871 bytenr = btrfs_file_extent_disk_bytenr(eb, fi); in btrfs_qgroup_trace_leaf_items() [all …]
|
D | tree-checker.c | 1212 u64 bytenr; in extent_err() local 1216 bytenr = key.objectid; in extent_err() 1231 eb->start, slot, bytenr, len, &vaf); in extent_err() 1828 u64 bytenr; in btrfs_check_node() local 1847 bytenr = btrfs_node_blockptr(node, slot); in btrfs_check_node() 1851 if (unlikely(!bytenr)) { in btrfs_check_node() 1857 if (unlikely(!IS_ALIGNED(bytenr, fs_info->sectorsize))) { in btrfs_check_node() 1860 bytenr, fs_info->sectorsize); in btrfs_check_node()
|
D | scrub.c | 382 static u64 get_full_stripe_logical(struct btrfs_block_group *cache, u64 bytenr) in get_full_stripe_logical() argument 396 ret = div64_u64(bytenr - cache->start, cache->full_stripe_len) * in get_full_stripe_logical() 412 static int lock_full_stripe(struct btrfs_fs_info *fs_info, u64 bytenr, in lock_full_stripe() argument 422 bg_cache = btrfs_lookup_block_group(fs_info, bytenr); in lock_full_stripe() 433 fstripe_start = get_full_stripe_logical(bg_cache, bytenr); in lock_full_stripe() 459 static int unlock_full_stripe(struct btrfs_fs_info *fs_info, u64 bytenr, in unlock_full_stripe() argument 473 bg_cache = btrfs_lookup_block_group(fs_info, bytenr); in unlock_full_stripe() 482 fstripe_start = get_full_stripe_logical(bg_cache, bytenr); in unlock_full_stripe() 2477 if (sum->bytenr > logical) in scrub_find_csum() 2486 if (sum->bytenr + sum->len <= logical) { in scrub_find_csum() [all …]
|
D | ctree.h | 163 __le64 bytenr; /* which block this node is supposed to live in */ member 233 __le64 bytenr; /* this block number */ member 2221 BTRFS_SETGET_HEADER_FUNCS(header_bytenr, struct btrfs_header, bytenr, 64); 2233 BTRFS_SETGET_STACK_FUNCS(stack_header_bytenr, struct btrfs_header, bytenr, 64); 2276 BTRFS_SETGET_FUNCS(disk_root_bytenr, struct btrfs_root_item, bytenr, 64); 2281 BTRFS_SETGET_STACK_FUNCS(root_bytenr, struct btrfs_root_item, bytenr, 64); 2465 BTRFS_SETGET_STACK_FUNCS(super_bytenr, struct btrfs_super_block, bytenr, 64); 2782 struct btrfs_fs_info *fs_info, u64 bytenr, 2784 int btrfs_pin_extent(struct btrfs_trans_handle *trans, u64 bytenr, u64 num, 2787 u64 bytenr, u64 num_bytes); [all …]
|
D | ordered-data.h | 18 u64 bytenr; member
|
D | file.c | 1017 u64 objectid, u64 bytenr, u64 orig_offset, in extent_mergeable() argument 1033 btrfs_file_extent_disk_bytenr(leaf, fi) != bytenr || in extent_mergeable() 1067 u64 bytenr; in btrfs_mark_extent_written() local 1118 bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); in btrfs_mark_extent_written() 1127 ino, bytenr, orig_offset, in btrfs_mark_extent_written() 1154 ino, bytenr, orig_offset, in btrfs_mark_extent_written() 1210 btrfs_init_generic_ref(&ref, BTRFS_ADD_DELAYED_REF, bytenr, in btrfs_mark_extent_written() 1236 btrfs_init_generic_ref(&ref, BTRFS_DROP_DELAYED_REF, bytenr, in btrfs_mark_extent_written() 1241 ino, bytenr, orig_offset, in btrfs_mark_extent_written() 1259 ino, bytenr, orig_offset, in btrfs_mark_extent_written()
|
/linux-5.19.10/fs/btrfs/tests/ |
D | qgroup-tests.c | 14 static int insert_normal_tree_ref(struct btrfs_root *root, u64 bytenr, in insert_normal_tree_ref() argument 29 ins.objectid = bytenr; in insert_normal_tree_ref() 66 static int add_tree_ref(struct btrfs_root *root, u64 bytenr, u64 num_bytes, in add_tree_ref() argument 78 key.objectid = bytenr; in add_tree_ref() 101 key.objectid = bytenr; in add_tree_ref() 117 static int remove_extent_item(struct btrfs_root *root, u64 bytenr, in remove_extent_item() argument 127 key.objectid = bytenr; in remove_extent_item() 148 static int remove_extent_ref(struct btrfs_root *root, u64 bytenr, in remove_extent_ref() argument 160 key.objectid = bytenr; in remove_extent_ref() 183 key.objectid = bytenr; in remove_extent_ref()
|
/linux-5.19.10/include/trace/events/ |
D | btrfs.h | 789 __field( u64, bytenr ) 800 __entry->bytenr = ref->bytenr; 813 __entry->bytenr, 852 __field( u64, bytenr ) 864 __entry->bytenr = ref->bytenr; 878 __entry->bytenr, 918 __field( u64, bytenr ) 925 __entry->bytenr = head_ref->bytenr; 932 __entry->bytenr, 1573 __field( u64, bytenr ) [all …]
|
/linux-5.19.10/drivers/hwmon/ |
D | w83791d.c | 447 int bytenr = bitnr / 8; in store_beep() local 459 data->beep_mask &= ~(0xff << (bytenr * 8)); in store_beep() 460 data->beep_mask |= w83791d_read(client, W83791D_REG_BEEP_CTRL[bytenr]) in store_beep() 461 << (bytenr * 8); in store_beep() 466 w83791d_write(client, W83791D_REG_BEEP_CTRL[bytenr], in store_beep() 467 (data->beep_mask >> (bytenr * 8)) & 0xff); in store_beep()
|