Searched refs:bioc (Results 1 – 8 of 8) sorted by relevance
/linux-6.1.9/fs/btrfs/ |
D | raid56.c | 83 queue_work(rbio->bioc->fs_info->rmw_workers, &rbio->work); in start_async_work() 157 rbio->bioc->fs_info->sectorsize); in cache_rbio_pages() 168 u64 num = rbio->bioc->raid_map[0]; in rbio_bucket() 184 const u32 sectorsize = rbio->bioc->fs_info->sectorsize; in full_page_sectors_uptodate() 206 const u32 sectorsize = rbio->bioc->fs_info->sectorsize; in index_stripe_sectors() 222 const u32 sectorsize = src->bioc->fs_info->sectorsize; in steal_rbio_page() 298 table = rbio->bioc->fs_info->stripe_hash_table; in __remove_rbio_from_cache() 353 table = rbio->bioc->fs_info->stripe_hash_table; in remove_rbio_from_cache() 413 table = rbio->bioc->fs_info->stripe_hash_table; in cache_rbio() 512 if (last->bioc->raid_map[0] != cur->bioc->raid_map[0]) in rbio_can_merge() [all …]
|
D | raid56.h | 21 struct btrfs_io_context *bioc; member 166 void raid56_parity_recover(struct bio *bio, struct btrfs_io_context *bioc, 168 void raid56_parity_write(struct bio *bio, struct btrfs_io_context *bioc); 174 struct btrfs_io_context *bioc, 180 raid56_alloc_missing_rbio(struct bio *bio, struct btrfs_io_context *bioc);
|
D | scrub.c | 61 struct btrfs_io_context *bioc; member 427 (sector->recover->bioc->map_type & BTRFS_BLOCK_GROUP_RAID56_MASK); in scrub_is_page_on_raid56() 974 btrfs_put_bioc(recover->bioc); in scrub_put_recover() 1216 int max_allowed = r->bioc->num_stripes - r->bioc->num_tgtdevs; in scrub_handle_errored_block() 1405 static inline int scrub_nr_raid_mirrors(struct btrfs_io_context *bioc) in scrub_nr_raid_mirrors() argument 1407 if (bioc->map_type & BTRFS_BLOCK_GROUP_RAID5) in scrub_nr_raid_mirrors() 1409 else if (bioc->map_type & BTRFS_BLOCK_GROUP_RAID6) in scrub_nr_raid_mirrors() 1412 return (int)bioc->num_stripes; in scrub_nr_raid_mirrors() 1455 struct btrfs_io_context *bioc; in scrub_setup_recheck_block() local 1468 bioc = NULL; in scrub_setup_recheck_block() [all …]
|
D | volumes.c | 5886 static void sort_parity_stripes(struct btrfs_io_context *bioc, int num_stripes) in sort_parity_stripes() argument 5895 if (bioc->raid_map[i] > bioc->raid_map[i + 1]) { in sort_parity_stripes() 5896 swap(bioc->stripes[i], bioc->stripes[i + 1]); in sort_parity_stripes() 5897 swap(bioc->raid_map[i], bioc->raid_map[i + 1]); in sort_parity_stripes() 5908 struct btrfs_io_context *bioc = kzalloc( in alloc_btrfs_io_context() local 5922 refcount_set(&bioc->refs, 1); in alloc_btrfs_io_context() 5924 bioc->fs_info = fs_info; in alloc_btrfs_io_context() 5925 bioc->tgtdev_map = (int *)(bioc->stripes + total_stripes); in alloc_btrfs_io_context() 5926 bioc->raid_map = (u64 *)(bioc->tgtdev_map + real_stripes); in alloc_btrfs_io_context() 5928 return bioc; in alloc_btrfs_io_context() [all …]
|
D | volumes.h | 471 struct btrfs_io_context *bioc; member 606 void btrfs_get_bioc(struct btrfs_io_context *bioc); 607 void btrfs_put_bioc(struct btrfs_io_context *bioc);
|
D | zoned.c | 1774 struct btrfs_io_context *bioc = NULL; in read_zone_info() local 1781 &mapped_length, &bioc); in read_zone_info() 1782 if (ret || !bioc || mapped_length < PAGE_SIZE) { in read_zone_info() 1787 if (bioc->map_type & BTRFS_BLOCK_GROUP_RAID56_MASK) { in read_zone_info() 1793 nmirrors = (int)bioc->num_stripes; in read_zone_info() 1795 u64 physical = bioc->stripes[i].physical; in read_zone_info() 1796 struct btrfs_device *dev = bioc->stripes[i].dev; in read_zone_info() 1810 btrfs_put_bioc(bioc); in read_zone_info()
|
D | extent_io.c | 549 struct btrfs_io_context *bioc = NULL; in repair_io_failure() local 574 &map_length, &bioc, 0); in repair_io_failure() 577 ASSERT(bioc->mirror_num == 1); in repair_io_failure() 580 &map_length, &bioc, mirror_num); in repair_io_failure() 591 if (mirror_num != bioc->mirror_num) in repair_io_failure() 595 sector = bioc->stripes[bioc->mirror_num - 1].physical >> 9; in repair_io_failure() 596 dev = bioc->stripes[bioc->mirror_num - 1].dev; in repair_io_failure() 597 btrfs_put_bioc(bioc); in repair_io_failure()
|
/linux-6.1.9/include/trace/events/ |
D | btrfs.h | 2346 TP_fast_assign_btrfs(rbio->bioc->fs_info, 2347 __entry->full_stripe = rbio->bioc->raid_map[0]; 2354 __entry->total_stripes = rbio->bioc->num_stripes;
|