/linux-master/fs/btrfs/tests/ |
H A D | btrfs-tests.h | 34 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 D | qgroup-tests.c | 206 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 D | btrfs-tests.c | 119 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 D | extent-buffer-tests.c | 13 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 D | free-space-tree-tests.c | 425 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 D | extent-io-tests.c | 109 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 D | inode-tests.c | 218 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 D | free-space-tests.c | 1005 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 D | btree.h | 46 #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 D | extent_io.c | 895 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 D | delalloc-space.c | 268 * 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 D | disk-io.c | 88 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 D | fs.h | 181 * 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 D | relocation.c | 179 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 D | qgroup.c | 2214 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 D | scrub.c | 601 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 D | ctree.h | 454 return info->nodesize - sizeof(struct btrfs_header);
|
H A D | tree-checker.c | 1258 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 D | root-tree.c | 524 qgroup_num_bytes = 3 * fs_info->nodesize;
|
H A D | extent-tree.c | 123 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 D | sysfs.c | 1038 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 D | transaction.c | 624 qgroup_reserved = num_items * fs_info->nodesize; 650 num_bytes += fs_info->nodesize;
|
H A D | ref-verify.c | 332 be = add_block_entry(fs_info, bytenr, fs_info->nodesize, ref_root);
|
/linux-master/include/uapi/linux/ |
H A D | btrfs_tree.h | 372 /* Maximum metadata block size (nodesize) */ 694 __le32 nodesize; member in struct:btrfs_super_block
|
H A D | btrfs.h | 280 __u32 nodesize; /* out */ member in struct:btrfs_ioctl_fs_info_args
|