/linux-6.3-rc2/fs/btrfs/tests/ |
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 …]
|
A 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);
|
A D | btrfs-tests.c | 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() 282 nodesize); in btrfs_run_sanity_tests() 285 ret = btrfs_test_extent_io(sectorsize, nodesize); in btrfs_run_sanity_tests() 288 ret = btrfs_test_inodes(sectorsize, nodesize); in btrfs_run_sanity_tests() 291 ret = btrfs_test_qgroups(sectorsize, nodesize); in btrfs_run_sanity_tests() [all …]
|
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 …]
|
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() 215 int btrfs_test_extent_buffer_operations(u32 sectorsize, u32 nodesize) in btrfs_test_extent_buffer_operations() argument 218 return test_btrfs_split_item(sectorsize, nodesize); in btrfs_test_extent_buffer_operations()
|
A D | extent-io-tests.c | 430 static int test_eb_bitmaps(u32 sectorsize, u32 nodesize) in test_eb_bitmaps() argument 439 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_eb_bitmaps() 445 bitmap = kmalloc(nodesize, GFP_KERNEL); in test_eb_bitmaps() 452 eb = __alloc_dummy_extent_buffer(fs_info, 0, nodesize); in test_eb_bitmaps() 459 ret = __test_eb_bitmaps(bitmap, eb, nodesize); in test_eb_bitmaps() 469 eb = __alloc_dummy_extent_buffer(fs_info, sectorsize, nodesize); in test_eb_bitmaps() 476 ret = __test_eb_bitmaps(bitmap, eb, nodesize); in test_eb_bitmaps() 595 int btrfs_test_extent_io(u32 sectorsize, u32 nodesize) in btrfs_test_extent_io() argument 609 ret = test_eb_bitmaps(sectorsize, nodesize); in btrfs_test_extent_io()
|
A D | inode-tests.c | 229 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_btrfs_get_extent() 241 root->node = alloc_dummy_extent_buffer(fs_info, nodesize); in test_btrfs_get_extent() 799 static int test_hole_first(u32 sectorsize, u32 nodesize) in test_hole_first() argument 815 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_hole_first() 827 root->node = alloc_dummy_extent_buffer(fs_info, nodesize); in test_hole_first() 897 static int test_extent_accounting(u32 sectorsize, u32 nodesize) in test_extent_accounting() argument 912 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_extent_accounting() 1084 int btrfs_test_inodes(u32 sectorsize, u32 nodesize) in btrfs_test_inodes() argument 1093 ret = test_btrfs_get_extent(sectorsize, nodesize); in btrfs_test_inodes() 1096 ret = test_hole_first(sectorsize, nodesize); in btrfs_test_inodes() [all …]
|
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.3-rc2/fs/nilfs2/ |
A 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-6.3-rc2/fs/btrfs/ |
A D | extent_io.c | 711 if (fs_info->nodesize >= PAGE_SIZE) { in find_extent_buffer_readpage() 1104 if (fs_info->nodesize >= PAGE_SIZE) { in attach_extent_buffer_page() 3625 if (fs_info->nodesize >= PAGE_SIZE) { in detach_extent_buffer_page() 3948 if (fs_info->nodesize < PAGE_SIZE) in grab_extent_buffer() 3977 if (fs_info->nodesize < PAGE_SIZE && in check_eb_alignment() 3981 start, fs_info->nodesize); in check_eb_alignment() 3984 if (fs_info->nodesize >= PAGE_SIZE && in check_eb_alignment() 3988 start, fs_info->nodesize); in check_eb_alignment() 4369 if (fs_info->nodesize >= PAGE_SIZE) in clear_extent_buffer_uptodate() 4393 if (fs_info->nodesize >= PAGE_SIZE) in set_extent_buffer_uptodate() [all …]
|
A D | disk-io.c | 374 cur += fs_info->nodesize) { in csum_dirty_subpage_buffers() 380 fs_info->nodesize); in csum_dirty_subpage_buffers() 415 if (fs_info->nodesize < PAGE_SIZE) in csum_dirty_buffer() 1245 fs_info->nodesize); in btrfs_add_log_tree() 2526 u64 nodesize = btrfs_super_nodesize(sb); in btrfs_validate_super() local 2580 if (!is_power_of_2(nodesize) || nodesize < sectorsize || in btrfs_validate_super() 3002 fs_info->nodesize = 4096; in btrfs_init_fs_info() 3245 fs_info->nodesize, fs_info->sectorsize); in btrfs_check_features() 3323 u32 nodesize; in open_ctree() local 3456 fs_info->nodesize = nodesize; in open_ctree() [all …]
|
A D | delalloc-space.c | 273 qgroup_rsv_size = (u64)outstanding_extents * fs_info->nodesize; in btrfs_calculate_inode_block_rsv_size() 297 *qgroup_reserve = nr_extents * fs_info->nodesize; in calc_inode_reservations()
|
A D | fs.h | 723 u32 nodesize; member 837 return (u64)fs_info->nodesize * BTRFS_MAX_LEVEL * 2 * num_items; in btrfs_calc_insert_metadata_size() 847 return (u64)fs_info->nodesize * BTRFS_MAX_LEVEL * num_items; in btrfs_calc_metadata_size()
|
A D | relocation.c | 176 blocksize = rc->extent_root->fs_info->nodesize; in mark_block_processed() 1279 blocksize = fs_info->nodesize; in replace_path() 1752 min_reserved = fs_info->nodesize * reserve_level * 2; in merge_reloc_root() 2309 num_bytes += fs_info->nodesize; in calcu_metadata_size() 2347 tmp = fs_info->nodesize * RELOCATION_RESERVED_NODES; in reserve_metadata_space() 2357 rc->block_rsv->size = tmp + fs_info->nodesize * in reserve_metadata_space() 2465 blocksize = root->fs_info->nodesize; in do_relocation() 2603 u32 blocksize = rc->extent_root->fs_info->nodesize; in tree_block_processed() 3241 block->key.objectid = rc->extent_root->fs_info->nodesize; in add_tree_block() 3516 key.objectid + fs_info->nodesize <= in find_next_extent() [all …]
|
A D | qgroup.c | 2035 u32 nodesize = fs_info->nodesize; in qgroup_trace_extent_swap() local 2110 nodesize); in qgroup_trace_extent_swap() 2114 nodesize); in qgroup_trace_extent_swap() 2404 fs_info->nodesize); in btrfs_qgroup_trace_subtree() 2993 level_size = fs_info->nodesize; in btrfs_qgroup_inherit() 3326 num_bytes = fs_info->nodesize; in qgroup_rescan_leaf() 4008 BUG_ON(num_bytes != round_down(num_bytes, fs_info->nodesize)); in btrfs_qgroup_reserve_meta() 4071 BUG_ON(num_bytes != round_down(num_bytes, fs_info->nodesize)); in __btrfs_qgroup_free_meta()
|
A D | tree-checker.c | 1224 len = eb->fs_info->nodesize; in extent_err() 1329 key->offset != fs_info->nodesize)) { in check_extent_item() 1332 key->offset, fs_info->nodesize); in check_extent_item() 1467 prev_end += fs_info->nodesize; in check_extent_item()
|
A D | print-tree.c | 157 if (!IS_ALIGNED(offset, eb->fs_info->nodesize)) in print_extent_item()
|
A D | ctree.h | 451 return info->nodesize - sizeof(struct btrfs_header); in BTRFS_LEAF_DATA_SIZE()
|
A D | root-tree.c | 513 qgroup_num_bytes = 3 * fs_info->nodesize; in btrfs_subvolume_reserve_metadata()
|
A D | scrub.c | 2036 const int num_sectors = fs_info->nodesize >> fs_info->sectorsize_bits; in scrub_checksum_tree_block() 2736 blocksize = sctx->fs_info->nodesize; in scrub_extent() 3071 len = fs_info->nodesize; in compare_extent_item_range() 3173 *size_ret = path->nodes[0]->fs_info->nodesize; in get_extent_info() 4302 ASSERT(fs_info->nodesize <= BTRFS_STRIPE_LEN); in btrfs_scrub_dev() 4309 ASSERT(fs_info->nodesize <= in btrfs_scrub_dev()
|
A D | ctree.c | 796 blocksize = fs_info->nodesize; in btrfs_realloc_node() 1385 nread_max = node->fs_info->nodesize; in reada_for_search() 1393 blocksize = fs_info->nodesize; in reada_for_search() 2828 root_add_used(root, fs_info->nodesize); in insert_new_root() 2959 root_add_used(root, fs_info->nodesize); in split_node() 3706 root_add_used(root, fs_info->nodesize); in split_leaf()
|
A D | sysfs.c | 1018 return sysfs_emit(buf, "%u\n", fs_info->super_copy->nodesize); in btrfs_nodesize_show() 1021 BTRFS_ATTR(, nodesize, btrfs_nodesize_show); 1282 BTRFS_ATTR_PTR(, nodesize),
|
/linux-6.3-rc2/tools/testing/kunit/test_data/ |
A D | test_interrupted_tap_output.log | 14 [ 0.060000] BTRFS: selftest: sectorsize: 4096 nodesize: 4096
|
/linux-6.3-rc2/include/uapi/linux/ |
A D | btrfs_tree.h | 669 __le32 nodesize; member
|
A D | btrfs.h | 278 __u32 nodesize; /* out */ member
|