Searched refs:nodesize (Results 1 - 25 of 38) sorted by relevance

12

/linux-master/fs/btrfs/tests/
H A Dbtrfs-tests.h34 int btrfs_test_extent_buffer_operations(u32 sectorsize, u32 nodesize);
35 int btrfs_test_free_space_cache(u32 sectorsize, u32 nodesize);
36 int btrfs_test_extent_io(u32 sectorsize, u32 nodesize);
37 int btrfs_test_inodes(u32 sectorsize, u32 nodesize);
38 int btrfs_test_qgroups(u32 sectorsize, u32 nodesize);
39 int btrfs_test_free_space_tree(u32 sectorsize, u32 nodesize);
42 struct btrfs_fs_info *btrfs_alloc_dummy_fs_info(u32 nodesize, u32 sectorsize);
H A Dqgroup-tests.c206 u32 sectorsize, u32 nodesize)
224 ctx.bytenr = nodesize;
241 ret = insert_normal_tree_ref(root, nodesize, nodesize, 0,
257 ret = btrfs_qgroup_account_extent(&trans, nodesize, nodesize, old_roots,
269 nodesize, nodesize)) {
282 ret = remove_extent_item(root, nodesize, nodesize);
205 test_no_shared_qgroup(struct btrfs_root *root, u32 sectorsize, u32 nodesize) argument
317 test_multiple_refs(struct btrfs_root *root, u32 sectorsize, u32 nodesize) argument
471 btrfs_test_qgroups(u32 sectorsize, u32 nodesize) argument
[all...]
H A Dbtrfs-tests.c119 struct btrfs_fs_info *btrfs_alloc_dummy_fs_info(u32 nodesize, u32 sectorsize) argument
144 fs_info->nodesize = nodesize;
265 u32 sectorsize, nodesize; local
274 for (nodesize = sectorsize;
275 nodesize <= BTRFS_MAX_METADATA_BLOCKSIZE;
276 nodesize <<= 1) {
277 pr_info("BTRFS: selftest: sectorsize: %u nodesize: %u\n",
278 sectorsize, nodesize);
279 ret = btrfs_test_free_space_cache(sectorsize, nodesize);
[all...]
H A Dextent-buffer-tests.c13 static int test_btrfs_split_item(u32 sectorsize, u32 nodesize) argument
31 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize);
51 eb = alloc_dummy_extent_buffer(fs_info, nodesize);
219 int btrfs_test_extent_buffer_operations(u32 sectorsize, u32 nodesize) argument
222 return test_btrfs_split_item(sectorsize, nodesize);
H A Dfree-space-tree-tests.c425 u32 nodesize, u32 alignment)
434 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize);
456 root->node = alloc_test_extent_buffer(root->fs_info, nodesize);
464 root->alloc_bytenr += 2 * nodesize;
526 u32 nodesize, u32 alignment)
531 ret = run_test(test_func, 0, sectorsize, nodesize, alignment);
534 "%ps failed with extents, sectorsize=%u, nodesize=%u, alignment=%u",
535 test_func, sectorsize, nodesize, alignment);
539 ret = run_test(test_func, 1, sectorsize, nodesize, alignment);
542 "%ps failed with bitmaps, sectorsize=%u, nodesize
424 run_test(test_func_t test_func, int bitmaps, u32 sectorsize, u32 nodesize, u32 alignment) argument
525 run_test_both_formats(test_func_t test_func, u32 sectorsize, u32 nodesize, u32 alignment) argument
550 btrfs_test_free_space_tree(u32 sectorsize, u32 nodesize) argument
[all...]
H A Dextent-io-tests.c109 static int test_find_delalloc(u32 sectorsize, u32 nodesize) argument
127 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize);
506 static int test_eb_bitmaps(u32 sectorsize, u32 nodesize) argument
515 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize);
521 bitmap = kmalloc(nodesize, GFP_KERNEL);
528 eb = __alloc_dummy_extent_buffer(fs_info, 0, nodesize);
543 * not nodesize aligned.
545 eb = __alloc_dummy_extent_buffer(fs_info, sectorsize, nodesize);
711 static int test_eb_mem_ops(u32 sectorsize, u32 nodesize) argument
720 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsiz
811 btrfs_test_extent_io(u32 sectorsize, u32 nodesize) argument
[all...]
H A Dinode-tests.c218 static noinline int test_btrfs_get_extent(u32 sectorsize, u32 nodesize) argument
237 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize);
249 root->node = alloc_dummy_extent_buffer(fs_info, nodesize);
807 static int test_hole_first(u32 sectorsize, u32 nodesize) argument
823 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize);
835 root->node = alloc_dummy_extent_buffer(fs_info, nodesize);
905 static int test_extent_accounting(u32 sectorsize, u32 nodesize) argument
920 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize);
1092 int btrfs_test_inodes(u32 sectorsize, u32 nodesize) argument
1101 ret = test_btrfs_get_extent(sectorsize, nodesize);
[all...]
H A Dfree-space-tests.c1005 int btrfs_test_free_space_cache(u32 sectorsize, u32 nodesize) argument
1013 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize);
/linux-master/fs/nilfs2/
H A Dbtree.h46 #define NILFS_BTREE_NODE_NCHILDREN_MAX(nodesize) \
47 (((nodesize) - sizeof(struct nilfs_btree_node) - \
50 #define NILFS_BTREE_NODE_NCHILDREN_MIN(nodesize) \
51 ((NILFS_BTREE_NODE_NCHILDREN_MAX(nodesize) - 1) / 2 + 1)
/linux-master/fs/btrfs/
H A Dextent_io.c895 if (fs_info->nodesize >= PAGE_SIZE) {
1706 if (fs_info->nodesize < PAGE_SIZE) {
1764 int sectors_per_node = fs_info->nodesize >> fs_info->sectorsize_bits;
1850 if (page_to_fs_info(page)->nodesize < PAGE_SIZE)
3360 if (fs_info->nodesize >= PAGE_SIZE) {
3533 return __alloc_dummy_extent_buffer(fs_info, start, fs_info->nodesize);
3664 if (fs_info->nodesize < PAGE_SIZE)
3693 if (fs_info->nodesize < PAGE_SIZE &&
3694 offset_in_page(start) + fs_info->nodesize > PAGE_SIZE) {
3696 "tree block crosses page boundary, start %llu nodesize
[all...]
H A Ddelalloc-space.c268 * account one nodesize for each outstanding extent
272 qgroup_rsv_size = (u64)outstanding_extents * fs_info->nodesize;
302 *qgroup_reserve = nr_extents * fs_info->nodesize;
H A Ddisk-io.c88 first_page_part = fs_info->nodesize;
92 first_page_part = min_t(u32, PAGE_SIZE, fs_info->nodesize);
102 * nodesize <= PAGE_SIZE and large folio all handled by above
587 cur_bit += (fs_info->nodesize >> fs_info->sectorsize_bits) - 1;
1022 fs_info->nodesize);
2352 u64 nodesize = btrfs_super_nodesize(sb); local
2382 * Check sectorsize and nodesize first, other check will need it.
2406 if (!is_power_of_2(nodesize) || nodesize < sectorsize ||
2407 nodesize > BTRFS_MAX_METADATA_BLOCKSIZ
3200 u32 nodesize; local
[all...]
H A Dfs.h181 * sectorsize, but not to nodesize. This should be rare nowadays.
785 u32 nodesize; member in struct:btrfs_fs_info
933 return (u64)fs_info->nodesize * BTRFS_MAX_LEVEL * 2 * num_items;
943 return (u64)fs_info->nodesize * BTRFS_MAX_LEVEL * num_items;
H A Drelocation.c179 blocksize = rc->extent_root->fs_info->nodesize;
1276 blocksize = fs_info->nodesize;
1748 * Thus the needed metadata size is at most root_level * nodesize,
1752 min_reserved = fs_info->nodesize * reserve_level * 2;
1869 rc->merging_rsv_size += fs_info->nodesize * (BTRFS_MAX_LEVEL - 1) * 2;
2338 num_bytes += fs_info->nodesize;
2376 tmp = fs_info->nodesize * RELOCATION_RESERVED_NODES;
2386 rc->block_rsv->size = tmp + fs_info->nodesize *
2494 blocksize = root->fs_info->nodesize;
2633 u32 blocksize = rc->extent_root->fs_info->nodesize;
[all...]
H A Dqgroup.c2214 u32 nodesize = fs_info->nodesize; local
2289 nodesize);
2293 nodesize);
2593 fs_info->nodesize);
3144 * the full rescan, by just adding nodesize to the @parent's excl/rfer.
3192 parent->excl += fs_info->nodesize;
3193 parent->rfer += fs_info->nodesize;
3348 level_size = fs_info->nodesize;
3666 num_bytes = fs_info->nodesize;
[all...]
H A Dscrub.c601 const u32 sectors_per_tree = fs_info->nodesize >> fs_info->sectorsize_bits;
693 const u32 sectors_per_tree = fs_info->nodesize >> fs_info->sectorsize_bits;
754 const u32 sectors_per_tree = fs_info->nodesize >> fs_info->sectorsize_bits;
1344 len = fs_info->nodesize;
1450 *size_ret = path->nodes[0]->fs_info->nodesize;
2906 /* At mount time we have ensured nodesize is in the range of [4K, 64K]. */
2907 ASSERT(fs_info->nodesize <= BTRFS_STRIPE_LEN);
2911 * value (max nodesize / min sectorsize), thus nodesize should always
2914 ASSERT(fs_info->nodesize <
[all...]
H A Dctree.h454 return info->nodesize - sizeof(struct btrfs_header);
H A Dtree-checker.c1258 len = eb->fs_info->nodesize;
1378 key->offset != fs_info->nodesize)) {
1381 key->offset, fs_info->nodesize);
1543 prev_end += fs_info->nodesize;
H A Droot-tree.c524 qgroup_num_bytes = 3 * fs_info->nodesize;
H A Dextent-tree.c123 offset = fs_info->nodesize;
156 key.offset == fs_info->nodesize)
1108 extent_size = fs_info->nodesize;
1165 extent_size = fs_info->nodesize;
1756 .num_bytes = fs_info->nodesize,
2557 num_bytes = fs_info->nodesize;
4961 return alloc_reserved_extent(trans, node->bytenr, fs_info->nodesize);
5163 u32 blocksize = fs_info->nodesize;
5432 root->fs_info->nodesize, parent,
5642 fs_info->nodesize, paren
[all...]
H A Dsysfs.c1038 return sysfs_emit(buf, "%u\n", fs_info->super_copy->nodesize);
1041 BTRFS_ATTR(, nodesize, btrfs_nodesize_show);
1358 BTRFS_ATTR_PTR(, nodesize),
H A Dtransaction.c624 qgroup_reserved = num_items * fs_info->nodesize;
650 num_bytes += fs_info->nodesize;
H A Dref-verify.c332 be = add_block_entry(fs_info, bytenr, fs_info->nodesize, ref_root);
/linux-master/include/uapi/linux/
H A Dbtrfs_tree.h372 /* Maximum metadata block size (nodesize) */
694 __le32 nodesize; member in struct:btrfs_super_block
H A Dbtrfs.h280 __u32 nodesize; /* out */ member in struct:btrfs_ioctl_fs_info_args

Completed in 501 milliseconds

12