/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() 237 ret = insert_normal_tree_ref(root, nodesize, nodesize, 0, in test_no_shared_qgroup() 244 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() 264 nodesize, nodesize)) { in test_no_shared_qgroup() 269 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &old_roots, in test_no_shared_qgroup() 276 ret = remove_extent_item(root, nodesize, nodesize); in test_no_shared_qgroup() 282 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &new_roots, in test_no_shared_qgroup() 290 ret = btrfs_qgroup_account_extent(&trans, nodesize, nodesize, old_roots, in test_no_shared_qgroup() [all …]
|
D | btrfs-tests.c | 110 struct btrfs_fs_info *btrfs_alloc_dummy_fs_info(u32 nodesize, u32 sectorsize) in btrfs_alloc_dummy_fs_info() argument 135 fs_info->nodesize = nodesize; in btrfs_alloc_dummy_fs_info() 254 u32 sectorsize, nodesize; in btrfs_run_sanity_tests() local 263 for (nodesize = sectorsize; in btrfs_run_sanity_tests() 264 nodesize <= BTRFS_MAX_METADATA_BLOCKSIZE; in btrfs_run_sanity_tests() 265 nodesize <<= 1) { in btrfs_run_sanity_tests() 267 sectorsize, nodesize); in btrfs_run_sanity_tests() 268 ret = btrfs_test_free_space_cache(sectorsize, nodesize); in btrfs_run_sanity_tests() 272 nodesize); in btrfs_run_sanity_tests() 275 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 | free-space-tree-tests.c | 424 u32 nodesize, u32 alignment) in run_test() argument 433 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in run_test() 452 root->node = alloc_test_extent_buffer(root->fs_info, nodesize); in run_test() 460 root->alloc_bytenr += 2 * nodesize; in run_test() 522 u32 nodesize, u32 alignment) in run_test_both_formats() argument 527 ret = run_test(test_func, 0, sectorsize, nodesize, alignment); in run_test_both_formats() 531 test_func, sectorsize, nodesize, alignment); in run_test_both_formats() 535 ret = run_test(test_func, 1, sectorsize, nodesize, alignment); in run_test_both_formats() 539 test_func, sectorsize, nodesize, alignment); in run_test_both_formats() 546 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() 220 int btrfs_test_extent_buffer_operations(u32 sectorsize, u32 nodesize) in btrfs_test_extent_buffer_operations() argument 223 return test_btrfs_split_item(sectorsize, nodesize); in btrfs_test_extent_buffer_operations()
|
D | inode-tests.c | 216 static noinline int test_btrfs_get_extent(u32 sectorsize, u32 nodesize) in test_btrfs_get_extent() argument 240 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_btrfs_get_extent() 252 root->node = alloc_dummy_extent_buffer(fs_info, nodesize); in test_btrfs_get_extent() 822 static int test_hole_first(u32 sectorsize, u32 nodesize) in test_hole_first() argument 842 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_hole_first() 854 root->node = alloc_dummy_extent_buffer(fs_info, nodesize); in test_hole_first() 924 static int test_extent_accounting(u32 sectorsize, u32 nodesize) in test_extent_accounting() argument 939 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_extent_accounting() 1111 int btrfs_test_inodes(u32 sectorsize, u32 nodesize) in btrfs_test_inodes() argument 1120 ret = test_btrfs_get_extent(sectorsize, nodesize); in btrfs_test_inodes() [all …]
|
D | extent-io-tests.c | 379 static int test_eb_bitmaps(u32 sectorsize, u32 nodesize) in test_eb_bitmaps() argument 422 eb = __alloc_dummy_extent_buffer(fs_info, nodesize / 2, len); in test_eb_bitmaps() 546 int btrfs_test_extent_io(u32 sectorsize, u32 nodesize) in btrfs_test_extent_io() argument 560 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()
|
/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 | delalloc-space.c | 259 qgroup_rsv_size = (u64)outstanding_extents * fs_info->nodesize; in btrfs_calculate_inode_block_rsv_size() 283 *qgroup_reserve = nr_extents * fs_info->nodesize; in calc_inode_reservations()
|
D | reada.c | 338 length = fs_info->nodesize; in reada_find_extent() 341 if (ret || !bbio || length < fs_info->nodesize) in reada_find_extent() 715 dev->reada_next = re->logical + fs_info->nodesize; in reada_start_machine_dev() 887 re->logical, fs_info->nodesize, in dump_devs() 920 re->logical, fs_info->nodesize, in dump_devs()
|
D | disk-io.c | 212 const int num_pages = fs_info->nodesize >> PAGE_SHIFT; in csum_tree_block() 1271 fs_info->nodesize); in btrfs_add_log_tree() 2435 u64 nodesize = btrfs_super_nodesize(sb); in validate_super() local 2480 if (!is_power_of_2(nodesize) || nodesize < sectorsize || in validate_super() 2481 nodesize > BTRFS_MAX_METADATA_BLOCKSIZE) { in validate_super() 2482 btrfs_err(fs_info, "invalid nodesize %llu", nodesize); in validate_super() 2485 if (nodesize != le32_to_cpu(sb->__unused_leafsize)) { in validate_super() 2487 le32_to_cpu(sb->__unused_leafsize), nodesize); in validate_super() 2845 fs_info->nodesize = 4096; in btrfs_init_fs_info() 2933 u32 nodesize; in open_ctree() local [all …]
|
D | relocation.c | 164 blocksize = rc->extent_root->fs_info->nodesize; in mark_block_processed() 1256 blocksize = fs_info->nodesize; in replace_path() 1719 min_reserved = fs_info->nodesize * reserve_level * 2; in merge_reloc_root() 1841 rc->merging_rsv_size += fs_info->nodesize * (BTRFS_MAX_LEVEL - 1) * 2; in prepare_to_merge() 2157 num_bytes += fs_info->nodesize; in calcu_metadata_size() 2195 tmp = fs_info->nodesize * RELOCATION_RESERVED_NODES; in reserve_metadata_space() 2205 rc->block_rsv->size = tmp + fs_info->nodesize * in reserve_metadata_space() 2316 blocksize = root->fs_info->nodesize; in do_relocation() 2454 u32 blocksize = rc->extent_root->fs_info->nodesize; in tree_block_processed() 2906 block->key.objectid = rc->extent_root->fs_info->nodesize; in add_tree_block() [all …]
|
D | qgroup.c | 2006 u32 nodesize = fs_info->nodesize; in qgroup_trace_extent_swap() local 2093 nodesize, GFP_NOFS); in qgroup_trace_extent_swap() 2098 nodesize, GFP_NOFS); in qgroup_trace_extent_swap() 2384 fs_info->nodesize, in btrfs_qgroup_trace_subtree() 2966 level_size = fs_info->nodesize; in btrfs_qgroup_inherit() 3295 num_bytes = fs_info->nodesize; in qgroup_rescan_leaf() 3992 BUG_ON(num_bytes != round_down(num_bytes, fs_info->nodesize)); in btrfs_qgroup_reserve_meta() 4054 BUG_ON(num_bytes != round_down(num_bytes, fs_info->nodesize)); in __btrfs_qgroup_free_meta()
|
D | tree-checker.c | 1176 len = eb->fs_info->nodesize; in extent_err() 1280 key->offset != fs_info->nodesize) { in check_extent_item() 1283 key->offset, fs_info->nodesize); in check_extent_item() 1410 prev_end += fs_info->nodesize; in check_extent_item()
|
D | scrub.c | 1817 const int num_pages = sctx->fs_info->nodesize >> PAGE_SHIFT; in scrub_checksum_tree_block() 2424 blocksize = sctx->fs_info->nodesize; in scrub_extent() 2850 bytes = fs_info->nodesize; in scrub_raid56_parity() 3203 bytes = fs_info->nodesize; in scrub_stripe() 3826 if (fs_info->nodesize > BTRFS_STRIPE_LEN) { in btrfs_scrub_dev() 3834 fs_info->nodesize, in btrfs_scrub_dev() 3847 if (fs_info->nodesize > in btrfs_scrub_dev() 3856 fs_info->nodesize, in btrfs_scrub_dev()
|
D | extent-tree.c | 133 offset = fs_info->nodesize; in btrfs_lookup_extent_info() 165 key.offset == fs_info->nodesize) in btrfs_lookup_extent_info() 2460 num_bytes = fs_info->nodesize; in __btrfs_mod_ref() 4450 num_bytes = fs_info->nodesize; in alloc_reserved_tree_block() 4507 fs_info->nodesize, 1); in alloc_reserved_tree_block() 4515 fs_info->nodesize); in alloc_reserved_tree_block() 4664 u32 blocksize = fs_info->nodesize; in btrfs_alloc_tree_block() 4931 root->fs_info->nodesize, parent, in check_ref_exists() 5139 fs_info->nodesize, parent); in do_walk_down()
|
D | ctree.h | 250 __le32 nodesize; member 941 u32 nodesize; member 1244 return info->nodesize - sizeof(struct btrfs_header); in BTRFS_LEAF_DATA_SIZE() 2287 nodesize, 32); 2536 return (u64)fs_info->nodesize * BTRFS_MAX_LEVEL * 2 * num_items; in btrfs_calc_insert_metadata_size() 2546 return (u64)fs_info->nodesize * BTRFS_MAX_LEVEL * num_items; in btrfs_calc_metadata_size()
|
D | sysfs.c | 731 return scnprintf(buf, PAGE_SIZE, "%u\n", fs_info->super_copy->nodesize); in btrfs_nodesize_show() 734 BTRFS_ATTR(, nodesize, btrfs_nodesize_show); 859 BTRFS_ATTR_PTR(, nodesize),
|
D | root-tree.c | 498 qgroup_num_bytes = 3 * fs_info->nodesize; in btrfs_subvolume_reserve_metadata()
|
D | reflink.c | 345 buf = kvmalloc(fs_info->nodesize, GFP_KERNEL); in btrfs_clone()
|
D | check-integrity.c | 2777 if (!PAGE_ALIGNED(fs_info->nodesize)) { in btrfsic_mount() 2779 fs_info->nodesize, PAGE_SIZE); in btrfsic_mount() 2801 state->metablock_size = fs_info->nodesize; in btrfsic_mount()
|
D | ctree.c | 1626 blocksize = fs_info->nodesize; in btrfs_realloc_node() 2241 blocksize = fs_info->nodesize; in reada_for_search() 3457 root_add_used(root, fs_info->nodesize); in insert_new_root() 3587 root_add_used(root, fs_info->nodesize); in split_node() 4388 root_add_used(root, fs_info->nodesize); in split_leaf()
|
D | transaction.c | 597 qgroup_reserved = num_items * fs_info->nodesize; in start_transaction() 621 num_bytes += fs_info->nodesize; in start_transaction()
|
D | ref-verify.c | 329 be = add_block_entry(fs_info, bytenr, fs_info->nodesize, ref_root); in add_tree_block()
|