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 in test_punch_hole_3extents()
219 struct btrfs_io_context *bioc; test_delete_two_extents() local
363 struct btrfs_io_context *bioc; test_punch_hole() local
506 struct btrfs_io_context *bioc; test_front_delete_prev_item() local
648 struct btrfs_io_context *bioc; test_front_delete() local
757 struct btrfs_io_context *bioc; test_tail_delete() local
879 struct btrfs_io_context *bioc; test_create_update_delete() local
1000 struct btrfs_io_context *bioc; test_simple_create_delete() local
[all...]
/linux/fs/btrfs/
H A Dbio.c355 struct btrfs_io_context *bioc = bio->bi_private; in btrfs_raid56_end_io() local
358 btrfs_bio_counter_dec(bioc->fs_info); in btrfs_raid56_end_io()
359 bbio->mirror_num = bioc->mirror_num; in btrfs_raid56_end_io()
365 btrfs_put_bioc(bioc); in btrfs_raid56_end_io()
371 struct btrfs_io_context *bioc = stripe->bioc; in btrfs_orig_write_end_io() local
374 btrfs_bio_counter_dec(bioc->fs_info); in btrfs_orig_write_end_io()
377 atomic_inc(&bioc->error); in btrfs_orig_write_end_io()
385 if (atomic_read(&bioc->error) > bioc in btrfs_orig_write_end_io()
456 btrfs_submit_mirrored_bio(struct btrfs_io_context * bioc,int dev_nr) btrfs_submit_mirrored_bio() argument
479 btrfs_submit_bio(struct bio * bio,struct btrfs_io_context * bioc,struct btrfs_io_stripe * smap,int mirror_num) btrfs_submit_bio() argument
522 struct btrfs_io_context *bioc; global() member
621 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
669 struct btrfs_io_context *bioc = NULL; btrfs_submit_chunk() local
[all...]
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()
992 alloc_rbio(struct btrfs_fs_info * fs_info,struct btrfs_io_context * bioc) alloc_rbio() argument
1248 const struct btrfs_io_context *bioc = rbio->bioc; bio_get_trace_info() local
1758 raid56_parity_write(struct bio * bio,struct btrfs_io_context * bioc) raid56_parity_write() argument
2160 raid56_parity_recover(struct bio * bio,struct btrfs_io_context * bioc,int mirror_num) raid56_parity_recover() argument
2453 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
2519 struct btrfs_io_context *bioc = rbio->bioc; finish_parity_scrub() local
[all...]
H A Draid56.h29 struct btrfs_io_context *bioc; member
181 static inline int nr_bioc_data_stripes(const struct btrfs_io_context *bioc) in nr_bioc_data_stripes() argument
183 return bioc->num_stripes - btrfs_nr_parity_stripes(bioc->map_type); in nr_bioc_data_stripes()
194 void raid56_parity_recover(struct bio *bio, struct btrfs_io_context *bioc,
196 void raid56_parity_write(struct bio *bio, struct btrfs_io_context *bioc);
199 struct btrfs_io_context *bioc,
H A Draid-stripe-tree.c298 struct btrfs_io_context *bioc) in btrfs_insert_one_raid_extent() argument
303 const int num_stripes = btrfs_bg_type_to_factor(bioc->map_type); in btrfs_insert_one_raid_extent()
315 trace_btrfs_insert_one_raid_extent(fs_info, bioc->logical, bioc->size, in btrfs_insert_one_raid_extent()
318 u64 devid = bioc->stripes[i].dev->devid; in btrfs_insert_one_raid_extent()
319 u64 physical = bioc->stripes[i].physical; in btrfs_insert_one_raid_extent()
326 stripe_key.objectid = bioc->logical; in btrfs_insert_one_raid_extent()
328 stripe_key.offset = bioc->size; in btrfs_insert_one_raid_extent()
349 struct btrfs_io_context *bioc; in btrfs_insert_raid_extent() local
355 list_for_each_entry(bioc, in btrfs_insert_raid_extent()
[all...]
H A Draid-stripe-tree.h34 struct btrfs_io_context *bioc);
H A Dscrub.c1000 struct btrfs_io_context *bioc = NULL; in scrub_stripe_report_errors() local
1007 stripe->logical, &mapped_len, &bioc, in scrub_stripe_report_errors()
1015 physical = bioc->stripes[stripe_index].physical; in scrub_stripe_report_errors()
1016 dev = bioc->stripes[stripe_index].dev; in scrub_stripe_report_errors()
1017 btrfs_put_bioc(bioc); in scrub_stripe_report_errors()
1806 struct btrfs_io_context *bioc = NULL; in scrub_submit_extent_sector_read() local
1818 &stripe_len, &bioc, &io_stripe, &mirror); in scrub_submit_extent_sector_read()
1819 btrfs_put_bioc(bioc); in scrub_submit_extent_sector_read()
2064 struct btrfs_io_context *bioc = NULL; in scrub_raid56_parity_stripe() local
2187 &length, &bioc, NUL in scrub_raid56_parity_stripe()
[all...]
H A Dzoned.c2076 struct btrfs_io_context *bioc = NULL; in read_zone_info() local
2083 &mapped_length, &bioc, NULL, NULL); in read_zone_info()
2084 if (ret || !bioc || mapped_length < PAGE_SIZE) { in read_zone_info()
2089 if (bioc->map_type & BTRFS_BLOCK_GROUP_RAID56_MASK) { in read_zone_info()
2095 nmirrors = (int)bioc->num_stripes; in read_zone_info()
2097 u64 physical = bioc->stripes[i].physical; in read_zone_info()
2098 struct btrfs_device *dev = bioc->stripes[i].dev; in read_zone_info()
2112 btrfs_put_bioc(bioc); in read_zone_info()
/linux/include/trace/events/
H A Dbtrfs.h2407 TP_fast_assign_btrfs(rbio->bioc->fs_info,
2408 __entry->full_stripe = rbio->bioc->full_stripe_logical;
2415 __entry->total_stripes = rbio->bioc->num_stripes;