| /linux/fs/btrfs/tests/ |
| H A D | qgroup-tests.c | 197 u32 sectorsize, u32 nodesize) in test_no_shared_qgroup() argument 215 ctx.bytenr = nodesize; in test_no_shared_qgroup() 232 ret = insert_normal_tree_ref(root, nodesize, nodesize, 0, in test_no_shared_qgroup() 248 ret = btrfs_qgroup_account_extent(&trans, nodesize, nodesize, old_roots, in test_no_shared_qgroup() 260 nodesize, nodesize)) { in test_no_shared_qgroup() 273 ret = remove_extent_item(root, nodesize, nodesize); in test_no_shared_qgroup() 288 ret = btrfs_qgroup_account_extent(&trans, nodesize, nodesize, old_roots, in test_no_shared_qgroup() 309 u32 sectorsize, u32 nodesize) in test_multiple_refs() argument 332 ctx.bytenr = nodesize; in test_multiple_refs() 344 ret = insert_normal_tree_ref(root, nodesize, nodesize, 0, in test_multiple_refs() [all …]
|
| H A 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 140 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 …]
|
| 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 | 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 | 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/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/fs/btrfs/ |
| H A D | disk-io.c | 82 first_page_part = fs_info->nodesize; in csum_tree_block() 86 first_page_part = min_t(u32, PAGE_SIZE, fs_info->nodesize); in csum_tree_block() 176 const u32 step = min(fs_info->nodesize, PAGE_SIZE); in btrfs_repair_eb_io_failure() 548 cur_bit += (fs_info->nodesize >> fs_info->sectorsize_bits) - 1; in btree_dirty_folio() 949 fs_info->nodesize); in btrfs_add_log_tree() 2352 u64 nodesize = btrfs_super_nodesize(sb); in btrfs_validate_super() local 2406 if (!is_power_of_2(nodesize) || nodesize < sectorsize || in btrfs_validate_super() 2407 nodesize > BTRFS_MAX_METADATA_BLOCKSIZE) { in btrfs_validate_super() 2408 btrfs_err(fs_info, "invalid nodesize %llu", nodesize); in btrfs_validate_super() 2411 if (nodesize != le32_to_cpu(sb->__unused_leafsize)) { in btrfs_validate_super() [all …]
|
| H A D | relocation.c | 191 blocksize = rc->extent_root->fs_info->nodesize; in mark_block_processed() 1077 blocksize = fs_info->nodesize; in replace_path() 1564 min_reserved = fs_info->nodesize * reserve_level * 2; in merge_reloc_root() 1681 rc->merging_rsv_size += fs_info->nodesize * (BTRFS_MAX_LEVEL - 1) * 2; in prepare_to_merge() 2120 num_bytes += fs_info->nodesize; in calcu_metadata_size() 2152 u64 tmp = fs_info->nodesize * RELOCATION_RESERVED_NODES; in refill_metadata_space() 2163 rc->block_rsv->size = tmp + fs_info->nodesize * in refill_metadata_space() 2279 blocksize = root->fs_info->nodesize; in do_relocation() 2422 u32 blocksize = rc->extent_root->fs_info->nodesize; in tree_block_processed() 2565 num_bytes = fs_info->nodesize * nr_levels; in relocate_cowonly_block() [all …]
|
| H A D | qgroup.c | 2334 u32 nodesize = fs_info->nodesize; in qgroup_trace_extent_swap() local 2403 nodesize); in qgroup_trace_extent_swap() 2407 nodesize); in qgroup_trace_extent_swap() 2699 fs_info->nodesize); in btrfs_qgroup_trace_subtree() 3266 const u32 nodesize = fs_info->nodesize; in qgroup_snapshot_quick_inherit() local 3308 qgroup->rfer += nodesize; in qgroup_snapshot_quick_inherit() 3309 qgroup->rfer_cmpr += nodesize; in qgroup_snapshot_quick_inherit() 3310 qgroup->excl += nodesize; in qgroup_snapshot_quick_inherit() 3311 qgroup->excl_cmpr += nodesize; in qgroup_snapshot_quick_inherit() 3472 level_size = fs_info->nodesize; in btrfs_qgroup_inherit() [all …]
|
| H A D | fs.h | 874 u32 nodesize; member 1030 return (u64)fs_info->nodesize * BTRFS_MAX_LEVEL * 2 * num_items; in btrfs_calc_insert_metadata_size() 1040 return (u64)fs_info->nodesize * BTRFS_MAX_LEVEL * num_items; in btrfs_calc_metadata_size()
|
| H A D | extent_io.c | 3021 eb->len = fs_info->nodesize; in __alloc_extent_buffer() 3291 const u32 nodesize = fs_info->nodesize; in check_eb_alignment() local 3298 if (unlikely(nodesize < PAGE_SIZE && !IS_ALIGNED(start, nodesize))) { in check_eb_alignment() 3301 start, nodesize); in check_eb_alignment() 3304 if (unlikely(nodesize >= PAGE_SIZE && !PAGE_ALIGNED(start))) { in check_eb_alignment() 3307 start, nodesize); in check_eb_alignment() 3310 if (unlikely(!IS_ALIGNED(start, nodesize) && in check_eb_alignment() 3314 start, nodesize); in check_eb_alignment()
|
| H A D | scrub.c | 715 const u32 sectors_per_tree = fs_info->nodesize >> fs_info->sectorsize_bits; in scrub_verify_one_metadata() 802 const u32 sectors_per_tree = fs_info->nodesize >> fs_info->sectorsize_bits; in scrub_verify_one_sector() 862 const u32 sectors_per_tree = fs_info->nodesize >> fs_info->sectorsize_bits; in scrub_verify_one_stripe() 1123 i += (fs_info->nodesize >> fs_info->sectorsize_bits)) in scrub_stripe_report_errors() 1489 len = fs_info->nodesize; in compare_extent_item_range() 1595 *size_ret = path->nodes[0]->fs_info->nodesize; in get_extent_info() 3105 ASSERT(fs_info->nodesize <= BTRFS_STRIPE_LEN); in btrfs_scrub_dev() 3112 ASSERT(fs_info->nodesize <= in btrfs_scrub_dev()
|
| H A D | root-tree.c | 502 qgroup_num_bytes = 3 * fs_info->nodesize; in btrfs_subvolume_reserve_metadata()
|
| H A D | sysfs.c | 1128 return sysfs_emit(buf, "%u\n", fs_info->nodesize); in btrfs_nodesize_show() 1131 BTRFS_ATTR(, nodesize, btrfs_nodesize_show); 1551 BTRFS_ATTR_PTR(, nodesize),
|
| H A D | reflink.c | 357 buf = kvmalloc(fs_info->nodesize, GFP_KERNEL); in btrfs_clone()
|
| H A D | transaction.c | 632 qgroup_reserved = num_items * fs_info->nodesize; in start_transaction() 658 num_bytes += fs_info->nodesize; in start_transaction()
|
| H A D | ref-verify.c | 314 be = add_block_entry(fs_info, bytenr, fs_info->nodesize, ref_root); in add_tree_block()
|
| H A D | defrag.c | 344 const u32 blocksize = fs_info->nodesize; in btrfs_realloc_node()
|
| H A D | zoned.c | 1283 length = fs_info->nodesize; in calculate_alloc_pointer() 2688 min_alloc_bytes = fs_info->nodesize; in btrfs_zone_finish_endio()
|
| H A D | ioctl.c | 588 fs_info->nodesize); in create_subvol() 2660 fi_args->nodesize = fs_info->nodesize; in btrfs_ioctl_fs_info()
|
| H A D | block-group.c | 503 fs_info->nodesize : fs_info->sectorsize; in fragment_free_space() 835 fs_info->nodesize; in load_extent_tree_free()
|
| /linux/tools/testing/kunit/test_data/ |
| H A D | test_interrupted_tap_output.log | 14 [ 0.060000] BTRFS: selftest: sectorsize: 4096 nodesize: 4096
|
| /linux/include/uapi/linux/ |
| H A D | btrfs_tree.h | 379 /* Maximum metadata block size (nodesize) */ 701 __le32 nodesize; 694 __le32 nodesize; global() member
|
| H A D | btrfs.h | 280 __u32 nodesize; /* out */ member
|