| /Linux-v5.15/fs/btrfs/tests/ |
| D | qgroup-tests.c | 204 u32 sectorsize, u32 nodesize) in test_no_shared_qgroup() argument 226 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &old_roots, false); in test_no_shared_qgroup() 233 ret = insert_normal_tree_ref(root, nodesize, nodesize, 0, in test_no_shared_qgroup() 238 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &new_roots, false); in test_no_shared_qgroup() 246 ret = btrfs_qgroup_account_extent(&trans, nodesize, nodesize, old_roots, in test_no_shared_qgroup() 254 nodesize, nodesize)) { in test_no_shared_qgroup() 261 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &old_roots, false); in test_no_shared_qgroup() 268 ret = remove_extent_item(root, nodesize, nodesize); in test_no_shared_qgroup() 272 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &new_roots, false); in test_no_shared_qgroup() 280 ret = btrfs_qgroup_account_extent(&trans, nodesize, nodesize, old_roots, in test_no_shared_qgroup() [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 | btrfs-tests.c | 116 struct btrfs_fs_info *btrfs_alloc_dummy_fs_info(u32 nodesize, u32 sectorsize) in btrfs_alloc_dummy_fs_info() argument 141 fs_info->nodesize = nodesize; in btrfs_alloc_dummy_fs_info() 261 u32 sectorsize, nodesize; in btrfs_run_sanity_tests() local 270 for (nodesize = sectorsize; in btrfs_run_sanity_tests() 271 nodesize <= BTRFS_MAX_METADATA_BLOCKSIZE; in btrfs_run_sanity_tests() 272 nodesize <<= 1) { in btrfs_run_sanity_tests() 274 sectorsize, nodesize); in btrfs_run_sanity_tests() 275 ret = btrfs_test_free_space_cache(sectorsize, nodesize); in btrfs_run_sanity_tests() 279 nodesize); in btrfs_run_sanity_tests() 282 ret = btrfs_test_extent_io(sectorsize, nodesize); in btrfs_run_sanity_tests() [all …]
|
| 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-io-tests.c | 379 static int test_eb_bitmaps(u32 sectorsize, u32 nodesize) in test_eb_bitmaps() argument 388 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_eb_bitmaps() 394 bitmap = kmalloc(nodesize, GFP_KERNEL); in test_eb_bitmaps() 401 eb = __alloc_dummy_extent_buffer(fs_info, 0, nodesize); in test_eb_bitmaps() 408 ret = __test_eb_bitmaps(bitmap, eb, nodesize); in test_eb_bitmaps() 418 eb = __alloc_dummy_extent_buffer(fs_info, sectorsize, nodesize); in test_eb_bitmaps() 425 ret = __test_eb_bitmaps(bitmap, eb, nodesize); in test_eb_bitmaps() 542 int btrfs_test_extent_io(u32 sectorsize, u32 nodesize) in btrfs_test_extent_io() argument 556 ret = test_eb_bitmaps(sectorsize, nodesize); in btrfs_test_extent_io()
|
| 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 235 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_btrfs_get_extent() 247 root->node = alloc_dummy_extent_buffer(fs_info, nodesize); in test_btrfs_get_extent() 817 static int test_hole_first(u32 sectorsize, u32 nodesize) in test_hole_first() argument 833 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_hole_first() 845 root->node = alloc_dummy_extent_buffer(fs_info, nodesize); in test_hole_first() 915 static int test_extent_accounting(u32 sectorsize, u32 nodesize) in test_extent_accounting() argument 930 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_extent_accounting() 1102 int btrfs_test_inodes(u32 sectorsize, u32 nodesize) in btrfs_test_inodes() argument 1111 ret = test_btrfs_get_extent(sectorsize, nodesize); in btrfs_test_inodes() [all …]
|
| D | free-space-tests.c | 827 int btrfs_test_free_space_cache(u32 sectorsize, u32 nodesize) in btrfs_test_free_space_cache() argument 835 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in btrfs_test_free_space_cache()
|
| /Linux-v5.15/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-v5.15/fs/btrfs/ |
| D | delalloc-space.c | 261 qgroup_rsv_size = (u64)outstanding_extents * fs_info->nodesize; in btrfs_calculate_inode_block_rsv_size() 285 *qgroup_reserve = nr_extents * fs_info->nodesize; in calc_inode_reservations()
|
| D | disk-io.c | 213 const int first_page_part = min_t(u32, PAGE_SIZE, fs_info->nodesize); in csum_tree_block() 467 cur += fs_info->nodesize) { in csum_dirty_subpage_buffers() 473 fs_info->nodesize); in csum_dirty_subpage_buffers() 645 ASSERT(end == start + fs_info->nodesize - 1); in validate_subpage_buffer() 1067 cur_bit += (fs_info->nodesize >> fs_info->sectorsize_bits); in btree_set_page_dirty() 1412 fs_info->nodesize); in btrfs_add_log_tree() 2554 u64 nodesize = btrfs_super_nodesize(sb); in validate_super() local 2607 if (!is_power_of_2(nodesize) || nodesize < sectorsize || in validate_super() 2608 nodesize > BTRFS_MAX_METADATA_BLOCKSIZE) { in validate_super() 2609 btrfs_err(fs_info, "invalid nodesize %llu", nodesize); in validate_super() [all …]
|
| D | reada.c | 346 length = fs_info->nodesize; in reada_find_extent() 349 if (ret || !bbio || length < fs_info->nodesize) in reada_find_extent() 728 dev->reada_next = re->logical + fs_info->nodesize; in reada_start_machine_dev() 901 re->logical, fs_info->nodesize, in dump_devs() 934 re->logical, fs_info->nodesize, in dump_devs()
|
| D | relocation.c | 165 blocksize = rc->extent_root->fs_info->nodesize; in mark_block_processed() 1265 blocksize = fs_info->nodesize; in replace_path() 1734 min_reserved = fs_info->nodesize * reserve_level * 2; in merge_reloc_root() 1850 rc->merging_rsv_size += fs_info->nodesize * (BTRFS_MAX_LEVEL - 1) * 2; in prepare_to_merge() 2290 num_bytes += fs_info->nodesize; in calcu_metadata_size() 2328 tmp = fs_info->nodesize * RELOCATION_RESERVED_NODES; in reserve_metadata_space() 2338 rc->block_rsv->size = tmp + fs_info->nodesize * in reserve_metadata_space() 2446 blocksize = root->fs_info->nodesize; in do_relocation() 2584 u32 blocksize = rc->extent_root->fs_info->nodesize; in tree_block_processed() 3242 block->key.objectid = rc->extent_root->fs_info->nodesize; in add_tree_block() [all …]
|
| D | qgroup.c | 1944 u32 nodesize = fs_info->nodesize; in qgroup_trace_extent_swap() local 2019 nodesize, GFP_NOFS); in qgroup_trace_extent_swap() 2024 nodesize, GFP_NOFS); in qgroup_trace_extent_swap() 2290 fs_info->nodesize, in btrfs_qgroup_trace_subtree() 2870 level_size = fs_info->nodesize; in btrfs_qgroup_inherit() 3199 num_bytes = fs_info->nodesize; in qgroup_rescan_leaf() 3861 BUG_ON(num_bytes != round_down(num_bytes, fs_info->nodesize)); in btrfs_qgroup_reserve_meta() 3923 BUG_ON(num_bytes != round_down(num_bytes, fs_info->nodesize)); in __btrfs_qgroup_free_meta()
|
| D | scrub.c | 1858 const int num_sectors = fs_info->nodesize >> fs_info->sectorsize_bits; in scrub_checksum_tree_block() 2562 blocksize = sctx->fs_info->nodesize; in scrub_extent() 2996 bytes = fs_info->nodesize; in scrub_raid56_parity() 3403 bytes = fs_info->nodesize; in scrub_stripe() 4079 if (fs_info->nodesize > BTRFS_STRIPE_LEN) { in btrfs_scrub_dev() 4087 fs_info->nodesize, in btrfs_scrub_dev() 4092 if (fs_info->nodesize > in btrfs_scrub_dev() 4101 fs_info->nodesize, in btrfs_scrub_dev()
|
| D | print-tree.c | 153 if (!IS_ALIGNED(offset, eb->fs_info->nodesize)) in print_extent_item()
|
| D | root-tree.c | 496 qgroup_num_bytes = 3 * fs_info->nodesize; in btrfs_subvolume_reserve_metadata()
|
| D | tree-checker.c | 1188 len = eb->fs_info->nodesize; in extent_err() 1292 key->offset != fs_info->nodesize)) { in check_extent_item() 1295 key->offset, fs_info->nodesize); in check_extent_item()
|
| D | extent-tree.c | 135 offset = fs_info->nodesize; in btrfs_lookup_extent_info() 167 key.offset == fs_info->nodesize) in btrfs_lookup_extent_info() 2453 num_bytes = fs_info->nodesize; in __btrfs_mod_ref() 4580 num_bytes = fs_info->nodesize; in alloc_reserved_tree_block() 4635 fs_info->nodesize, 1); in alloc_reserved_tree_block() 4643 fs_info->nodesize); in alloc_reserved_tree_block() 4796 u32 blocksize = fs_info->nodesize; in btrfs_alloc_tree_block() 5063 root->fs_info->nodesize, parent, in check_ref_exists() 5267 fs_info->nodesize, parent); in do_walk_down()
|
| D | ctree.h | 246 __le32 nodesize; member 983 u32 nodesize; member 1352 return info->nodesize - sizeof(struct btrfs_header); in BTRFS_LEAF_DATA_SIZE() 2404 nodesize, 32); 2663 return (u64)fs_info->nodesize * BTRFS_MAX_LEVEL * 2 * num_items; in btrfs_calc_insert_metadata_size() 2673 return (u64)fs_info->nodesize * BTRFS_MAX_LEVEL * num_items; in btrfs_calc_metadata_size()
|
| D | sysfs.c | 822 return scnprintf(buf, PAGE_SIZE, "%u\n", fs_info->super_copy->nodesize); in btrfs_nodesize_show() 825 BTRFS_ATTR(, nodesize, btrfs_nodesize_show); 1066 BTRFS_ATTR_PTR(, nodesize),
|
| D | ctree.c | 670 blocksize = fs_info->nodesize; in btrfs_realloc_node() 1255 nread_max = node->fs_info->nodesize; in reada_for_search() 1263 blocksize = fs_info->nodesize; in reada_for_search() 2445 root_add_used(root, fs_info->nodesize); in insert_new_root() 2576 root_add_used(root, fs_info->nodesize); in split_node() 3370 root_add_used(root, fs_info->nodesize); in split_leaf()
|
| D | check-integrity.c | 2721 if (!PAGE_ALIGNED(fs_info->nodesize)) { in btrfsic_mount() 2723 fs_info->nodesize, PAGE_SIZE); in btrfsic_mount() 2744 state->metablock_size = fs_info->nodesize; in btrfsic_mount()
|
| /Linux-v5.15/tools/testing/kunit/test_data/ |
| D | test_interrupted_tap_output.log | 14 [ 0.060000] BTRFS: selftest: sectorsize: 4096 nodesize: 4096
|
| /Linux-v5.15/include/uapi/linux/ |
| D | btrfs.h | 262 __u32 nodesize; /* out */ member
|