Home
last modified time | relevance | path

Searched refs:BTRFS_STRIPE_LEN (Results 1 – 8 of 8) sorted by relevance

/linux/fs/btrfs/
H A Dscrub.c132 #define SCRUB_STRIPE_MAX_FOLIOS (BTRFS_STRIPE_LEN / PAGE_SIZE)
172 (BTRFS_STRIPE_LEN / BTRFS_MIN_BLOCKSIZE))];
362 stripe->nr_sectors = BTRFS_STRIPE_LEN >> fs_info->sectorsize_bits; in init_scrub_stripe()
370 ASSERT(BTRFS_STRIPE_LEN >> min_folio_shift <= SCRUB_STRIPE_MAX_FOLIOS); in init_scrub_stripe()
371 ret = btrfs_alloc_folio_array(BTRFS_STRIPE_LEN >> min_folio_shift, in init_scrub_stripe()
381 stripe->csums = kcalloc(BTRFS_STRIPE_LEN >> fs_info->sectorsize_bits, in init_scrub_stripe()
1197 BTRFS_STRIPE_LEN, false); in scrub_stripe_read_repair_worker()
1632 cur_logical < min(stripe->logical + BTRFS_STRIPE_LEN, in fill_one_extent_info()
1713 stripe->logical = round_down(cur_logical - bg->start, BTRFS_STRIPE_LEN) + in scrub_find_fill_first_stripe()
1719 stripe_end = stripe->logical + BTRFS_STRIPE_LEN - 1; in scrub_find_fill_first_stripe()
[all …]
H A Dvolumes.h45 #define BTRFS_STRIPE_LEN SZ_64K macro
47 #define BTRFS_STRIPE_LEN_MASK (BTRFS_STRIPE_LEN - 1)
49 static_assert(ilog2(BTRFS_STRIPE_LEN) == BTRFS_STRIPE_LEN_SHIFT);
H A Draid56.c650 if (size != rbio->nr_data * BTRFS_STRIPE_LEN) in rbio_is_full()
652 BUG_ON(size > rbio->nr_data * BTRFS_STRIPE_LEN); in rbio_is_full()
1065 const unsigned int stripe_npages = BTRFS_STRIPE_LEN >> PAGE_SHIFT; in alloc_rbio()
1068 BTRFS_STRIPE_LEN >> fs_info->sectorsize_bits; in alloc_rbio()
1297 max(BTRFS_STRIPE_LEN >> PAGE_SHIFT, 1), in rbio_add_io_paddrs()
1845 rbio->nr_data * BTRFS_STRIPE_LEN, in rbio_add_bio()
3045 ASSERT(IS_ALIGNED(offset_in_full_stripe, BTRFS_STRIPE_LEN)); in raid56_parity_cache_data_folios()
3049 cur_off < offset_in_full_stripe + BTRFS_STRIPE_LEN; in raid56_parity_cache_data_folios()
3067 BTRFS_STRIPE_LEN >> fs_info->sectorsize_bits); in raid56_parity_cache_data_folios()
H A Dzoned.c743 if (!IS_ALIGNED(zone_size, BTRFS_STRIPE_LEN)) { in btrfs_check_zoned_mode()
746 zone_size, BTRFS_STRIPE_LEN); in btrfs_check_zoned_mode()
1599 stripe_offset = BTRFS_STRIPE_LEN; in btrfs_load_block_group_raid0()
1629 zone_info[i].alloc_offset += BTRFS_STRIPE_LEN; in btrfs_load_block_group_raid0()
1669 zone_info[map->num_stripes - 1].alloc_offset > BTRFS_STRIPE_LEN)) { in btrfs_load_block_group_raid0()
1745 stripe_offset = BTRFS_STRIPE_LEN; in btrfs_load_block_group_raid10()
1772 raid0_allocs[idx] += BTRFS_STRIPE_LEN; in btrfs_load_block_group_raid10()
1820 zone_info[map->num_stripes - 1].alloc_offset > BTRFS_STRIPE_LEN)) { in btrfs_load_block_group_raid10()
H A Dsuper.c1653 min_stripe_size = rattr->dev_stripes * BTRFS_STRIPE_LEN; in btrfs_calc_avail_data_space()
1669 avail_space = rounddown(avail_space, BTRFS_STRIPE_LEN); in btrfs_calc_avail_data_space()
H A Dtree-checker.c939 if (unlikely(!is_power_of_2(stripe_len) || stripe_len != BTRFS_STRIPE_LEN)) { in btrfs_check_chunk_valid()
H A Dblock-group.c2218 io_stripe_size = BTRFS_STRIPE_LEN; in btrfs_rmap_block()
/linux/fs/btrfs/tests/
H A Dextent-map-tests.c1063 if (out_stripe_len != BTRFS_STRIPE_LEN) { in test_rmap_block()