/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | raid56.c | 594 unsigned int stripe_nr, in rbio_stripe_sector_index() 597 ASSERT(stripe_nr < rbio->real_stripes); in rbio_stripe_sector_index() 600 return stripe_nr * rbio->stripe_nsectors + sector_nr; in rbio_stripe_sector_index() 605 unsigned int stripe_nr, in rbio_stripe_sector() 608 return &rbio->stripe_sectors[rbio_stripe_sector_index(rbio, stripe_nr, in rbio_stripe_sector() 860 * Get a sector pointer specified by its @stripe_nr and @sector_nr. 863 * @stripe_nr: Stripe number, valid range [0, real_stripe) 872 int stripe_nr, int sector_nr, in sector_in_rbio() 878 ASSERT(stripe_nr >= 0 && stripe_nr < rbi in sector_in_rbio() 593 rbio_stripe_sector_index(const struct btrfs_raid_bio *rbio, unsigned int stripe_nr, unsigned int sector_nr) rbio_stripe_sector_index() argument 604 rbio_stripe_sector(const struct btrfs_raid_bio *rbio, unsigned int stripe_nr, unsigned int sector_nr) rbio_stripe_sector() argument 871 sector_in_rbio(struct btrfs_raid_bio *rbio, int stripe_nr, int sector_nr, bool bio_list_only) sector_in_rbio() argument 999 int stripe_nr; get_rbio_veritical_errors() local 1035 rbio_add_io_sector(struct btrfs_raid_bio *rbio, struct bio_list *bio_list, struct sector_ptr *sector, unsigned int stripe_nr, unsigned int sector_nr, enum req_op op) rbio_add_io_sector() argument 1352 int stripe_nr; set_rbio_range_error() local 1678 verify_one_sector(struct btrfs_raid_bio *rbio, int stripe_nr, int sector_nr) verify_one_sector() argument 1727 int stripe_nr; recover_vertical() local [all...] |
H A D | raid56.h | 164 u8 stripe_nr; member
|
H A D | volumes.c | 5934 u32 stripe_nr; in btrfs_map_discard() local 5965 * stripe_nr counts the total number of stripes we have to stride in btrfs_map_discard() 5968 stripe_nr = offset >> BTRFS_STRIPE_LEN_SHIFT; in btrfs_map_discard() 5971 stripe_offset = offset - btrfs_stripe_nr_to_offset(stripe_nr); in btrfs_map_discard() 5975 stripe_cnt = stripe_nr_end - stripe_nr; in btrfs_map_discard() 5979 * after this, stripe_nr is the number of stripes on this in btrfs_map_discard() 5995 stripe_index = stripe_nr % factor; in btrfs_map_discard() 5996 stripe_nr /= factor; in btrfs_map_discard() 6006 stripe_index = stripe_nr % map->num_stripes; in btrfs_map_discard() 6007 stripe_nr / in btrfs_map_discard() 6159 btrfs_max_io_len(struct map_lookup *map, enum btrfs_map_op op, u64 offset, u32 *stripe_nr, u64 *stripe_offset, u64 *full_stripe_start) btrfs_max_io_len() argument 6207 set_io_stripe(struct btrfs_io_stripe *dst, const struct map_lookup *map, u32 stripe_index, u64 stripe_offset, u32 stripe_nr) set_io_stripe() argument 6264 u32 stripe_nr; btrfs_map_block() local [all...] |
H A D | volumes.h | 584 * Do the type safe converstion from stripe_nr to offset inside the chunk. 586 * @stripe_nr is u32, with left shift it can overflow u32 for chunks larger 589 static inline u64 btrfs_stripe_nr_to_offset(u32 stripe_nr) in btrfs_stripe_nr_to_offset() argument 591 return (u64)stripe_nr << BTRFS_STRIPE_LEN_SHIFT; in btrfs_stripe_nr_to_offset()
|
H A D | block-group.c | 2102 u32 stripe_nr; in btrfs_rmap_block() local 2110 stripe_nr = (physical - map->stripes[i].physical) >> in btrfs_rmap_block() 2117 stripe_nr = div_u64(stripe_nr * map->num_stripes + i, in btrfs_rmap_block() 2124 bytenr = chunk_start + stripe_nr * io_stripe_size + offset; in btrfs_rmap_block()
|
H A D | scrub.c | 1307 u32 stripe_nr; in get_raid56_logic_offset() local 1313 stripe_nr = (u32)(*offset >> BTRFS_STRIPE_LEN_SHIFT) / data_stripes; in get_raid56_logic_offset() 1316 rot = stripe_nr % map->num_stripes; in get_raid56_logic_offset()
|
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | block-group.c | 1697 u64 stripe_nr; in btrfs_rmap_block() local 1704 stripe_nr = physical - map->stripes[i].physical; in btrfs_rmap_block() 1705 stripe_nr = div64_u64(stripe_nr, map->stripe_len); in btrfs_rmap_block() 1708 stripe_nr = stripe_nr * map->num_stripes + i; in btrfs_rmap_block() 1709 stripe_nr = div_u64(stripe_nr, map->sub_stripes); in btrfs_rmap_block() 1711 stripe_nr = stripe_nr * ma in btrfs_rmap_block() [all...] |
H A D | volumes.c | 5682 u64 stripe_nr; in __btrfs_map_block_for_discard() local 5718 * stripe_nr counts the total number of stripes we have to stride in __btrfs_map_block_for_discard() 5721 stripe_nr = div64_u64(offset, stripe_len); in __btrfs_map_block_for_discard() 5724 stripe_offset = offset - stripe_nr * stripe_len; in __btrfs_map_block_for_discard() 5728 stripe_cnt = stripe_nr_end - stripe_nr; in __btrfs_map_block_for_discard() 5732 * after this, stripe_nr is the number of stripes on this in __btrfs_map_block_for_discard() 5748 stripe_nr = div_u64_rem(stripe_nr, factor, &stripe_index); in __btrfs_map_block_for_discard() 5758 stripe_nr = div_u64_rem(stripe_nr, ma in __btrfs_map_block_for_discard() 6019 u64 stripe_nr; btrfs_get_io_geometry() local 6107 u64 stripe_nr; __btrfs_map_block() local [all...] |
H A D | scrub.c | 2601 u64 stripe_nr; in get_raid56_logic_offset() local 2615 stripe_nr = div64_u64(*offset, map->stripe_len); in get_raid56_logic_offset() 2616 stripe_nr = div_u64(stripe_nr, data_stripes); in get_raid56_logic_offset() 2619 stripe_nr = div_u64_rem(stripe_nr, map->num_stripes, &rot); in get_raid56_logic_offset()
|
H A D | volumes.h | 28 u64 stripe_nr; member
|
H A D | raid56.c | 1090 int stripe_nr, in rbio_add_io_page() 1100 stripe = &rbio->bbio->stripes[stripe_nr]; in rbio_add_io_page() 1105 return fail_rbio_index(rbio, stripe_nr); in rbio_add_io_page() 1087 rbio_add_io_page(struct btrfs_raid_bio *rbio, struct bio_list *bio_list, struct page *page, int stripe_nr, unsigned long page_index, unsigned long bio_max_len) rbio_add_io_page() argument
|
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | btrfs.h | 2451 __field( u8, stripe_nr ) 2461 __entry->stripe_nr = trace_info->stripe_nr; 2474 (__entry->stripe_nr < __entry->nr_data) ? "DATA" : 2475 ((__entry->stripe_nr < __entry->real_stripes) ? "PQ" : 2477 (__entry->stripe_nr < __entry->nr_data) ? 2478 (__entry->stripe_nr + 1) : 2479 ((__entry->stripe_nr < __entry->real_stripes) ? 2480 (__entry->stripe_nr - __entry->nr_data + 1) : 0),
|