Searched refs:stripe_index (Results 1 – 5 of 5) sorted by relevance
1022 int stripe_index = stripe->mirror_num - 1; in scrub_stripe_report_errors() local1036 physical = bioc->stripes[stripe_index].physical; in scrub_stripe_report_errors()1037 dev = bioc->stripes[stripe_index].dev; in scrub_stripe_report_errors()1438 u32 stripe_index; in get_raid56_logic_offset() local1449 stripe_index = rot % map->num_stripes; in get_raid56_logic_offset()1450 if (stripe_index == num) in get_raid56_logic_offset()1452 if (stripe_index < num) in get_raid56_logic_offset()2194 int stripe_index; in scrub_raid56_parity_stripe() local2201 stripe_index = (i + rot) % map->num_stripes; in scrub_raid56_parity_stripe()2202 physical = map->stripes[stripe_index].physical + in scrub_raid56_parity_stripe()[all …]
42 u32 stripe_index; member6569 u32 stripe_index; in btrfs_map_discard() local6630 stripe_index = 0; in btrfs_map_discard()6641 stripe_index = stripe_nr % factor; in btrfs_map_discard()6643 stripe_index *= sub_stripes; in btrfs_map_discard()6652 stripe_index = stripe_nr % map->num_stripes; in btrfs_map_discard()6664 map->stripes[stripe_index].physical + in btrfs_map_discard()6666 stripes[i].dev = map->stripes[stripe_index].dev; in btrfs_map_discard()6686 if (stripe_index >= last_stripe && in btrfs_map_discard()6687 stripe_index <= (last_stripe + in btrfs_map_discard()[all …]
28 u32 stripe_index, struct btrfs_io_stripe *stripe);
398 u32 stripe_index, struct btrfs_io_stripe *stripe) in btrfs_get_raid_extent_offset() argument479 if ((map_type & BTRFS_BLOCK_GROUP_DUP) && stripe_index != i) in btrfs_get_raid_extent_offset()
1574 u32 stripe_index = 0; in btrfs_load_block_group_raid0() local1617 stripe_nr = div_u64_rem(stripe_nr, factor, &stripe_index); in btrfs_load_block_group_raid0()1628 if (stripe_index > i) in btrfs_load_block_group_raid0()1630 else if (stripe_index == i) in btrfs_load_block_group_raid0()1692 u32 stripe_index = 0; in btrfs_load_block_group_raid10() local1760 stripe_nr = div_u64_rem(stripe_nr, factor, &stripe_index); in btrfs_load_block_group_raid10()1770 if (stripe_index > idx) in btrfs_load_block_group_raid10()1772 else if (stripe_index == idx) in btrfs_load_block_group_raid10()