Home
last modified time | relevance | path

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

/linux/fs/btrfs/
H A Dscrub.c164 (BTRFS_STRIPE_LEN / BTRFS_MIN_BLOCKSIZE))];
222 static_assert(BTRFS_STRIPE_LEN >= PAGE_SIZE);
223 static_assert(IS_ALIGNED(BTRFS_STRIPE_LEN, PAGE_SIZE));
351 stripe->nr_sectors = BTRFS_STRIPE_LEN >> fs_info->sectorsize_bits; in init_scrub_stripe()
359 stripe->buffer = kvmalloc(BTRFS_STRIPE_LEN, GFP_NOFS); in init_scrub_stripe()
368 stripe->csums = kcalloc(BTRFS_STRIPE_LEN >> fs_info->sectorsize_bits, in init_scrub_stripe()
904 ASSERT(offset + fs_info->sectorsize <= BTRFS_STRIPE_LEN); in scrub_bio_add_sector()
928 bbio = btrfs_bio_alloc(BTRFS_STRIPE_LEN >> PAGE_SHIFT, opf, in alloc_scrub_bbio()
1175 BTRFS_STRIPE_LEN, false); in scrub_stripe_read_repair_worker()
1590 cur_logical < min(stripe->logical + BTRFS_STRIPE_LEN, in fill_one_extent_info()
[all …]
H A Dvolumes.h46 #define BTRFS_STRIPE_LEN SZ_64K macro
48 #define BTRFS_STRIPE_LEN_MASK (BTRFS_STRIPE_LEN - 1)
50 static_assert(ilog2(BTRFS_STRIPE_LEN) == BTRFS_STRIPE_LEN_SHIFT);
H A Draid56.c630 if (size != rbio->nr_data * BTRFS_STRIPE_LEN) in rbio_is_full()
632 BUG_ON(size > rbio->nr_data * BTRFS_STRIPE_LEN); in rbio_is_full()
1045 const unsigned int stripe_npages = BTRFS_STRIPE_LEN >> PAGE_SHIFT; in alloc_rbio()
1048 BTRFS_STRIPE_LEN >> fs_info->sectorsize_bits; in alloc_rbio()
1277 max(BTRFS_STRIPE_LEN >> PAGE_SHIFT, 1), in rbio_add_io_paddrs()
1823 rbio->nr_data * BTRFS_STRIPE_LEN, in rbio_add_bio()
3020 ASSERT(IS_ALIGNED(offset_in_full_stripe, BTRFS_STRIPE_LEN)); in raid56_parity_cache_data_folios()
3024 cur_off < offset_in_full_stripe + BTRFS_STRIPE_LEN; in raid56_parity_cache_data_folios()
3028 ASSERT(cur_off - offset_in_full_stripe + PAGE_SIZE <= BTRFS_STRIPE_LEN); in raid56_parity_cache_data_folios()
3034 BTRFS_STRIPE_LEN >> fs_info->sectorsize_bits); in raid56_parity_cache_data_folios()
H A Dzoned.c759 if (!IS_ALIGNED(zone_size, BTRFS_STRIPE_LEN)) { in btrfs_check_zoned_mode()
762 zone_size, BTRFS_STRIPE_LEN); in btrfs_check_zoned_mode()
1615 stripe_offset = BTRFS_STRIPE_LEN; in btrfs_load_block_group_raid0()
1645 zone_info[i].alloc_offset += BTRFS_STRIPE_LEN; in btrfs_load_block_group_raid0()
1685 zone_info[map->num_stripes - 1].alloc_offset > BTRFS_STRIPE_LEN)) { in btrfs_load_block_group_raid0()
1760 stripe_offset = BTRFS_STRIPE_LEN; in btrfs_load_block_group_raid10()
1787 raid0_allocs[idx] += BTRFS_STRIPE_LEN; in btrfs_load_block_group_raid10()
1835 zone_info[map->num_stripes - 1].alloc_offset > BTRFS_STRIPE_LEN)) { in btrfs_load_block_group_raid10()
H A Dvolumes.c5579 if (avail < BTRFS_STRIPE_LEN) in alloc_virtual_chunk()
5936 ctl->stripe_size = round_down(ctl->stripe_size, BTRFS_STRIPE_LEN); in decide_stripe_size_regular()
6311 btrfs_set_stack_chunk_stripe_len(chunk, BTRFS_STRIPE_LEN); in btrfs_chunk_alloc_add_chunk_item()
6314 btrfs_set_stack_chunk_io_align(chunk, BTRFS_STRIPE_LEN); in btrfs_chunk_alloc_add_chunk_item()
6315 btrfs_set_stack_chunk_io_width(chunk, BTRFS_STRIPE_LEN); in btrfs_chunk_alloc_add_chunk_item()
6755 stripe_nr_end = round_up(offset + length, BTRFS_STRIPE_LEN) >> in btrfs_map_discard()
6809 stripes[i].length += BTRFS_STRIPE_LEN; in btrfs_map_discard()
6988 return BTRFS_STRIPE_LEN - io_geom->stripe_offset; in btrfs_max_io_len()
8974 logical < stripe_start + BTRFS_STRIPE_LEN) in map_raid56_repair_block()
H A Dsuper.c1647 min_stripe_size = rattr->dev_stripes * BTRFS_STRIPE_LEN; in btrfs_calc_avail_data_space()
1663 avail_space = rounddown(avail_space, BTRFS_STRIPE_LEN); in btrfs_calc_avail_data_space()
H A Dtree-checker.c1007 if (unlikely(!is_power_of_2(stripe_len) || stripe_len != BTRFS_STRIPE_LEN)) { in btrfs_check_chunk_valid()
H A Dblock-group.c2290 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()