Home
last modified time | relevance | path

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

/linux/fs/btrfs/
H A Dbio.c366 struct btrfs_io_context *bioc = bio->bi_private; in btrfs_raid56_end_io() local
369 btrfs_bio_counter_dec(bioc->fs_info); in btrfs_raid56_end_io()
370 bbio->mirror_num = bioc->mirror_num; in btrfs_raid56_end_io()
376 btrfs_put_bioc(bioc); in btrfs_raid56_end_io()
382 struct btrfs_io_context *bioc = stripe->bioc; in btrfs_orig_write_end_io() local
385 btrfs_bio_counter_dec(bioc->fs_info); in btrfs_orig_write_end_io()
388 atomic_inc(&bioc->error); in btrfs_orig_write_end_io()
396 if (atomic_read(&bioc->error) > bioc->max_errors) in btrfs_orig_write_end_io()
405 btrfs_put_bioc(bioc); in btrfs_orig_write_end_io()
413 atomic_inc(&stripe->bioc->error); in btrfs_clone_write_end_io()
[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()
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 Draid-stripe-tree.c112 struct btrfs_io_context *bioc) in btrfs_insert_one_raid_extent() argument
117 const int num_stripes = btrfs_bg_type_to_factor(bioc->map_type); in btrfs_insert_one_raid_extent()
129 trace_btrfs_insert_one_raid_extent(fs_info, bioc->logical, bioc->size, in btrfs_insert_one_raid_extent()
132 u64 devid = bioc->stripes[i].dev->devid; in btrfs_insert_one_raid_extent()
133 u64 physical = bioc->stripes[i].physical; in btrfs_insert_one_raid_extent()
134 u64 length = bioc->stripes[i].length; in btrfs_insert_one_raid_extent()
138 length = bioc->size; in btrfs_insert_one_raid_extent()
144 stripe_key.objectid = bioc->logical; in btrfs_insert_one_raid_extent()
146 stripe_key.offset = bioc->size; in btrfs_insert_one_raid_extent()
164 struct btrfs_io_context *bioc; in btrfs_insert_raid_extent() 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 Dvolumes.c5927 struct btrfs_io_context *bioc; in alloc_btrfs_io_context() local
5929 bioc = kzalloc( in alloc_btrfs_io_context()
5936 if (!bioc) in alloc_btrfs_io_context()
5939 refcount_set(&bioc->refs, 1); in alloc_btrfs_io_context()
5941 bioc->fs_info = fs_info; in alloc_btrfs_io_context()
5942 bioc->replace_stripe_src = -1; in alloc_btrfs_io_context()
5943 bioc->full_stripe_logical = (u64)-1; in alloc_btrfs_io_context()
5944 bioc->logical = logical; in alloc_btrfs_io_context()
5946 return bioc; in alloc_btrfs_io_context()
5949 void btrfs_get_bioc(struct btrfs_io_context *bioc) in btrfs_get_bioc() argument
[all …]
H A Dvolumes.h455 struct btrfs_io_context *bioc; member
678 void btrfs_get_bioc(struct btrfs_io_context *bioc);
679 void btrfs_put_bioc(struct btrfs_io_context *bioc);
H A Dscrub.c891 struct btrfs_io_context *bioc = NULL; in scrub_stripe_report_errors() local
898 stripe->logical, &mapped_len, &bioc, in scrub_stripe_report_errors()
906 physical = bioc->stripes[stripe_index].physical; in scrub_stripe_report_errors()
907 dev = bioc->stripes[stripe_index].dev; in scrub_stripe_report_errors()
908 btrfs_put_bioc(bioc); in scrub_stripe_report_errors()
1692 struct btrfs_io_context *bioc = NULL; in scrub_submit_extent_sector_read() local
1704 &stripe_len, &bioc, &io_stripe, &mirror); in scrub_submit_extent_sector_read()
1705 btrfs_put_bioc(bioc); in scrub_submit_extent_sector_read()
1943 struct btrfs_io_context *bioc = NULL; in scrub_raid56_parity_stripe() local
2063 &length, &bioc, NULL, NULL); in scrub_raid56_parity_stripe()
[all …]
H A Dzoned.c1994 struct btrfs_io_context *bioc = NULL; in read_zone_info() local
2001 &mapped_length, &bioc, NULL, NULL); in read_zone_info()
2002 if (ret || !bioc || mapped_length < PAGE_SIZE) { in read_zone_info()
2007 if (bioc->map_type & BTRFS_BLOCK_GROUP_RAID56_MASK) { in read_zone_info()
2013 nmirrors = (int)bioc->num_stripes; in read_zone_info()
2015 u64 physical = bioc->stripes[i].physical; in read_zone_info()
2016 struct btrfs_device *dev = bioc->stripes[i].dev; in read_zone_info()
2030 btrfs_put_bioc(bioc); in read_zone_info()
/linux/include/trace/events/
H A Dbtrfs.h2415 TP_fast_assign_btrfs(rbio->bioc->fs_info,
2416 __entry->full_stripe = rbio->bioc->full_stripe_logical;
2423 __entry->total_stripes = rbio->bioc->num_stripes;