| /linux-6.15/fs/btrfs/tests/ |
| H A D | qgroup-tests.c | 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() 353 ret = insert_normal_tree_ref(root, nodesize, nodesize, 0, in test_multiple_refs() 377 nodesize, nodesize)) { in test_multiple_refs() 390 ret = add_tree_ref(root, nodesize, nodesize, 0, in test_multiple_refs() 414 nodesize, 0)) { in test_multiple_refs() 420 nodesize, 0)) { in test_multiple_refs() 433 ret = remove_extent_ref(root, nodesize, nodesize, 0, in test_multiple_refs() [all …]
|
| H A D | btrfs-tests.h | 39 int btrfs_test_extent_buffer_operations(u32 sectorsize, u32 nodesize); 40 int btrfs_test_free_space_cache(u32 sectorsize, u32 nodesize); 41 int btrfs_test_extent_io(u32 sectorsize, u32 nodesize); 42 int btrfs_test_inodes(u32 sectorsize, u32 nodesize); 43 int btrfs_test_qgroups(u32 sectorsize, u32 nodesize); 44 int btrfs_test_free_space_tree(u32 sectorsize, u32 nodesize); 45 int btrfs_test_raid_stripe_tree(u32 sectorsize, u32 nodesize); 47 int btrfs_test_delayed_refs(u32 sectorsize, u32 nodesize); 49 struct btrfs_fs_info *btrfs_alloc_dummy_fs_info(u32 nodesize, u32 sectorsize);
|
| H A D | btrfs-tests.c | 143 fs_info->nodesize = nodesize; in btrfs_alloc_dummy_fs_info() 277 u32 sectorsize, nodesize; in btrfs_run_sanity_tests() local 286 for (nodesize = sectorsize; in btrfs_run_sanity_tests() 287 nodesize <= BTRFS_MAX_METADATA_BLOCKSIZE; in btrfs_run_sanity_tests() 288 nodesize <<= 1) { in btrfs_run_sanity_tests() 290 sectorsize, nodesize); in btrfs_run_sanity_tests() 295 nodesize); in btrfs_run_sanity_tests() 298 ret = btrfs_test_extent_io(sectorsize, nodesize); in btrfs_run_sanity_tests() 301 ret = btrfs_test_inodes(sectorsize, nodesize); in btrfs_run_sanity_tests() 304 ret = btrfs_test_qgroups(sectorsize, nodesize); in btrfs_run_sanity_tests() [all …]
|
| H A 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() 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 577 ret = run_test_both_formats(tests[i], sectorsize, nodesize, in btrfs_test_free_space_tree() [all …]
|
| H A 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()
|
| H A 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 521 bitmap = kmalloc(nodesize, GFP_KERNEL); in test_eb_bitmaps() 711 static int test_eb_mem_ops(u32 sectorsize, u32 nodesize) in test_eb_mem_ops() argument 726 memory = kvzalloc(nodesize, GFP_KERNEL); in test_eb_mem_ops() 779 if (nodesize > PAGE_SIZE) { in test_eb_mem_ops() 811 int btrfs_test_extent_io(u32 sectorsize, u32 nodesize) in btrfs_test_extent_io() argument 817 ret = test_find_delalloc(sectorsize, nodesize); in btrfs_test_extent_io() 825 ret = test_eb_bitmaps(sectorsize, nodesize); in btrfs_test_extent_io() [all …]
|
| H A D | delayed-refs-tests.c | 181 .num_bytes = fs_info->nodesize, in simple_test() 241 .num_bytes = fs_info->nodesize, in simple_tests() 247 .num_bytes = fs_info->nodesize, in simple_tests() 349 .num_bytes = fs_info->nodesize, in merge_tests() 353 .num_bytes = fs_info->nodesize, in merge_tests() 359 .num_bytes = fs_info->nodesize, in merge_tests() 709 ref.parent = FAKE_PARENT + (i * fs_info->nodesize); in merge_tests() 727 ref.parent = FAKE_PARENT + (i * fs_info->nodesize); in merge_tests() 790 .num_bytes = fs_info->nodesize, in select_delayed_refs_test() 794 .num_bytes = fs_info->nodesize, in select_delayed_refs_test() [all …]
|
| H A D | inode-tests.c | 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() 795 static int test_hole_first(u32 sectorsize, u32 nodesize) in test_hole_first() argument 811 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_hole_first() 823 root->node = alloc_dummy_extent_buffer(fs_info, nodesize); in test_hole_first() 893 static int test_extent_accounting(u32 sectorsize, u32 nodesize) in test_extent_accounting() argument 908 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_extent_accounting() 1080 int btrfs_test_inodes(u32 sectorsize, u32 nodesize) in btrfs_test_inodes() argument 1089 ret = test_btrfs_get_extent(sectorsize, nodesize); in btrfs_test_inodes() 1092 ret = test_hole_first(sectorsize, nodesize); in btrfs_test_inodes() [all …]
|
| H A D | raid-stripe-tree-tests.c | 1084 static int run_test(test_func_t test, u32 sectorsize, u32 nodesize) in run_test() argument 1091 fs_info = btrfs_alloc_dummy_fs_info(sectorsize, nodesize); in run_test() 1112 root->node = alloc_test_extent_buffer(root->fs_info, nodesize); in run_test() 1120 root->alloc_bytenr += 2 * nodesize; in run_test() 1146 int btrfs_test_raid_stripe_tree(u32 sectorsize, u32 nodesize) in btrfs_test_raid_stripe_tree() argument 1152 ret = run_test(tests[i], sectorsize, nodesize); in btrfs_test_raid_stripe_tree()
|
| H A 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()
|
| /linux-6.15/fs/nilfs2/ |
| H A D | btree.h | 47 #define NILFS_BTREE_NODE_NCHILDREN_MAX(nodesize) \ argument 48 (((nodesize) - sizeof(struct nilfs_btree_node) - \ 51 #define NILFS_BTREE_NODE_NCHILDREN_MIN(nodesize) \ argument 52 ((NILFS_BTREE_NODE_NCHILDREN_MAX(nodesize) - 1) / 2 + 1)
|
| /linux-6.15/fs/btrfs/ |
| H A D | delalloc-space.c | 272 qgroup_rsv_size = (u64)outstanding_extents * fs_info->nodesize; in btrfs_calculate_inode_block_rsv_size() 302 *qgroup_reserve = nr_extents * fs_info->nodesize; in calc_inode_reservations()
|
| H A D | disk-io.c | 88 first_page_part = fs_info->nodesize; in csum_tree_block() 1010 fs_info->nodesize); in btrfs_add_log_tree() 2404 u64 nodesize = btrfs_super_nodesize(sb); in btrfs_validate_super() local 2472 if (!is_power_of_2(nodesize) || nodesize < sectorsize || in btrfs_validate_super() 2473 nodesize > BTRFS_MAX_METADATA_BLOCKSIZE) { in btrfs_validate_super() 2893 fs_info->nodesize = 4096; in btrfs_init_fs_info() 3205 fs_info->nodesize, fs_info->sectorsize); in btrfs_check_features() 3282 u32 nodesize; in open_ctree() local 3388 nodesize = btrfs_super_nodesize(disk_super); in open_ctree() 3394 fs_info->nodesize = nodesize; in open_ctree() [all …]
|
| H A D | fs.h | 813 u32 nodesize; member 963 return (u64)fs_info->nodesize * BTRFS_MAX_LEVEL * 2 * num_items; in btrfs_calc_insert_metadata_size() 973 return (u64)fs_info->nodesize * BTRFS_MAX_LEVEL * num_items; in btrfs_calc_metadata_size()
|
| H A D | relocation.c | 180 blocksize = rc->extent_root->fs_info->nodesize; in mark_block_processed() 1063 blocksize = fs_info->nodesize; in replace_path() 1550 min_reserved = fs_info->nodesize * reserve_level * 2; in merge_reloc_root() 2107 num_bytes += fs_info->nodesize; in calcu_metadata_size() 2139 u64 tmp = fs_info->nodesize * RELOCATION_RESERVED_NODES; in refill_metadata_space() 2150 rc->block_rsv->size = tmp + fs_info->nodesize * in refill_metadata_space() 2266 blocksize = root->fs_info->nodesize; in do_relocation() 2409 u32 blocksize = rc->extent_root->fs_info->nodesize; in tree_block_processed() 2552 num_bytes = fs_info->nodesize * nr_levels; in relocate_cowonly_block() 3432 key.objectid + fs_info->nodesize <= in find_next_extent() [all …]
|
| H A D | subpage.h | 85 return fs_info->nodesize < PAGE_SIZE; in btrfs_meta_is_subpage()
|
| H A D | qgroup.c | 2323 u32 nodesize = fs_info->nodesize; in qgroup_trace_extent_swap() local 2398 nodesize); in qgroup_trace_extent_swap() 2402 nodesize); in qgroup_trace_extent_swap() 2701 fs_info->nodesize); in btrfs_qgroup_trace_subtree() 3304 parent->excl += fs_info->nodesize; in qgroup_snapshot_quick_inherit() 3305 parent->rfer += fs_info->nodesize; in qgroup_snapshot_quick_inherit() 3459 level_size = fs_info->nodesize; in btrfs_qgroup_inherit() 3777 num_bytes = fs_info->nodesize; in qgroup_rescan_leaf() 4474 BUG_ON(num_bytes != round_down(num_bytes, fs_info->nodesize)); in btrfs_qgroup_reserve_meta() 4541 BUG_ON(num_bytes != round_down(num_bytes, fs_info->nodesize)); in __btrfs_qgroup_free_meta()
|
| H A D | extent_io.c | 2026 int sectors_per_node = fs_info->nodesize >> fs_info->sectorsize_bits; in submit_eb_subpage() 2851 eb->len = fs_info->nodesize; in __alloc_extent_buffer() 3103 if (fs_info->nodesize < PAGE_SIZE && in check_eb_alignment() 3104 offset_in_page(start) + fs_info->nodesize > PAGE_SIZE) { in check_eb_alignment() 3107 start, fs_info->nodesize); in check_eb_alignment() 3110 if (fs_info->nodesize >= PAGE_SIZE && in check_eb_alignment() 3114 start, fs_info->nodesize); in check_eb_alignment() 3117 if (!IS_ALIGNED(start, fs_info->nodesize) && in check_eb_alignment() 3121 start, fs_info->nodesize); in check_eb_alignment() 4295 PAGE_SIZE / fs_info->nodesize)); in get_next_extent_buffer()
|
| H A D | scrub.c | 601 const u32 sectors_per_tree = fs_info->nodesize >> fs_info->sectorsize_bits; in scrub_verify_one_metadata() 693 const u32 sectors_per_tree = fs_info->nodesize >> fs_info->sectorsize_bits; in scrub_verify_one_sector() 754 const u32 sectors_per_tree = fs_info->nodesize >> fs_info->sectorsize_bits; in scrub_verify_one_stripe() 1344 len = fs_info->nodesize; in compare_extent_item_range() 1450 *size_ret = path->nodes[0]->fs_info->nodesize; in get_extent_info() 2924 ASSERT(fs_info->nodesize <= BTRFS_STRIPE_LEN); in btrfs_scrub_dev() 2931 ASSERT(fs_info->nodesize <= in btrfs_scrub_dev()
|
| H A D | tree-checker.c | 1289 len = eb->fs_info->nodesize; in extent_err() 1422 key->offset != fs_info->nodesize)) { in check_extent_item() 1425 key->offset, fs_info->nodesize); in check_extent_item() 1614 prev_end += fs_info->nodesize; in check_extent_item()
|
| H A D | extent-tree.c | 115 offset = fs_info->nodesize; in btrfs_lookup_extent_info() 143 key.offset == fs_info->nodesize) in btrfs_lookup_extent_info() 1106 extent_size = fs_info->nodesize; in update_inline_extent_backref() 1163 extent_size = fs_info->nodesize; in update_inline_extent_backref() 1735 .num_bytes = fs_info->nodesize, in run_delayed_tree_ref() 2521 ref.num_bytes = fs_info->nodesize; in __btrfs_mod_ref() 4908 return alloc_reserved_extent(trans, node->bytenr, fs_info->nodesize); in alloc_reserved_tree_block() 5109 u32 blocksize = fs_info->nodesize; in btrfs_alloc_tree_block() 5480 root->fs_info->nodesize, parent, in check_ref_exists() 5583 .num_bytes = root->fs_info->nodesize, in maybe_drop_reference()
|
| H A D | ctree.h | 490 return info->nodesize - sizeof(struct btrfs_header); in BTRFS_LEAF_DATA_SIZE()
|
| H A D | root-tree.c | 521 qgroup_num_bytes = 3 * fs_info->nodesize; in btrfs_subvolume_reserve_metadata()
|
| /linux-6.15/tools/testing/kunit/test_data/ |
| H A D | test_interrupted_tap_output.log | 14 [ 0.060000] BTRFS: selftest: sectorsize: 4096 nodesize: 4096
|
| /linux-6.15/include/uapi/linux/ |
| H A D | btrfs_tree.h | 694 __le32 nodesize; member
|