Home
last modified time | relevance | path

Searched refs:stripe_nr (Results 1 – 7 of 7) sorted by relevance

/linux/fs/btrfs/
H A Draid56.c86 #define ASSERT_RBIO_STRIPE(expr, rbio, stripe_nr) \ argument
93 btrfs_crit(__fs_info, "stripe_nr=%d", (stripe_nr)); \
711 unsigned int stripe_nr, in rbio_sector_index() argument
716 ASSERT_RBIO_STRIPE(stripe_nr < rbio->real_stripes, rbio, stripe_nr); in rbio_sector_index()
719 ret = stripe_nr * rbio->stripe_nsectors + sector_nr; in rbio_sector_index()
726 unsigned int stripe_nr, in rbio_paddr_index() argument
734 ret = rbio_sector_index(rbio, stripe_nr, sector_nr) * rbio->sector_nsteps + step_nr; in rbio_paddr_index()
740 unsigned int stripe_nr, unsigned int sector_nr, in rbio_stripe_paddr() argument
743 return rbio->stripe_paddrs[rbio_paddr_index(rbio, stripe_nr, sector_nr, step_nr)]; in rbio_stripe_paddr()
762 unsigned int stripe_nr, unsigned int sector_nr) in rbio_stripe_paddrs() argument
[all …]
H A Dzoned.c1572 u64 stripe_nr = 0, stripe_offset = 0; in btrfs_load_block_group_raid0() local
1595 stripe_nr = zone_info[i].alloc_offset >> BTRFS_STRIPE_LEN_SHIFT; in btrfs_load_block_group_raid0()
1597 if (stripe_offset == 0 && stripe_nr > 0) { in btrfs_load_block_group_raid0()
1598 stripe_nr--; in btrfs_load_block_group_raid0()
1601 alloc = ((stripe_nr * map->num_stripes + i) << BTRFS_STRIPE_LEN_SHIFT) + in btrfs_load_block_group_raid0()
1609 stripe_nr = 0; in btrfs_load_block_group_raid0()
1615 stripe_nr = last_alloc >> BTRFS_STRIPE_LEN_SHIFT; in btrfs_load_block_group_raid0()
1617 stripe_nr = div_u64_rem(stripe_nr, factor, &stripe_index); in btrfs_load_block_group_raid0()
1626 zone_info[i].alloc_offset = btrfs_stripe_nr_to_offset(stripe_nr); in btrfs_load_block_group_raid0()
1691 u64 stripe_nr = 0, stripe_offset = 0; in btrfs_load_block_group_raid10() local
[all …]
H A Draid56.h254 u8 stripe_nr; member
H A Dvolumes.h703 static inline u64 btrfs_stripe_nr_to_offset(u32 stripe_nr) in btrfs_stripe_nr_to_offset() argument
705 return (u64)stripe_nr << BTRFS_STRIPE_LEN_SHIFT; in btrfs_stripe_nr_to_offset()
H A Dblock-group.c2233 u32 stripe_nr; in btrfs_rmap_block() local
2241 stripe_nr = (physical - map->stripes[i].physical) >> in btrfs_rmap_block()
2248 stripe_nr = div_u64(stripe_nr * map->num_stripes + i, in btrfs_rmap_block()
2255 bytenr = chunk_start + stripe_nr * io_stripe_size + offset; in btrfs_rmap_block()
H A Dscrub.c1451 u32 stripe_nr; in get_raid56_logic_offset() local
1457 stripe_nr = (u32)(*offset >> BTRFS_STRIPE_LEN_SHIFT) / data_stripes; in get_raid56_logic_offset()
1460 rot = stripe_nr % map->num_stripes; in get_raid56_logic_offset()
/linux/include/trace/events/
H A Dbtrfs.h2408 __field( u8, stripe_nr )
2418 __entry->stripe_nr = trace_info->stripe_nr;
2431 (__entry->stripe_nr < __entry->nr_data) ? "DATA" :
2432 ((__entry->stripe_nr < __entry->real_stripes) ? "PQ" :
2434 (__entry->stripe_nr < __entry->nr_data) ?
2435 (__entry->stripe_nr + 1) :
2436 ((__entry->stripe_nr < __entry->real_stripes) ?
2437 (__entry->stripe_nr - __entry->nr_data + 1) : 0),