/Linux-v4.19/fs/btrfs/tests/ |
D | qgroup-tests.c | 208 u32 sectorsize, u32 nodesize) in test_no_shared_qgroup() argument 230 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &old_roots, in test_no_shared_qgroup() 238 ret = insert_normal_tree_ref(root, nodesize, nodesize, 0, in test_no_shared_qgroup() 243 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &new_roots, in test_no_shared_qgroup() 252 ret = btrfs_qgroup_account_extent(&trans, nodesize, nodesize, old_roots, in test_no_shared_qgroup() 260 nodesize, nodesize)) { in test_no_shared_qgroup() 267 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &old_roots, in test_no_shared_qgroup() 275 ret = remove_extent_item(root, nodesize, nodesize); in test_no_shared_qgroup() 279 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &new_roots, in test_no_shared_qgroup() 288 ret = btrfs_qgroup_account_extent(&trans, nodesize, nodesize, old_roots, in test_no_shared_qgroup() [all …]
|
D | btrfs-tests.h | 18 int btrfs_test_extent_buffer_operations(u32 sectorsize, u32 nodesize); 19 int btrfs_test_free_space_cache(u32 sectorsize, u32 nodesize); 20 int btrfs_test_extent_io(u32 sectorsize, u32 nodesize); 21 int btrfs_test_inodes(u32 sectorsize, u32 nodesize); 22 int btrfs_test_qgroups(u32 sectorsize, u32 nodesize); 23 int btrfs_test_free_space_tree(u32 sectorsize, u32 nodesize); 26 struct btrfs_fs_info *btrfs_alloc_dummy_fs_info(u32 nodesize, u32 sectorsize);
|
D | btrfs-tests.c | 69 struct btrfs_fs_info *btrfs_alloc_dummy_fs_info(u32 nodesize, u32 sectorsize) in btrfs_alloc_dummy_fs_info() argument 90 fs_info->nodesize = nodesize; in btrfs_alloc_dummy_fs_info() 234 u32 sectorsize, nodesize; in btrfs_run_sanity_tests() local 243 for (nodesize = sectorsize; in btrfs_run_sanity_tests() 244 nodesize <= BTRFS_MAX_METADATA_BLOCKSIZE; in btrfs_run_sanity_tests() 245 nodesize <<= 1) { in btrfs_run_sanity_tests() 247 sectorsize, nodesize); in btrfs_run_sanity_tests() 248 ret = btrfs_test_free_space_cache(sectorsize, nodesize); in btrfs_run_sanity_tests() 252 nodesize); in btrfs_run_sanity_tests() 255 ret = btrfs_test_extent_io(sectorsize, nodesize); in btrfs_run_sanity_tests() [all …]
|
D | free-space-tree-tests.c | 436 u32 nodesize, u32 alignment) in run_test() argument 445 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in run_test() 464 root->node = alloc_test_extent_buffer(root->fs_info, nodesize); in run_test() 472 root->alloc_bytenr += 2 * nodesize; in run_test() 534 u32 nodesize, u32 alignment) in run_test_both_formats() argument 539 ret = run_test(test_func, 0, sectorsize, nodesize, alignment); in run_test_both_formats() 543 test_func, sectorsize, nodesize, alignment); in run_test_both_formats() 547 ret = run_test(test_func, 1, sectorsize, nodesize, alignment); in run_test_both_formats() 551 test_func, sectorsize, nodesize, alignment); in run_test_both_formats() 558 int btrfs_test_free_space_tree(u32 sectorsize, u32 nodesize) in btrfs_test_free_space_tree() argument [all …]
|
D | extent-buffer-tests.c | 12 static int test_btrfs_split_item(u32 sectorsize, u32 nodesize) in test_btrfs_split_item() argument 31 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_btrfs_split_item() 51 path->nodes[0] = eb = alloc_dummy_extent_buffer(fs_info, nodesize); in test_btrfs_split_item() 221 int btrfs_test_extent_buffer_operations(u32 sectorsize, u32 nodesize) in btrfs_test_extent_buffer_operations() argument 224 return test_btrfs_split_item(sectorsize, nodesize); in btrfs_test_extent_buffer_operations()
|
D | inode-tests.c | 218 static noinline int test_btrfs_get_extent(u32 sectorsize, u32 nodesize) in test_btrfs_get_extent() argument 239 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_btrfs_get_extent() 251 root->node = alloc_dummy_extent_buffer(fs_info, nodesize); in test_btrfs_get_extent() 827 static int test_hole_first(u32 sectorsize, u32 nodesize) in test_hole_first() argument 845 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_hole_first() 857 root->node = alloc_dummy_extent_buffer(fs_info, nodesize); in test_hole_first() 929 static int test_extent_accounting(u32 sectorsize, u32 nodesize) in test_extent_accounting() argument 942 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_extent_accounting() 1115 int btrfs_test_inodes(u32 sectorsize, u32 nodesize) in btrfs_test_inodes() argument 1123 ret = test_btrfs_get_extent(sectorsize, nodesize); in btrfs_test_inodes() [all …]
|
D | extent-io-tests.c | 372 static int test_eb_bitmaps(u32 sectorsize, u32 nodesize) in test_eb_bitmaps() argument 410 eb = __alloc_dummy_extent_buffer(NULL, nodesize / 2, len); in test_eb_bitmaps() 424 int btrfs_test_extent_io(u32 sectorsize, u32 nodesize) in btrfs_test_extent_io() argument 434 ret = test_eb_bitmaps(sectorsize, nodesize); in btrfs_test_extent_io()
|
D | free-space-tests.c | 828 int btrfs_test_free_space_cache(u32 sectorsize, u32 nodesize) in btrfs_test_free_space_cache() argument 836 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in btrfs_test_free_space_cache()
|
/Linux-v4.19/fs/nilfs2/ |
D | btree.h | 46 #define NILFS_BTREE_NODE_NCHILDREN_MAX(nodesize) \ argument 47 (((nodesize) - sizeof(struct nilfs_btree_node) - \ 50 #define NILFS_BTREE_NODE_NCHILDREN_MIN(nodesize) \ argument 51 ((NILFS_BTREE_NODE_NCHILDREN_MAX(nodesize) - 1) / 2 + 1)
|
/Linux-v4.19/fs/btrfs/ |
D | print-tree.c | 98 if (!IS_ALIGNED(offset, eb->fs_info->nodesize)) in print_extent_item() 100 offset, (unsigned long long)eb->fs_info->nodesize); in print_extent_item() 114 if (!IS_ALIGNED(offset, eb->fs_info->nodesize)) in print_extent_item() 116 offset, (unsigned long long)eb->fs_info->nodesize); in print_extent_item()
|
D | reada.c | 337 length = fs_info->nodesize; in reada_find_extent() 340 if (ret || !bbio || length < fs_info->nodesize) in reada_find_extent() 678 dev->reada_next = re->logical + fs_info->nodesize; in reada_start_machine_dev() 840 re->logical, fs_info->nodesize, in dump_devs() 873 re->logical, fs_info->nodesize, in dump_devs()
|
D | disk-io.c | 1380 fs_info->nodesize); in btrfs_add_log_tree() 2410 u64 nodesize = btrfs_super_nodesize(sb); in validate_super() local 2455 if (!is_power_of_2(nodesize) || nodesize < sectorsize || in validate_super() 2456 nodesize > BTRFS_MAX_METADATA_BLOCKSIZE) { in validate_super() 2457 btrfs_err(fs_info, "invalid nodesize %llu", nodesize); in validate_super() 2460 if (nodesize != le32_to_cpu(sb->__unused_leafsize)) { in validate_super() 2462 le32_to_cpu(sb->__unused_leafsize), nodesize); in validate_super() 2607 u32 nodesize; in open_ctree() local 2781 fs_info->nodesize = 4096; in open_ctree() 2892 nodesize = btrfs_super_nodesize(disk_super); in open_ctree() [all …]
|
D | sysfs.c | 441 return snprintf(buf, PAGE_SIZE, "%u\n", fs_info->super_copy->nodesize); in btrfs_nodesize_show() 444 BTRFS_ATTR(, nodesize, btrfs_nodesize_show); 510 BTRFS_ATTR_PTR(, nodesize),
|
D | relocation.c | 1803 blocksize = fs_info->nodesize; in replace_path() 2175 min_reserved = fs_info->nodesize * (BTRFS_MAX_LEVEL - 1) * 2; in merge_reloc_root() 2289 rc->merging_rsv_size += fs_info->nodesize * (BTRFS_MAX_LEVEL - 1) * 2; in prepare_to_merge() 2585 num_bytes += fs_info->nodesize; in calcu_metadata_size() 2623 tmp = fs_info->nodesize * RELOCATION_RESERVED_NODES; in reserve_metadata_space() 2633 rc->block_rsv->size = tmp + fs_info->nodesize * in reserve_metadata_space() 2737 blocksize = root->fs_info->nodesize; in do_relocation() 2852 blocksize = rc->extent_root->fs_info->nodesize; in __mark_block_processed() 2892 u32 blocksize = rc->extent_root->fs_info->nodesize; in tree_block_processed() 3345 block->key.objectid = rc->extent_root->fs_info->nodesize; in add_tree_block() [all …]
|
D | scrub.c | 1860 len = sctx->fs_info->nodesize - BTRFS_CSUM_SIZE; in scrub_checksum_tree_block() 2471 blocksize = sctx->fs_info->nodesize; in scrub_extent() 2897 bytes = fs_info->nodesize; in scrub_raid56_parity() 3250 bytes = fs_info->nodesize; in scrub_stripe() 3786 if (fs_info->nodesize > BTRFS_STRIPE_LEN) { in btrfs_scrub_dev() 3794 fs_info->nodesize, in btrfs_scrub_dev() 3807 if (fs_info->nodesize > in btrfs_scrub_dev() 3816 fs_info->nodesize, in btrfs_scrub_dev()
|
D | extent-tree.c | 321 fs_info->nodesize : fs_info->sectorsize; in fragment_free_space() 492 fs_info->nodesize; in load_extent_tree_free() 825 offset = fs_info->nodesize; in btrfs_lookup_extent_info() 857 key.offset == fs_info->nodesize) in btrfs_lookup_extent_info() 1065 IS_ALIGNED(offset, eb->fs_info->nodesize)) in btrfs_get_extent_inline_ref_type() 1079 IS_ALIGNED(offset, eb->fs_info->nodesize)) in btrfs_get_extent_inline_ref_type() 2761 num_bytes += (num_heads - 1) * fs_info->nodesize; in btrfs_check_space_for_delayed_refs() 2764 fs_info->nodesize; in btrfs_check_space_for_delayed_refs() 3236 num_bytes = fs_info->nodesize; in __btrfs_mod_ref() 5824 qgroup_num_bytes = 3 * fs_info->nodesize; in btrfs_subvolume_reserve_metadata() [all …]
|
D | ctree.h | 224 __le32 nodesize; member 1120 u32 nodesize; member 1303 return info->nodesize - sizeof(struct btrfs_header); in BTRFS_LEAF_DATA_SIZE() 2332 nodesize, 32); 2597 return (u64)fs_info->nodesize * BTRFS_MAX_LEVEL * 2 * num_items; in btrfs_calc_trans_metadata_size() 2607 return (u64)fs_info->nodesize * BTRFS_MAX_LEVEL * num_items; in btrfs_calc_trunc_metadata_size()
|
D | qgroup.c | 1797 fs_info->nodesize, in btrfs_qgroup_trace_subtree() 2344 level_size = fs_info->nodesize; in btrfs_qgroup_inherit() 2704 num_bytes = fs_info->nodesize; in qgroup_rescan_leaf() 3221 BUG_ON(num_bytes != round_down(num_bytes, fs_info->nodesize)); in __btrfs_qgroup_reserve_meta() 3268 BUG_ON(num_bytes != round_down(num_bytes, fs_info->nodesize)); in __btrfs_qgroup_free_meta()
|
D | ctree.c | 1572 blocksize = fs_info->nodesize; in btrfs_realloc_node() 2199 blocksize = fs_info->nodesize; in reada_for_search() 3355 root_add_used(root, fs_info->nodesize); in insert_new_root() 3485 root_add_used(root, fs_info->nodesize); in split_node() 4270 root_add_used(root, fs_info->nodesize); in split_leaf() 5361 tmp_buf = kvmalloc(fs_info->nodesize, GFP_KERNEL); in btrfs_compare_trees()
|
D | delayed-inode.c | 623 fs_info->nodesize, true); in btrfs_delayed_inode_reserve_metadata() 645 btrfs_qgroup_free_meta_prealloc(root, fs_info->nodesize); in btrfs_delayed_inode_reserve_metadata()
|
D | check-integrity.c | 2895 if (fs_info->nodesize & ((u64)PAGE_SIZE - 1)) { in btrfsic_mount() 2897 fs_info->nodesize, PAGE_SIZE); in btrfsic_mount() 2921 state->metablock_size = fs_info->nodesize; in btrfsic_mount()
|
D | transaction.c | 487 qgroup_reserved = num_items * fs_info->nodesize; in start_transaction() 498 num_bytes += fs_info->nodesize; in start_transaction()
|
D | ref-verify.c | 338 be = add_block_entry(fs_info, bytenr, fs_info->nodesize, ref_root); in add_tree_block()
|
D | ioctl.c | 621 fs_info->nodesize); in create_subvol() 3137 fi_args->nodesize = fs_info->nodesize; in btrfs_ioctl_fs_info() 3911 buf = kvmalloc(fs_info->nodesize, GFP_KERNEL); in btrfs_clone()
|
/Linux-v4.19/include/uapi/linux/ |
D | btrfs.h | 231 __u32 nodesize; /* out */ member
|