Home
last modified time | relevance | path

Searched refs:BTRFS_STRIPE_LEN (Results 1 - 15 of 15) sorted by relevance

/kernel/linux/linux-6.6/fs/btrfs/
H A Dscrub.c47 * which is 512KiB (BTRFS_STRIPE_LEN * SCRUB_STRIPES_PER_GROUP).
103 #define SCRUB_STRIPE_PAGES (BTRFS_STRIPE_LEN / PAGE_SIZE)
106 * Represent one contiguous range with a length of BTRFS_STRIPE_LEN.
121 /* Should be BTRFS_STRIPE_LEN / sectorsize. */
257 stripe->nr_sectors = BTRFS_STRIPE_LEN >> fs_info->sectorsize_bits; in init_scrub_stripe()
275 stripe->csums = kcalloc(BTRFS_STRIPE_LEN >> fs_info->sectorsize_bits, in init_scrub_stripe()
1047 BTRFS_STRIPE_LEN, false); in scrub_stripe_read_repair_worker()
1485 cur_logical < min(stripe->logical + BTRFS_STRIPE_LEN, in fill_one_extent_info()
1565 * whose logical bytenr is not BTRFS_STRIPE_LEN aligned. in scrub_find_fill_first_stripe()
1567 stripe->logical = round_down(cur_logical - bg->start, BTRFS_STRIPE_LEN) in scrub_find_fill_first_stripe()
[all...]
H A Dvolumes.h20 #define BTRFS_STRIPE_LEN SZ_64K macro
22 #define BTRFS_STRIPE_LEN_MASK (BTRFS_STRIPE_LEN - 1)
24 static_assert(const_ilog2(BTRFS_STRIPE_LEN) == BTRFS_STRIPE_LEN_SHIFT);
H A Draid56.c534 if (size != rbio->nr_data * BTRFS_STRIPE_LEN) in rbio_is_full()
536 BUG_ON(size > rbio->nr_data * BTRFS_STRIPE_LEN); in rbio_is_full()
906 const unsigned int stripe_npages = BTRFS_STRIPE_LEN >> PAGE_SHIFT; in alloc_rbio()
909 BTRFS_STRIPE_LEN >> fs_info->sectorsize_bits; in alloc_rbio()
1096 max(BTRFS_STRIPE_LEN >> PAGE_SHIFT, 1), in rbio_add_io_sector()
1620 rbio->nr_data * BTRFS_STRIPE_LEN); in rbio_add_bio()
2769 ASSERT(IS_ALIGNED(offset_in_full_stripe, BTRFS_STRIPE_LEN)); in raid56_parity_cache_data_pages()
2772 for (int page_nr = 0; page_nr < (BTRFS_STRIPE_LEN >> PAGE_SHIFT); page_nr++) { in raid56_parity_cache_data_pages()
H A Dvolumes.c5302 /* Align to BTRFS_STRIPE_LEN */ in decide_stripe_size_regular()
5303 ctl->stripe_size = round_down(ctl->stripe_size, BTRFS_STRIPE_LEN); in decide_stripe_size_regular()
5403 map->io_align = BTRFS_STRIPE_LEN; in create_chunk()
5404 map->io_width = BTRFS_STRIPE_LEN; in create_chunk()
5610 btrfs_set_stack_chunk_stripe_len(chunk, BTRFS_STRIPE_LEN); in btrfs_chunk_alloc_add_chunk_item()
5613 btrfs_set_stack_chunk_io_align(chunk, BTRFS_STRIPE_LEN); in btrfs_chunk_alloc_add_chunk_item()
5614 btrfs_set_stack_chunk_io_width(chunk, BTRFS_STRIPE_LEN); in btrfs_chunk_alloc_add_chunk_item()
5973 stripe_nr_end = round_up(offset + length, BTRFS_STRIPE_LEN) >> in btrfs_map_discard()
6027 stripes[i].length += BTRFS_STRIPE_LEN; in btrfs_map_discard()
6203 return BTRFS_STRIPE_LEN in btrfs_max_io_len()
[all...]
H A Dsuper.c1961 min_stripe_size = rattr->dev_stripes * BTRFS_STRIPE_LEN; in btrfs_calc_avail_data_space()
1977 avail_space = rounddown(avail_space, BTRFS_STRIPE_LEN); in btrfs_calc_avail_data_space()
H A Dzoned.c747 * stripe_size is always aligned to BTRFS_STRIPE_LEN in in btrfs_check_zoned_mode()
751 if (!IS_ALIGNED(zone_size, BTRFS_STRIPE_LEN)) { in btrfs_check_zoned_mode()
754 zone_size, BTRFS_STRIPE_LEN); in btrfs_check_zoned_mode()
H A Dtree-checker.c860 if (unlikely(!is_power_of_2(stripe_len) || stripe_len != BTRFS_STRIPE_LEN)) { in btrfs_check_chunk_valid()
H A Dblock-group.c2087 io_stripe_size = BTRFS_STRIPE_LEN; in btrfs_rmap_block()
/kernel/linux/linux-5.10/fs/btrfs/tests/
H A Dextent-map-tests.c487 map->stripe_len = BTRFS_STRIPE_LEN; in test_rmap_block()
518 if (out_stripe_len != BTRFS_STRIPE_LEN) { in test_rmap_block()
/kernel/linux/linux-5.10/fs/btrfs/
H A Dvolumes.h18 #define BTRFS_STRIPE_LEN SZ_64K macro
H A Dsuper.c2104 min_stripe_size = rattr->dev_stripes * BTRFS_STRIPE_LEN; in btrfs_calc_avail_data_space()
2120 avail_space = rounddown(avail_space, BTRFS_STRIPE_LEN); in btrfs_calc_avail_data_space()
H A Dvolumes.c4970 ctl->dev_extent_min = BTRFS_STRIPE_LEN * ctl->dev_stripes; in init_alloc_chunk_ctl_policy_regular()
5112 /* Align to BTRFS_STRIPE_LEN */ in decide_stripe_size_regular()
5113 ctl->stripe_size = round_down(ctl->stripe_size, BTRFS_STRIPE_LEN); in decide_stripe_size_regular()
5178 map->stripe_len = BTRFS_STRIPE_LEN; in create_chunk()
5179 map->io_align = BTRFS_STRIPE_LEN; in create_chunk()
5180 map->io_width = BTRFS_STRIPE_LEN; in create_chunk()
H A Dscrub.c53 * Values larger than BTRFS_STRIPE_LEN are not supported.
3826 if (fs_info->nodesize > BTRFS_STRIPE_LEN) { in btrfs_scrub_dev()
3833 "scrub: size assumption nodesize <= BTRFS_STRIPE_LEN (%d <= %d) fails", in btrfs_scrub_dev()
3835 BTRFS_STRIPE_LEN); in btrfs_scrub_dev()
H A Dtree-checker.c818 if (!is_power_of_2(stripe_len) || stripe_len != BTRFS_STRIPE_LEN) { in btrfs_check_chunk_valid()
/kernel/linux/linux-6.6/fs/btrfs/tests/
H A Dextent-map-tests.c920 if (out_stripe_len != BTRFS_STRIPE_LEN) { in test_rmap_block()

Completed in 45 milliseconds