| /linux-6.15/fs/btrfs/ |
| H A D | scrub.c | 233 if (!stripe) in release_scrub_stripe() 254 memset(stripe, 0, sizeof(*stripe)); in init_scrub_stripe() 268 stripe->sectors = kcalloc(stripe->nr_sectors, in init_scrub_stripe() 946 stripe->logical, stripe->mirror_num); in scrub_stripe_report_errors() 960 stripe->logical, stripe->mirror_num); in scrub_stripe_report_errors() 1024 stripe->init_error_bitmap = stripe->error_bitmap; in scrub_stripe_read_repair_worker() 1631 stripe->sectors[sector_nr].csum = stripe->csums + in scrub_find_fill_first_stripe() 1660 stripe->bg->start + stripe->bg->length - stripe->logical); in stripe_length() 1881 &stripe->error_bitmap, stripe->nr_sectors); in flush_scrub_stripes() 2055 &stripe->extent_sector_bitmap, stripe->nr_sectors); in scrub_raid56_parity_stripe() [all …]
|
| H A D | raid56.c | 1151 if (!stripe->dev->bdev) { in rbio_add_io_sector() 1298 int stripe; in generate_pq_vertical() local 1302 for (stripe = 0; stripe < rbio->nr_data; stripe++) { in generate_pq_vertical() 1331 for (stripe = stripe - 1; stripe >= 0; stripe--) in generate_pq_vertical() 1341 int stripe; in rmw_assemble_write_bios() local 1370 if (stripe < rbio->nr_data) { in rmw_assemble_write_bios() 1420 if (stripe < rbio->nr_data) { in rmw_assemble_write_bios() 2516 int stripe; in finish_parity_scrub() local 2579 for (stripe = 0; stripe < nr_data; stripe++) { in finish_parity_scrub() 2606 for (stripe = nr_data - 1; stripe >= 0; stripe--) in finish_parity_scrub() [all …]
|
| H A D | raid-stripe-tree.c | 370 u32 stripe_index, struct btrfs_io_stripe *stripe) in btrfs_get_raid_extent_offset() argument 395 if (stripe->rst_search_commit_root) { in btrfs_get_raid_extent_offset() 448 if (devid != stripe->dev->devid) in btrfs_get_raid_extent_offset() 454 stripe->physical = physical + offset; in btrfs_get_raid_extent_offset() 457 stripe->physical, devid); in btrfs_get_raid_extent_offset() 468 if (ret && ret != -EIO && !stripe->rst_search_commit_root) { in btrfs_get_raid_extent_offset() 471 logical, logical + *length, stripe->dev->devid, in btrfs_get_raid_extent_offset()
|
| H A D | bio.c | 376 struct btrfs_io_stripe *stripe = bio->bi_private; in btrfs_orig_write_end_io() local 377 struct btrfs_io_context *bioc = stripe->bioc; in btrfs_orig_write_end_io() 384 btrfs_log_dev_io_error(bio, stripe->dev); in btrfs_orig_write_end_io() 397 stripe->physical = bio->bi_iter.bi_sector << SECTOR_SHIFT; in btrfs_orig_write_end_io() 405 struct btrfs_io_stripe *stripe = bio->bi_private; in btrfs_clone_write_end_io() local 408 atomic_inc(&stripe->bioc->error); in btrfs_clone_write_end_io() 409 btrfs_log_dev_io_error(bio, stripe->dev); in btrfs_clone_write_end_io() 411 stripe->physical = bio->bi_iter.bi_sector << SECTOR_SHIFT; in btrfs_clone_write_end_io() 415 bio_endio(stripe->bioc->orig_bio); in btrfs_clone_write_end_io()
|
| H A D | Makefile | 36 lru_cache.o raid-stripe-tree.o fiemap.o direct-io.o 47 tests/raid-stripe-tree-tests.o tests/delayed-refs-tests.o
|
| /linux-6.15/drivers/md/ |
| H A D | dm-stripe.c | 24 struct stripe { struct 47 struct stripe stripe[] __counted_by(stripes); argument 75 &sc->stripe[stripe].dev); in get_stripe() 79 sc->stripe[stripe].physical_start = start; in get_stripe() 233 uint32_t stripe; in stripe_map_range_sector() local 275 uint32_t stripe; in stripe_map() local 295 bio->bi_iter.bi_sector += sc->stripe[stripe].physical_start; in stripe_map() 296 bio_set_dev(bio, sc->stripe[stripe].dev->bdev); in stripe_map() 310 dev_sector += sc->stripe[stripe].physical_start; in stripe_dax_pgoff() 311 bdev = sc->stripe[stripe].dev->bdev; in stripe_dax_pgoff() [all …]
|
| /linux-6.15/fs/btrfs/tests/ |
| H A D | raid-stripe-tree-tests.c | 71 if (!stripe->dev) { in test_punch_hole_3extents() 92 if (!stripe->dev) { in test_punch_hole_3extents() 113 if (!stripe->dev) { in test_punch_hole_3extents() 247 if (!stripe->dev) { in test_delete_two_extents() 268 if (!stripe->dev) { in test_delete_two_extents() 289 if (!stripe->dev) { in test_delete_two_extents() 390 if (!stripe->dev) { in test_punch_hole() 530 if (!stripe->dev) { in test_front_delete_prev_item() 551 if (!stripe->dev) { in test_front_delete_prev_item() 670 if (!stripe->dev) { in test_front_delete() [all …]
|
| /linux-6.15/drivers/staging/media/ipu3/ |
| H A D | ipu3-css-params.c | 1005 osys->stripe[s].crop_top[pin] = in imgu_css_osys_calc() 1007 osys->stripe[s].input_width = in imgu_css_osys_calc() 1009 osys->stripe[s].input_height = in imgu_css_osys_calc() 1011 osys->stripe[s].block_height = in imgu_css_osys_calc() 1013 osys->stripe[s].block_width = in imgu_css_osys_calc() 1758 acc->stripe.input_frame.width = in imgu_css_cfg_acc_stripe() 1760 acc->stripe.input_frame.height = in imgu_css_cfg_acc_stripe() 1824 acc->stripe.bds_out_stripes[0]; in imgu_css_cfg_acc_stripe() 1826 acc->stripe.bds_out_stripes[1]; in imgu_css_cfg_acc_stripe() 1871 acc->stripe.out_frame_width = in imgu_css_cfg_acc_stripe() [all …]
|
| /linux-6.15/drivers/md/bcache/ |
| H A D | writeback.c | 601 int stripe; in bcache_dev_sectors_dirty_add() local 607 if (stripe < 0) in bcache_dev_sectors_dirty_add() 622 if (stripe >= d->nr_stripes) in bcache_dev_sectors_dirty_add() 637 stripe++; in bcache_dev_sectors_dirty_add() 656 int stripe; in refill_full_stripes() local 660 if (stripe < 0) in refill_full_stripes() 661 stripe = 0; in refill_full_stripes() 663 start_stripe = stripe; in refill_full_stripes() 669 if (stripe == dc->disk.nr_stripes) in refill_full_stripes() 686 stripe = next_stripe; in refill_full_stripes() [all …]
|
| H A D | writeback.h | 82 int stripe = offset_to_stripe(&dc->disk, offset); in bcache_dev_stripe_dirty() local 84 if (stripe < 0) in bcache_dev_stripe_dirty() 88 if (atomic_read(dc->disk.stripe_sectors_dirty + stripe)) in bcache_dev_stripe_dirty() 95 stripe++; in bcache_dev_stripe_dirty()
|
| /linux-6.15/Documentation/driver-api/md/ |
| H A D | raid5-ppl.rst | 6 addressed by PPL is that after a dirty shutdown, parity of a particular stripe 15 Partial parity for a write operation is the XOR of stripe data chunks not 18 the stripe, consistent with its state before the write operation, regardless of 20 this stripe is missing, this updated parity can be used to recover its 29 stripe. It does not require a dedicated journaling drive. Write performance is 36 silent data corruption. If a dirty disk of a stripe is lost, no PPL recovery is 37 performed for this stripe (parity is not updated). So it is possible to have 38 arbitrary data in the written part of a stripe if that disk is lost. In such
|
| H A D | raid5-cache.rst | 27 and parity don't match. The reason is that a stripe write involves several RAID 52 write. If a write crosses all RAID disks of a stripe, we call it full-stripe 53 write. For non-full-stripe writes, MD must read old data before the new parity 57 RAID disks only after the data becomes a full stripe write. This will 101 release the memory cache. The flush conditions could be stripe becomes a full 102 stripe write, free cache disk space is low or free in-kernel memory cache space 107 data and data. If MD finds a stripe with data and valid parities (1 parity for
|
| /linux-6.15/fs/nfs/blocklayout/ |
| H A D | dev.c | 185 p = xdr_decode_hyper(p, &b->stripe.chunk_size); in nfs4_block_decode_volume() 186 b->stripe.volumes_count = be32_to_cpup(p++); in nfs4_block_decode_volume() 187 if (b->stripe.volumes_count > PNFS_BLOCK_MAX_DEVICES) { in nfs4_block_decode_volume() 188 dprintk("Too many volumes: %d\n", b->stripe.volumes_count); in nfs4_block_decode_volume() 192 p = xdr_inline_decode(xdr, b->stripe.volumes_count * 4); in nfs4_block_decode_volume() 195 for (i = 0; i < b->stripe.volumes_count; i++) in nfs4_block_decode_volume() 196 b->stripe.volumes[i] = be32_to_cpup(p++); in nfs4_block_decode_volume() 490 d->children = kcalloc(v->stripe.volumes_count, in bl_parse_stripe() 495 for (i = 0; i < v->stripe.volumes_count; i++) { in bl_parse_stripe() 497 volumes, v->stripe.volumes[i], gfp_mask); in bl_parse_stripe() [all …]
|
| /linux-6.15/tools/testing/selftests/ublk/ |
| H A D | stripe.c | 12 struct stripe { struct 23 struct stripe s[NR_STRIPE]; argument 56 struct stripe *t = &s->s[i]; in alloc_stripe_array() 87 struct stripe *this = &s->s[idx]; in calculate_stripe_array() 149 struct stripe *t = &s->s[i - zc]; in stripe_queue_tgt_rw_io() 284 unsigned chunk_size = ctx->stripe.chunk_size; in ublk_stripe_tgt_init() 355 ctx->stripe.chunk_size = 65536; in ublk_stripe_cmd_line() 361 ctx->stripe.chunk_size = strtol(optarg, NULL, 10); in ublk_stripe_cmd_line()
|
| H A D | test_generic_04.sh | 31 ublk_run_recover_test -t stripe -q 2 -r 1 "${UBLK_BACKFILES[1]}" "${UBLK_BACKFILES[2]}" & 36 ublk_run_recover_test -t stripe -q 2 -r 1 -i 1 "${UBLK_BACKFILES[1]}" "${UBLK_BACKFILES[2]}" &
|
| H A D | test_generic_05.sh | 35 ublk_run_recover_test -t stripe -q 2 -r 1 -z "${UBLK_BACKFILES[1]}" "${UBLK_BACKFILES[2]}" & 40 ublk_run_recover_test -t stripe -q 2 -r 1 -z -i 1 "${UBLK_BACKFILES[1]}" "${UBLK_BACKFILES[2]}" &
|
| H A D | test_stripe_04.sh | 14 dev_id=$(_add_ublk_dev -t stripe -z -q 2 "${UBLK_BACKFILES[0]}" "${UBLK_BACKFILES[1]}")
|
| H A D | test_stripe_02.sh | 14 dev_id=$(_add_ublk_dev -t stripe "${UBLK_BACKFILES[0]}" "${UBLK_BACKFILES[1]}")
|
| H A D | test_stripe_01.sh | 18 dev_id=$(_add_ublk_dev -t stripe "${UBLK_BACKFILES[0]}" "${UBLK_BACKFILES[1]}")
|
| /linux-6.15/fs/bcachefs/ |
| H A D | alloc_background_format.h | 19 x(stripe, 32) \ 42 x(stripe, 32) \ 70 __u32 stripe; member
|
| H A D | alloc_foreground.c | 609 return cmp_int(stripe->next_alloc[l], stripe->next_alloc[r]); in __dev_stripe_cmp() 615 struct dev_stripe_state *stripe, in bch2_dev_alloc_list() argument 644 for (u64 *v = stripe->next_alloc; in bch2_stripe_state_rescale() 645 v < stripe->next_alloc + ARRAY_SIZE(stripe->next_alloc); v++) { in bch2_stripe_state_rescale() 654 for (u64 *v = stripe->next_alloc; in bch2_stripe_state_rescale() 655 v < stripe->next_alloc + ARRAY_SIZE(stripe->next_alloc); v++) in bch2_stripe_state_rescale() 660 struct dev_stripe_state *stripe, in bch2_dev_stripe_increment_inlined() argument 672 u64 *v = stripe->next_alloc + ca->dev_idx; in bch2_dev_stripe_increment_inlined() 683 bch2_stripe_state_rescale(stripe); in bch2_dev_stripe_increment_inlined() 687 struct dev_stripe_state *stripe) in bch2_dev_stripe_increment() argument [all …]
|
| H A D | alloc_background.h | 45 dst->stripe = src.stripe; in alloc_to_bucket() 55 dst->stripe = src.stripe; in __bucket_m_to_alloc() 131 if (a.stripe) in alloc_data_type()
|
| H A D | alloc_types.h | 28 x(stripe) \ 115 struct dev_stripe_state stripe; member
|
| /linux-6.15/Documentation/admin-guide/device-mapper/ |
| H A D | unstriped.rst | 14 <number of stripes> <chunk size> <stripe #> <dev_path> <offset> 25 <stripe #> 26 The stripe number within the device that corresponds to physical 33 An example of undoing an existing dm-stripe 88 in a 256k stripe across the two cores::
|
| /linux-6.15/drivers/staging/media/atomisp/pci/isp/modes/interface/ |
| H A D | isp_const.h | 67 #define CEIL_ROUND_DIV_STRIPE(width, stripe, padding) \ argument 68 …CEIL_MUL(padding + CEIL_DIV(width - padding, stripe), ((ENABLE_RAW_BINNING || ENABLE_FIXED_BAYER_D…
|