Searched refs:stripe_nr (Results 1 – 6 of 6) sorted by relevance
173 u8 stripe_nr; member
44 u32 stripe_nr; member6074 u32 stripe_nr; in btrfs_map_discard() local6106 stripe_nr = offset >> BTRFS_STRIPE_LEN_SHIFT; in btrfs_map_discard()6109 stripe_offset = offset - btrfs_stripe_nr_to_offset(stripe_nr); in btrfs_map_discard()6113 stripe_cnt = stripe_nr_end - stripe_nr; in btrfs_map_discard()6133 stripe_index = stripe_nr % factor; in btrfs_map_discard()6134 stripe_nr /= factor; in btrfs_map_discard()6144 stripe_index = stripe_nr % map->num_stripes; in btrfs_map_discard()6145 stripe_nr /= map->num_stripes; in btrfs_map_discard()6157 stripe_offset + btrfs_stripe_nr_to_offset(stripe_nr); in btrfs_map_discard()[all …]
673 static inline u64 btrfs_stripe_nr_to_offset(u32 stripe_nr) in btrfs_stripe_nr_to_offset() argument675 return (u64)stripe_nr << BTRFS_STRIPE_LEN_SHIFT; in btrfs_stripe_nr_to_offset()
2133 u32 stripe_nr; in btrfs_rmap_block() local2141 stripe_nr = (physical - map->stripes[i].physical) >> in btrfs_rmap_block()2148 stripe_nr = div_u64(stripe_nr * map->num_stripes + i, in btrfs_rmap_block()2155 bytenr = chunk_start + stripe_nr * io_stripe_size + offset; in btrfs_rmap_block()
1306 u32 stripe_nr; in get_raid56_logic_offset() local1312 stripe_nr = (u32)(*offset >> BTRFS_STRIPE_LEN_SHIFT) / data_stripes; in get_raid56_logic_offset()1315 rot = stripe_nr % map->num_stripes; in get_raid56_logic_offset()
2414 __field( u8, stripe_nr )2424 __entry->stripe_nr = trace_info->stripe_nr;2437 (__entry->stripe_nr < __entry->nr_data) ? "DATA" :2438 ((__entry->stripe_nr < __entry->real_stripes) ? "PQ" :2440 (__entry->stripe_nr < __entry->nr_data) ?2441 (__entry->stripe_nr + 1) :2442 ((__entry->stripe_nr < __entry->real_stripes) ?2443 (__entry->stripe_nr - __entry->nr_data + 1) : 0),