Searched refs:bioc (Results 1 – 9 of 9) sorted by relevance
| /linux/fs/btrfs/tests/ |
| H A D | raid-stripe-tree-tests.c | 41 struct btrfs_io_context *bioc; in test_punch_hole_3extents() local 54 bioc = alloc_btrfs_io_context(fs_info, logical1, RST_TEST_NUM_DEVICES); in test_punch_hole_3extents() 55 if (!bioc) { in test_punch_hole_3extents() 64 bioc->map_type = map_type; in test_punch_hole_3extents() 65 bioc->size = len1; in test_punch_hole_3extents() 68 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_punch_hole_3extents() 80 ret = btrfs_insert_one_raid_extent(trans, bioc); in test_punch_hole_3extents() 86 bioc->logical = logical2; in test_punch_hole_3extents() 87 bioc->size = len2; in test_punch_hole_3extents() 89 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_punch_hole_3extents() [all …]
|
| /linux/fs/btrfs/ |
| H A D | raid56.c | 43 static void dump_bioc(const struct btrfs_fs_info *fs_info, const struct btrfs_io_context *bioc) in dump_bioc() argument 45 if (unlikely(!bioc)) { in dump_bioc() 51 bioc->logical, bioc->full_stripe_logical, bioc->size, in dump_bioc() 52 bioc->map_type, bioc->mirror_num, bioc->replace_nr_stripes, in dump_bioc() 53 bioc->replace_stripe_src, bioc->num_stripes); in dump_bioc() 54 for (int i = 0; i < bioc->num_stripes; i++) { in dump_bioc() 56 i, bioc->stripes[i].dev->devid, in dump_bioc() 57 bioc->stripes[i].physical); in dump_bioc() 67 dump_bioc(fs_info, rbio->bioc); in btrfs_dump_rbio() 78 const struct btrfs_fs_info *__fs_info = (rbio)->bioc ? \ [all …]
|
| H A D | bio.c | 407 struct btrfs_io_context *bioc = bio->bi_private; in btrfs_raid56_end_io() local 413 btrfs_bio_counter_dec(bioc->fs_info); in btrfs_raid56_end_io() 414 bbio->mirror_num = bioc->mirror_num; in btrfs_raid56_end_io() 420 btrfs_put_bioc(bioc); in btrfs_raid56_end_io() 428 struct btrfs_io_context *bioc = stripe->bioc; in orig_write_end_io_work() local 430 btrfs_bio_counter_dec(bioc->fs_info); in orig_write_end_io_work() 433 atomic_inc(&bioc->error); in orig_write_end_io_work() 441 if (atomic_read(&bioc->error) > bioc->max_errors) in orig_write_end_io_work() 450 btrfs_put_bioc(bioc); in orig_write_end_io_work() 468 atomic_inc(&stripe->bioc->error); in clone_write_end_io_work() [all …]
|
| H A D | volumes.c | 6339 struct btrfs_io_context *bioc; in alloc_btrfs_io_context() local 6341 bioc = kzalloc_flex(*bioc, stripes, total_stripes, GFP_NOFS); in alloc_btrfs_io_context() 6343 if (!bioc) in alloc_btrfs_io_context() 6346 refcount_set(&bioc->refs, 1); in alloc_btrfs_io_context() 6348 bioc->fs_info = fs_info; in alloc_btrfs_io_context() 6349 bioc->replace_stripe_src = -1; in alloc_btrfs_io_context() 6350 bioc->full_stripe_logical = (u64)-1; in alloc_btrfs_io_context() 6351 bioc->logical = logical; in alloc_btrfs_io_context() 6353 return bioc; in alloc_btrfs_io_context() 6356 void btrfs_get_bioc(struct btrfs_io_context *bioc) in btrfs_get_bioc() argument [all …]
|
| H A D | raid-stripe-tree.h | 34 struct btrfs_io_context *bioc);
|
| H A D | scrub.c | 1026 struct btrfs_io_context *bioc = NULL; in scrub_stripe_report_errors() local 1033 stripe->logical, &mapped_len, &bioc, in scrub_stripe_report_errors() 1041 physical = bioc->stripes[stripe_index].physical; in scrub_stripe_report_errors() 1042 dev = bioc->stripes[stripe_index].dev; in scrub_stripe_report_errors() 1043 btrfs_put_bioc(bioc); in scrub_stripe_report_errors() 1830 struct btrfs_io_context *bioc = NULL; in scrub_submit_extent_sector_read() local 1842 &stripe_len, &bioc, &io_stripe, &mirror); in scrub_submit_extent_sector_read() 1843 btrfs_put_bioc(bioc); in scrub_submit_extent_sector_read() 2124 struct btrfs_io_context *bioc = NULL; in scrub_raid56_cached_parity() local 2138 &length, &bioc, NULL, NULL); in scrub_raid56_cached_parity() [all …]
|
| H A D | volumes.h | 478 struct btrfs_io_context *bioc; member 708 void btrfs_get_bioc(struct btrfs_io_context *bioc); 709 void btrfs_put_bioc(struct btrfs_io_context *bioc);
|
| H A D | zoned.c | 2287 struct btrfs_io_context *bioc = NULL; in read_zone_info() local 2294 &mapped_length, &bioc, NULL, NULL); in read_zone_info() 2295 if (unlikely(ret || !bioc || mapped_length < PAGE_SIZE)) { in read_zone_info() 2300 if (bioc->map_type & BTRFS_BLOCK_GROUP_RAID56_MASK) { in read_zone_info() 2306 nmirrors = (int)bioc->num_stripes; in read_zone_info() 2308 u64 physical = bioc->stripes[i].physical; in read_zone_info() 2309 struct btrfs_device *dev = bioc->stripes[i].dev; in read_zone_info() 2323 btrfs_put_bioc(bioc); in read_zone_info()
|
| /linux/include/trace/events/ |
| H A D | btrfs.h | 2408 TP_fast_assign_btrfs(rbio->bioc->fs_info, 2409 __entry->full_stripe = rbio->bioc->full_stripe_logical; 2416 __entry->total_stripes = rbio->bioc->num_stripes;
|