Home
last modified time | relevance | path

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

/linux/fs/btrfs/tests/
H A Draid-stripe-tree-tests.c41 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 Draid56.c43 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()
46 btrfs_crit(fs_info, "bioc=NULL"); in dump_bioc()
50 "bioc logical=%llu full_stripe=%llu size=%llu map_type=0x%llx mirror=%u replace_nr_stripes=%u replace_stripe_src=%d num_stripes=%u", in dump_bioc()
51 bioc->logical, bioc->full_stripe_logical, bioc->size, in dump_bioc()
52 bioc->map_type, bioc->mirror_num, bioc in dump_bioc()
1062 alloc_rbio(struct btrfs_fs_info * fs_info,struct btrfs_io_context * bioc) alloc_rbio() argument
1348 const struct btrfs_io_context *bioc = rbio->bioc; bio_get_trace_info() local
1864 raid56_parity_write(struct bio * bio,struct btrfs_io_context * bioc) raid56_parity_write() argument
2268 raid56_parity_recover(struct bio * bio,struct btrfs_io_context * bioc,int mirror_num) raid56_parity_recover() argument
2570 raid56_parity_alloc_scrub_rbio(struct bio * bio,struct btrfs_io_context * bioc,struct btrfs_device * scrub_dev,unsigned long * dbitmap,int stripe_nsectors) raid56_parity_alloc_scrub_rbio() argument
2712 struct btrfs_io_context *bioc = rbio->bioc; finish_parity_scrub() local
[all...]
H A Dbio.c415 struct btrfs_io_context *bioc = bio->bi_private; in btrfs_raid56_end_io()
421 btrfs_bio_counter_dec(bioc->fs_info); in btrfs_raid56_end_io()
422 bbio->mirror_num = bioc->mirror_num;
428 btrfs_put_bioc(bioc); in orig_write_end_io_work() local
436 struct btrfs_io_context *bioc = stripe->bioc; in orig_write_end_io_work()
438 btrfs_bio_counter_dec(bioc->fs_info); in orig_write_end_io_work()
441 atomic_inc(&bioc->error); in orig_write_end_io_work()
449 if (atomic_read(&bioc->error) > bioc in orig_write_end_io_work()
407 struct btrfs_io_context *bioc = bio->bi_private; btrfs_raid56_end_io() local
533 btrfs_submit_mirrored_bio(struct btrfs_io_context * bioc,int dev_nr) btrfs_submit_mirrored_bio() argument
560 btrfs_submit_bio(struct bio * bio,struct btrfs_io_context * bioc,struct btrfs_io_stripe * smap,int mirror_num) btrfs_submit_bio() argument
607 struct btrfs_io_context *bioc; global() member
706 btrfs_wq_submit_bio(struct btrfs_bio * bbio,struct btrfs_io_context * bioc,struct btrfs_io_stripe * smap,int mirror_num) btrfs_wq_submit_bio() argument
754 struct btrfs_io_context *bioc = NULL; btrfs_submit_chunk() local
[all...]
H A Dvolumes.c6521 struct btrfs_io_context *bioc; in btrfs_map_discard()
6523 bioc = kzalloc_flex(*bioc, stripes, total_stripes, GFP_NOFS); in btrfs_map_discard()
6525 if (!bioc) in btrfs_map_discard()
6528 refcount_set(&bioc->refs, 1); in btrfs_map_discard()
6530 bioc->fs_info = fs_info; in btrfs_map_discard()
6531 bioc->replace_stripe_src = -1; in btrfs_map_discard()
6532 bioc->full_stripe_logical = (u64)-1; in btrfs_map_discard()
6533 bioc->logical = logical; in btrfs_map_discard()
6535 return bioc; in btrfs_map_discard()
6348 struct btrfs_io_context *bioc; alloc_btrfs_io_context() local
6365 btrfs_get_bioc(struct btrfs_io_context * bioc) btrfs_get_bioc() argument
6371 btrfs_put_bioc(struct btrfs_io_context * bioc) btrfs_put_bioc() argument
6555 handle_ops_on_dev_replace(struct btrfs_io_context * bioc,struct btrfs_dev_replace * dev_replace,u64 logical,struct btrfs_io_geometry * io_geom) handle_ops_on_dev_replace() argument
6897 struct btrfs_io_context *bioc = NULL; btrfs_map_block() local
8581 map_raid56_repair_block(struct btrfs_io_context * bioc,struct btrfs_io_stripe * smap,u64 logical) map_raid56_repair_block() argument
8620 struct btrfs_io_context *bioc = NULL; btrfs_map_repair_block() local
[all...]
H A Draid-stripe-tree.h34 struct btrfs_io_context *bioc);
H A Dscrub.c1021 struct btrfs_io_context *bioc = NULL; in scrub_stripe_report_errors()
1028 stripe->logical, &mapped_len, &bioc, in scrub_stripe_report_errors()
1036 physical = bioc->stripes[stripe_index].physical; in scrub_stripe_report_errors()
1037 dev = bioc->stripes[stripe_index].dev; in scrub_stripe_report_errors()
1038 btrfs_put_bioc(bioc); in scrub_stripe_report_errors()
1816 struct btrfs_io_context *bioc = NULL; in scrub_submit_extent_sector_read()
1828 &stripe_len, &bioc, &io_stripe, &mirror); in scrub_submit_extent_sector_read()
1829 btrfs_put_bioc(bioc); in scrub_submit_extent_sector_read()
2110 struct btrfs_io_context *bioc = NULL; in should_cancel_scrub()
2124 &length, &bioc, NUL in scrub_raid56_cached_parity() local
1026 struct btrfs_io_context *bioc = NULL; scrub_stripe_report_errors() local
1830 struct btrfs_io_context *bioc = NULL; scrub_submit_extent_sector_read() local
[all...]
H A Dvolumes.h494 struct btrfs_io_context *bioc;
541 * The mirror_num of this bioc.
724 void btrfs_get_bioc(struct btrfs_io_context *bioc);
725 void btrfs_put_bioc(struct btrfs_io_context *bioc);
478 struct btrfs_io_context *bioc; global() member
H A Dzoned.c2294 struct btrfs_io_context *bioc = NULL; in read_zone_info()
2301 &mapped_length, &bioc, NULL, NULL); in read_zone_info()
2302 if (unlikely(ret || !bioc || mapped_length < PAGE_SIZE)) { in read_zone_info()
2307 if (bioc->map_type & BTRFS_BLOCK_GROUP_RAID56_MASK) { in read_zone_info()
2313 nmirrors = (int)bioc->num_stripes; in read_zone_info()
2315 u64 physical = bioc->stripes[i].physical; in read_zone_info()
2316 struct btrfs_device *dev = bioc->stripes[i].dev; in read_zone_info()
2330 btrfs_put_bioc(bioc); in read_zone_info()
2296 struct btrfs_io_context *bioc = NULL; read_zone_info() local
/linux/include/trace/events/
H A Dbtrfs.h2435 TP_fast_assign_btrfs(rbio->bioc->fs_info,
2436 __entry->full_stripe = rbio->bioc->full_stripe_logical;
2443 __entry->total_stripes = rbio->bioc->num_stripes;