Home
last modified time | relevance | path

Searched refs:bioc (Results 1 – 8 of 8) sorted by relevance

/linux-5.19.10/fs/btrfs/
Draid56.c74 struct btrfs_io_context *bioc; member
214 queue_work(rbio->bioc->fs_info->rmw_workers, &rbio->work); in start_async_work()
288 rbio->bioc->fs_info->sectorsize); in cache_rbio_pages()
299 u64 num = rbio->bioc->raid_map[0]; in rbio_bucket()
315 const u32 sectorsize = rbio->bioc->fs_info->sectorsize; in full_page_sectors_uptodate()
337 const u32 sectorsize = rbio->bioc->fs_info->sectorsize; in index_stripe_sectors()
353 const u32 sectorsize = src->bioc->fs_info->sectorsize; in steal_rbio_page()
430 table = rbio->bioc->fs_info->stripe_hash_table; in __remove_rbio_from_cache()
485 table = rbio->bioc->fs_info->stripe_hash_table; in remove_rbio_from_cache()
545 table = rbio->bioc->fs_info->stripe_hash_table; in cache_rbio()
[all …]
Draid56.h33 int raid56_parity_recover(struct bio *bio, struct btrfs_io_context *bioc,
35 int raid56_parity_write(struct bio *bio, struct btrfs_io_context *bioc, u32 stripe_len);
41 struct btrfs_io_context *bioc, u32 stripe_len,
47 raid56_alloc_missing_rbio(struct bio *bio, struct btrfs_io_context *bioc,
Dvolumes.c5856 static void sort_parity_stripes(struct btrfs_io_context *bioc, int num_stripes) in sort_parity_stripes() argument
5865 if (bioc->raid_map[i] > bioc->raid_map[i + 1]) { in sort_parity_stripes()
5866 swap(bioc->stripes[i], bioc->stripes[i + 1]); in sort_parity_stripes()
5867 swap(bioc->raid_map[i], bioc->raid_map[i + 1]); in sort_parity_stripes()
5878 struct btrfs_io_context *bioc = kzalloc( in alloc_btrfs_io_context() local
5892 atomic_set(&bioc->error, 0); in alloc_btrfs_io_context()
5893 refcount_set(&bioc->refs, 1); in alloc_btrfs_io_context()
5895 bioc->fs_info = fs_info; in alloc_btrfs_io_context()
5896 bioc->tgtdev_map = (int *)(bioc->stripes + total_stripes); in alloc_btrfs_io_context()
5897 bioc->raid_map = (u64 *)(bioc->tgtdev_map + real_stripes); in alloc_btrfs_io_context()
[all …]
Dscrub.c59 struct btrfs_io_context *bioc; member
251 (sector->recover->bioc->map_type & BTRFS_BLOCK_GROUP_RAID56_MASK); in scrub_is_page_on_raid56()
793 btrfs_put_bioc(recover->bioc); in scrub_put_recover()
1022 int max_allowed = r->bioc->num_stripes - r->bioc->num_tgtdevs; in scrub_handle_errored_block()
1209 static inline int scrub_nr_raid_mirrors(struct btrfs_io_context *bioc) in scrub_nr_raid_mirrors() argument
1211 if (bioc->map_type & BTRFS_BLOCK_GROUP_RAID5) in scrub_nr_raid_mirrors()
1213 else if (bioc->map_type & BTRFS_BLOCK_GROUP_RAID6) in scrub_nr_raid_mirrors()
1216 return (int)bioc->num_stripes; in scrub_nr_raid_mirrors()
1260 struct btrfs_io_context *bioc; in scrub_setup_recheck_block() local
1278 bioc = NULL; in scrub_setup_recheck_block()
[all …]
Dzoned.c1757 struct btrfs_io_context *bioc = NULL; in read_zone_info() local
1764 &mapped_length, &bioc); in read_zone_info()
1765 if (ret || !bioc || mapped_length < PAGE_SIZE) { in read_zone_info()
1770 if (bioc->map_type & BTRFS_BLOCK_GROUP_RAID56_MASK) { in read_zone_info()
1776 nmirrors = (int)bioc->num_stripes; in read_zone_info()
1778 u64 physical = bioc->stripes[i].physical; in read_zone_info()
1779 struct btrfs_device *dev = bioc->stripes[i].dev; in read_zone_info()
1793 btrfs_put_bioc(bioc); in read_zone_info()
Dvolumes.h528 void btrfs_get_bioc(struct btrfs_io_context *bioc);
529 void btrfs_put_bioc(struct btrfs_io_context *bioc);
Dextent_io.c2328 struct btrfs_io_context *bioc = NULL; in repair_io_failure() local
2353 &map_length, &bioc, 0); in repair_io_failure()
2356 ASSERT(bioc->mirror_num == 1); in repair_io_failure()
2359 &map_length, &bioc, mirror_num); in repair_io_failure()
2362 BUG_ON(mirror_num != bioc->mirror_num); in repair_io_failure()
2365 sector = bioc->stripes[bioc->mirror_num - 1].physical >> 9; in repair_io_failure()
2366 dev = bioc->stripes[bioc->mirror_num - 1].dev; in repair_io_failure()
2367 btrfs_put_bioc(bioc); in repair_io_failure()
Dextent-tree.c1319 struct btrfs_io_context *bioc = NULL; in btrfs_discard_extent() local
1333 &num_bytes, &bioc, 0); in btrfs_discard_extent()
1342 stripe = bioc->stripes; in btrfs_discard_extent()
1343 for (i = 0; i < bioc->num_stripes; i++, stripe++) { in btrfs_discard_extent()
1366 btrfs_put_bioc(bioc); in btrfs_discard_extent()
1377 btrfs_put_bioc(bioc); in btrfs_discard_extent()