/fs/btrfs/tests/ |
D | qgroup-tests.c | 206 u32 sectorsize, u32 nodesize) in test_no_shared_qgroup() argument 224 ctx.bytenr = nodesize; in test_no_shared_qgroup() 241 ret = insert_normal_tree_ref(root, nodesize, nodesize, 0, in test_no_shared_qgroup() 257 ret = btrfs_qgroup_account_extent(&trans, nodesize, nodesize, old_roots, in test_no_shared_qgroup() 269 nodesize, nodesize)) { in test_no_shared_qgroup() 282 ret = remove_extent_item(root, nodesize, nodesize); in test_no_shared_qgroup() 297 ret = btrfs_qgroup_account_extent(&trans, nodesize, nodesize, old_roots, in test_no_shared_qgroup() 318 u32 sectorsize, u32 nodesize) in test_multiple_refs() argument 341 ctx.bytenr = nodesize; in test_multiple_refs() 353 ret = insert_normal_tree_ref(root, nodesize, nodesize, 0, in test_multiple_refs() [all …]
|
D | btrfs-tests.c | 118 struct btrfs_fs_info *btrfs_alloc_dummy_fs_info(u32 nodesize, u32 sectorsize) in btrfs_alloc_dummy_fs_info() argument 143 fs_info->nodesize = nodesize; in btrfs_alloc_dummy_fs_info() 264 u32 sectorsize, nodesize; in btrfs_run_sanity_tests() local 273 for (nodesize = sectorsize; in btrfs_run_sanity_tests() 274 nodesize <= BTRFS_MAX_METADATA_BLOCKSIZE; in btrfs_run_sanity_tests() 275 nodesize <<= 1) { in btrfs_run_sanity_tests() 277 sectorsize, nodesize); in btrfs_run_sanity_tests() 278 ret = btrfs_test_free_space_cache(sectorsize, nodesize); in btrfs_run_sanity_tests() 282 nodesize); in btrfs_run_sanity_tests() 285 ret = btrfs_test_extent_io(sectorsize, nodesize); in btrfs_run_sanity_tests() [all …]
|
D | btrfs-tests.h | 33 int btrfs_test_extent_buffer_operations(u32 sectorsize, u32 nodesize); 34 int btrfs_test_free_space_cache(u32 sectorsize, u32 nodesize); 35 int btrfs_test_extent_io(u32 sectorsize, u32 nodesize); 36 int btrfs_test_inodes(u32 sectorsize, u32 nodesize); 37 int btrfs_test_qgroups(u32 sectorsize, u32 nodesize); 38 int btrfs_test_free_space_tree(u32 sectorsize, u32 nodesize); 41 struct btrfs_fs_info *btrfs_alloc_dummy_fs_info(u32 nodesize, u32 sectorsize);
|
D | extent-io-tests.c | 109 static int test_find_delalloc(u32 sectorsize, u32 nodesize) in test_find_delalloc() argument 127 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_find_delalloc() 506 static int test_eb_bitmaps(u32 sectorsize, u32 nodesize) in test_eb_bitmaps() argument 515 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_eb_bitmaps() 521 bitmap = kmalloc(nodesize, GFP_KERNEL); in test_eb_bitmaps() 528 eb = __alloc_dummy_extent_buffer(fs_info, 0, nodesize); in test_eb_bitmaps() 545 eb = __alloc_dummy_extent_buffer(fs_info, sectorsize, nodesize); in test_eb_bitmaps() 711 static int test_eb_mem_ops(u32 sectorsize, u32 nodesize) in test_eb_mem_ops() argument 720 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_eb_mem_ops() 726 memory = kvzalloc(nodesize, GFP_KERNEL); in test_eb_mem_ops() [all …]
|
D | free-space-tree-tests.c | 425 u32 nodesize, u32 alignment) in run_test() argument 434 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in run_test() 456 root->node = alloc_test_extent_buffer(root->fs_info, nodesize); in run_test() 464 root->alloc_bytenr += 2 * nodesize; in run_test() 526 u32 nodesize, u32 alignment) in run_test_both_formats() argument 531 ret = run_test(test_func, 0, sectorsize, nodesize, alignment); in run_test_both_formats() 535 test_func, sectorsize, nodesize, alignment); in run_test_both_formats() 539 ret = run_test(test_func, 1, sectorsize, nodesize, alignment); in run_test_both_formats() 543 test_func, sectorsize, nodesize, alignment); in run_test_both_formats() 550 int btrfs_test_free_space_tree(u32 sectorsize, u32 nodesize) in btrfs_test_free_space_tree() argument [all …]
|
D | extent-buffer-tests.c | 13 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 eb = alloc_dummy_extent_buffer(fs_info, nodesize); in test_btrfs_split_item() 219 int btrfs_test_extent_buffer_operations(u32 sectorsize, u32 nodesize) in btrfs_test_extent_buffer_operations() argument 222 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 237 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_btrfs_get_extent() 249 root->node = alloc_dummy_extent_buffer(fs_info, nodesize); in test_btrfs_get_extent() 807 static int test_hole_first(u32 sectorsize, u32 nodesize) in test_hole_first() argument 823 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_hole_first() 835 root->node = alloc_dummy_extent_buffer(fs_info, nodesize); in test_hole_first() 905 static int test_extent_accounting(u32 sectorsize, u32 nodesize) in test_extent_accounting() argument 920 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_extent_accounting() 1092 int btrfs_test_inodes(u32 sectorsize, u32 nodesize) in btrfs_test_inodes() argument 1101 ret = test_btrfs_get_extent(sectorsize, nodesize); in btrfs_test_inodes() [all …]
|
D | free-space-tests.c | 1005 int btrfs_test_free_space_cache(u32 sectorsize, u32 nodesize) in btrfs_test_free_space_cache() argument 1013 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in btrfs_test_free_space_cache()
|
/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)
|
/fs/btrfs/ |
D | extent_io.c | 872 if (fs_info->nodesize >= PAGE_SIZE) { in attach_extent_buffer_page() 1683 if (fs_info->nodesize < PAGE_SIZE) { in write_one_eb() 1732 int sectors_per_node = fs_info->nodesize >> fs_info->sectorsize_bits; in submit_eb_subpage() 1817 if (btrfs_sb(page->mapping->host->i_sb)->nodesize < PAGE_SIZE) in submit_eb_page() 3309 if (fs_info->nodesize >= PAGE_SIZE) { in detach_extent_buffer_page() 3494 return __alloc_dummy_extent_buffer(fs_info, start, fs_info->nodesize); in alloc_dummy_extent_buffer() 3630 if (fs_info->nodesize < PAGE_SIZE) in grab_extent_buffer() 3659 if (fs_info->nodesize < PAGE_SIZE && in check_eb_alignment() 3660 offset_in_page(start) + fs_info->nodesize > PAGE_SIZE) { in check_eb_alignment() 3663 start, fs_info->nodesize); in check_eb_alignment() [all …]
|
D | disk-io.c | 79 const int first_page_part = min_t(u32, PAGE_SIZE, fs_info->nodesize); in csum_tree_block() 562 cur_bit += (fs_info->nodesize >> fs_info->sectorsize_bits) - 1; in btree_dirty_folio() 1000 fs_info->nodesize); in btrfs_add_log_tree() 2311 u64 nodesize = btrfs_super_nodesize(sb); in btrfs_validate_super() local 2365 if (!is_power_of_2(nodesize) || nodesize < sectorsize || in btrfs_validate_super() 2366 nodesize > BTRFS_MAX_METADATA_BLOCKSIZE) { in btrfs_validate_super() 2367 btrfs_err(fs_info, "invalid nodesize %llu", nodesize); in btrfs_validate_super() 2370 if (nodesize != le32_to_cpu(sb->__unused_leafsize)) { in btrfs_validate_super() 2372 le32_to_cpu(sb->__unused_leafsize), nodesize); in btrfs_validate_super() 2784 fs_info->nodesize = 4096; in btrfs_init_fs_info() [all …]
|
D | fs.h | 728 u32 nodesize; member 845 return (u64)fs_info->nodesize * BTRFS_MAX_LEVEL * 2 * num_items; in btrfs_calc_insert_metadata_size() 855 return (u64)fs_info->nodesize * BTRFS_MAX_LEVEL * num_items; in btrfs_calc_metadata_size()
|
D | delalloc-space.c | 274 qgroup_rsv_size = (u64)outstanding_extents * fs_info->nodesize; in btrfs_calculate_inode_block_rsv_size() 304 *qgroup_reserve = nr_extents * fs_info->nodesize; in calc_inode_reservations()
|
D | relocation.c | 176 blocksize = rc->extent_root->fs_info->nodesize; in mark_block_processed() 1280 blocksize = fs_info->nodesize; in replace_path() 1753 min_reserved = fs_info->nodesize * reserve_level * 2; in merge_reloc_root() 1870 rc->merging_rsv_size += fs_info->nodesize * (BTRFS_MAX_LEVEL - 1) * 2; in prepare_to_merge() 2339 num_bytes += fs_info->nodesize; in calcu_metadata_size() 2377 tmp = fs_info->nodesize * RELOCATION_RESERVED_NODES; in reserve_metadata_space() 2387 rc->block_rsv->size = tmp + fs_info->nodesize * in reserve_metadata_space() 2495 blocksize = root->fs_info->nodesize; in do_relocation() 2633 u32 blocksize = rc->extent_root->fs_info->nodesize; in tree_block_processed() 3278 block->key.objectid = rc->extent_root->fs_info->nodesize; in add_tree_block() [all …]
|
D | scrub.c | 602 const u32 sectors_per_tree = fs_info->nodesize >> fs_info->sectorsize_bits; in scrub_verify_one_metadata() 694 const u32 sectors_per_tree = fs_info->nodesize >> fs_info->sectorsize_bits; in scrub_verify_one_sector() 755 const u32 sectors_per_tree = fs_info->nodesize >> fs_info->sectorsize_bits; in scrub_verify_one_stripe() 1345 len = fs_info->nodesize; in compare_extent_item_range() 1447 *size_ret = path->nodes[0]->fs_info->nodesize; in get_extent_info() 2834 ASSERT(fs_info->nodesize <= BTRFS_STRIPE_LEN); in btrfs_scrub_dev() 2841 ASSERT(fs_info->nodesize <= in btrfs_scrub_dev()
|
D | qgroup.c | 2082 u32 nodesize = fs_info->nodesize; in qgroup_trace_extent_swap() local 2157 nodesize); in qgroup_trace_extent_swap() 2161 nodesize); in qgroup_trace_extent_swap() 2451 fs_info->nodesize); in btrfs_qgroup_trace_subtree() 3047 level_size = fs_info->nodesize; in btrfs_qgroup_inherit() 3358 num_bytes = fs_info->nodesize; in qgroup_rescan_leaf() 4048 BUG_ON(num_bytes != round_down(num_bytes, fs_info->nodesize)); in btrfs_qgroup_reserve_meta() 4111 BUG_ON(num_bytes != round_down(num_bytes, fs_info->nodesize)); in __btrfs_qgroup_free_meta()
|
D | tree-checker.c | 1254 len = eb->fs_info->nodesize; in extent_err() 1373 key->offset != fs_info->nodesize)) { in check_extent_item() 1376 key->offset, fs_info->nodesize); in check_extent_item() 1535 prev_end += fs_info->nodesize; in check_extent_item()
|
D | extent-tree.c | 122 offset = fs_info->nodesize; in btrfs_lookup_extent_info() 155 key.offset == fs_info->nodesize) in btrfs_lookup_extent_info() 1096 extent_size = fs_info->nodesize; in update_inline_extent_backref() 1153 extent_size = fs_info->nodesize; in update_inline_extent_backref() 2470 num_bytes = fs_info->nodesize; in __btrfs_mod_ref() 4770 return alloc_reserved_extent(trans, node->bytenr, fs_info->nodesize); in alloc_reserved_tree_block() 4944 u32 blocksize = fs_info->nodesize; in btrfs_alloc_tree_block() 5209 root->fs_info->nodesize, parent, in check_ref_exists() 5417 fs_info->nodesize, parent); in do_walk_down()
|
D | ctree.h | 453 return info->nodesize - sizeof(struct btrfs_header); in BTRFS_LEAF_DATA_SIZE()
|
D | root-tree.c | 513 qgroup_num_bytes = 3 * fs_info->nodesize; in btrfs_subvolume_reserve_metadata()
|
D | ctree.c | 849 blocksize = fs_info->nodesize; in btrfs_realloc_node() 1480 nread_max = node->fs_info->nodesize; in reada_for_search() 1488 blocksize = fs_info->nodesize; in reada_for_search() 3002 root_add_used(root, fs_info->nodesize); in insert_new_root() 3146 root_add_used(root, fs_info->nodesize); in split_node() 3899 root_add_used(root, fs_info->nodesize); in split_leaf()
|
D | sysfs.c | 1025 return sysfs_emit(buf, "%u\n", fs_info->super_copy->nodesize); in btrfs_nodesize_show() 1028 BTRFS_ATTR(, nodesize, btrfs_nodesize_show); 1294 BTRFS_ATTR_PTR(, nodesize),
|
D | subpage.c | 85 if (fs_info->nodesize < PAGE_SIZE) in btrfs_is_subpage()
|
D | check-integrity.c | 2740 if (!PAGE_ALIGNED(fs_info->nodesize)) { in btrfsic_mount() 2742 fs_info->nodesize, PAGE_SIZE); in btrfsic_mount() 2763 state->metablock_size = fs_info->nodesize; in btrfsic_mount()
|
D | reflink.c | 355 buf = kvmalloc(fs_info->nodesize, GFP_KERNEL); in btrfs_clone()
|