Home
last modified time | relevance | path

Searched refs:nodesize (Results 1 – 25 of 37) sorted by relevance

12

/linux-6.1.9/fs/btrfs/tests/
Dqgroup-tests.c204 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()
232 ret = insert_normal_tree_ref(root, nodesize, nodesize, 0, in test_no_shared_qgroup()
239 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()
258 nodesize, nodesize)) { in test_no_shared_qgroup()
263 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &old_roots, false); in test_no_shared_qgroup()
269 ret = remove_extent_item(root, nodesize, nodesize); in test_no_shared_qgroup()
275 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &new_roots, false); in test_no_shared_qgroup()
282 ret = btrfs_qgroup_account_extent(&trans, nodesize, nodesize, old_roots, in test_no_shared_qgroup()
[all …]
Dbtrfs-tests.h33 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);
Dbtrfs-tests.c117 struct btrfs_fs_info *btrfs_alloc_dummy_fs_info(u32 nodesize, u32 sectorsize) in btrfs_alloc_dummy_fs_info() argument
142 fs_info->nodesize = nodesize; in btrfs_alloc_dummy_fs_info()
263 u32 sectorsize, nodesize; in btrfs_run_sanity_tests() local
272 for (nodesize = sectorsize; in btrfs_run_sanity_tests()
273 nodesize <= BTRFS_MAX_METADATA_BLOCKSIZE; in btrfs_run_sanity_tests()
274 nodesize <<= 1) { in btrfs_run_sanity_tests()
276 sectorsize, nodesize); in btrfs_run_sanity_tests()
277 ret = btrfs_test_free_space_cache(sectorsize, nodesize); in btrfs_run_sanity_tests()
281 nodesize); in btrfs_run_sanity_tests()
284 ret = btrfs_test_extent_io(sectorsize, nodesize); in btrfs_run_sanity_tests()
[all …]
Dfree-space-tree-tests.c424 u32 nodesize, u32 alignment) in run_test() argument
433 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in run_test()
455 root->node = alloc_test_extent_buffer(root->fs_info, nodesize); in run_test()
463 root->alloc_bytenr += 2 * nodesize; in run_test()
525 u32 nodesize, u32 alignment) in run_test_both_formats() argument
530 ret = run_test(test_func, 0, sectorsize, nodesize, alignment); in run_test_both_formats()
534 test_func, sectorsize, nodesize, alignment); in run_test_both_formats()
538 ret = run_test(test_func, 1, sectorsize, nodesize, alignment); in run_test_both_formats()
542 test_func, sectorsize, nodesize, alignment); in run_test_both_formats()
549 int btrfs_test_free_space_tree(u32 sectorsize, u32 nodesize) in btrfs_test_free_space_tree() argument
[all …]
Dextent-buffer-tests.c12 static int test_btrfs_split_item(u32 sectorsize, u32 nodesize) in test_btrfs_split_item() argument
30 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in test_btrfs_split_item()
50 eb = alloc_dummy_extent_buffer(fs_info, nodesize); in test_btrfs_split_item()
214 int btrfs_test_extent_buffer_operations(u32 sectorsize, u32 nodesize) in btrfs_test_extent_buffer_operations() argument
217 return test_btrfs_split_item(sectorsize, nodesize); in btrfs_test_extent_buffer_operations()
Dextent-io-tests.c430 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()
Dinode-tests.c216 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 …]
Dfree-space-tests.c1005 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.1.9/fs/nilfs2/
Dbtree.h46 #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.1.9/fs/btrfs/
Dextent_io.c1150 if (fs_info->nodesize >= PAGE_SIZE) { in find_extent_buffer_readpage()
1649 if (fs_info->nodesize >= PAGE_SIZE) { in attach_extent_buffer_page()
2429 if (!ret || fs_info->nodesize < PAGE_SIZE) in lock_extent_buffer_for_io()
2564 ASSERT(fs_info->nodesize < PAGE_SIZE); in end_bio_subpage_eb_writepage()
2573 ASSERT(IS_ALIGNED(bvec->bv_len, fs_info->nodesize)); in end_bio_subpage_eb_writepage()
2791 int sectors_per_node = fs_info->nodesize >> fs_info->sectorsize_bits; in submit_eb_subpage()
2893 if (btrfs_sb(page->mapping->host->i_sb)->nodesize < PAGE_SIZE) in submit_eb_page()
4190 if (fs_info->nodesize >= PAGE_SIZE) { in detach_extent_buffer_page()
4379 return __alloc_dummy_extent_buffer(fs_info, start, fs_info->nodesize); in alloc_dummy_extent_buffer()
4515 if (fs_info->nodesize < PAGE_SIZE) in grab_extent_buffer()
[all …]
Ddisk-io.c96 const int first_page_part = min_t(u32, PAGE_SIZE, fs_info->nodesize); in csum_tree_block()
368 cur += fs_info->nodesize) { in csum_dirty_subpage_buffers()
374 fs_info->nodesize); in csum_dirty_subpage_buffers()
409 if (fs_info->nodesize < PAGE_SIZE) in csum_dirty_buffer()
548 ASSERT(end == start + fs_info->nodesize - 1); in validate_subpage_buffer()
596 if (btrfs_sb(page->mapping->host->i_sb)->nodesize < PAGE_SIZE) in btrfs_validate_metadata_buffer()
899 cur_bit += (fs_info->nodesize >> fs_info->sectorsize_bits); in btree_dirty_folio()
1344 fs_info->nodesize); in btrfs_add_log_tree()
2622 u64 nodesize = btrfs_super_nodesize(sb); in btrfs_validate_super() local
2676 if (!is_power_of_2(nodesize) || nodesize < sectorsize || in btrfs_validate_super()
[all …]
Ddelalloc-space.c271 qgroup_rsv_size = (u64)outstanding_extents * fs_info->nodesize; in btrfs_calculate_inode_block_rsv_size()
295 *qgroup_reserve = nr_extents * fs_info->nodesize; in calc_inode_reservations()
Drelocation.c167 blocksize = rc->extent_root->fs_info->nodesize; in mark_block_processed()
1267 blocksize = fs_info->nodesize; in replace_path()
1738 min_reserved = fs_info->nodesize * reserve_level * 2; in merge_reloc_root()
1855 rc->merging_rsv_size += fs_info->nodesize * (BTRFS_MAX_LEVEL - 1) * 2; in prepare_to_merge()
2295 num_bytes += fs_info->nodesize; in calcu_metadata_size()
2333 tmp = fs_info->nodesize * RELOCATION_RESERVED_NODES; in reserve_metadata_space()
2343 rc->block_rsv->size = tmp + fs_info->nodesize * in reserve_metadata_space()
2451 blocksize = root->fs_info->nodesize; in do_relocation()
2589 u32 blocksize = rc->extent_root->fs_info->nodesize; in tree_block_processed()
3216 block->key.objectid = rc->extent_root->fs_info->nodesize; in add_tree_block()
[all …]
Dqgroup.c2030 u32 nodesize = fs_info->nodesize; in qgroup_trace_extent_swap() local
2105 nodesize, GFP_NOFS); in qgroup_trace_extent_swap()
2110 nodesize, GFP_NOFS); in qgroup_trace_extent_swap()
2394 fs_info->nodesize, in btrfs_qgroup_trace_subtree()
2977 level_size = fs_info->nodesize; in btrfs_qgroup_inherit()
3309 num_bytes = fs_info->nodesize; in qgroup_rescan_leaf()
3989 BUG_ON(num_bytes != round_down(num_bytes, fs_info->nodesize)); in btrfs_qgroup_reserve_meta()
4052 BUG_ON(num_bytes != round_down(num_bytes, fs_info->nodesize)); in __btrfs_qgroup_free_meta()
Dtree-checker.c1220 len = eb->fs_info->nodesize; in extent_err()
1325 key->offset != fs_info->nodesize)) { in check_extent_item()
1328 key->offset, fs_info->nodesize); in check_extent_item()
1463 prev_end += fs_info->nodesize; in check_extent_item()
Dprint-tree.c154 if (!IS_ALIGNED(offset, eb->fs_info->nodesize)) in print_extent_item()
Droot-tree.c509 qgroup_num_bytes = 3 * fs_info->nodesize; in btrfs_subvolume_reserve_metadata()
Dctree.h265 __le32 nodesize; member
1002 u32 nodesize; member
1119 return (u64)fs_info->nodesize * BTRFS_MAX_LEVEL * 2 * num_items; in btrfs_calc_insert_metadata_size()
1129 return (u64)fs_info->nodesize * BTRFS_MAX_LEVEL * num_items; in btrfs_calc_metadata_size()
1563 return info->nodesize - sizeof(struct btrfs_header); in BTRFS_LEAF_DATA_SIZE()
2629 nodesize, 32);
Dctree.c688 blocksize = fs_info->nodesize; in btrfs_realloc_node()
1279 nread_max = node->fs_info->nodesize; in reada_for_search()
1287 blocksize = fs_info->nodesize; in reada_for_search()
2717 root_add_used(root, fs_info->nodesize); in insert_new_root()
2848 root_add_used(root, fs_info->nodesize); in split_node()
3615 root_add_used(root, fs_info->nodesize); in split_leaf()
Dscrub.c2019 const int num_sectors = fs_info->nodesize >> fs_info->sectorsize_bits; in scrub_checksum_tree_block()
2688 blocksize = sctx->fs_info->nodesize; in scrub_extent()
3023 len = fs_info->nodesize; in compare_extent_item_range()
3125 *size_ret = path->nodes[0]->fs_info->nodesize; in get_extent_info()
4254 ASSERT(fs_info->nodesize <= BTRFS_STRIPE_LEN); in btrfs_scrub_dev()
4261 ASSERT(fs_info->nodesize <= in btrfs_scrub_dev()
Dsysfs.c974 return sysfs_emit(buf, "%u\n", fs_info->super_copy->nodesize); in btrfs_nodesize_show()
977 BTRFS_ATTR(, nodesize, btrfs_nodesize_show);
1238 BTRFS_ATTR_PTR(, nodesize),
Dextent-tree.c137 offset = fs_info->nodesize; in btrfs_lookup_extent_info()
170 key.offset == fs_info->nodesize) in btrfs_lookup_extent_info()
2446 num_bytes = fs_info->nodesize; in __btrfs_mod_ref()
4791 return alloc_reserved_extent(trans, node->bytenr, fs_info->nodesize); in alloc_reserved_tree_block()
4963 u32 blocksize = fs_info->nodesize; in btrfs_alloc_tree_block()
5229 root->fs_info->nodesize, parent, in check_ref_exists()
5433 fs_info->nodesize, parent); in do_walk_down()
Dsubpage.c84 if (fs_info->nodesize < PAGE_SIZE) in btrfs_is_subpage()
/linux-6.1.9/tools/testing/kunit/test_data/
Dtest_interrupted_tap_output.log14 [ 0.060000] BTRFS: selftest: sectorsize: 4096 nodesize: 4096
/linux-6.1.9/include/uapi/linux/
Dbtrfs.h262 __u32 nodesize; /* out */ member

12