Lines Matching full:physical
89 /* Set when @mirror_num, @dev, @physical and @logical are set. */
117 u64 physical; member
226 u64 physical; member
454 "%s at logical %llu on dev %s, physical %llu, root %llu, inode %llu, offset %llu, length %u, links … in scrub_print_warning_inode()
457 swarn->physical, in scrub_print_warning_inode()
468 …"%s at logical %llu on dev %s, physical %llu, root %llu, inode %llu, offset %llu: path resolving f… in scrub_print_warning_inode()
471 swarn->physical, in scrub_print_warning_inode()
479 bool is_super, u64 logical, u64 physical) in scrub_print_common_warning() argument
493 btrfs_warn_in_rcu(fs_info, "%s on device %s, physical %llu", in scrub_print_common_warning()
494 errstr, btrfs_dev_name(dev), physical); in scrub_print_common_warning()
501 swarn.physical = physical; in scrub_print_common_warning()
535 "%s at logical %llu on dev %s, physical %llu: metadata %s (level %d) in tree %llu", in scrub_print_common_warning()
537 swarn.physical, (ref_level ? "node" : "leaf"), in scrub_print_common_warning()
560 static int fill_writer_pointer_gap(struct scrub_ctx *sctx, u64 physical) in fill_writer_pointer_gap() argument
568 if (!btrfs_dev_is_sequential(sctx->wr_tgtdev, physical)) in fill_writer_pointer_gap()
571 if (sctx->write_pointer < physical) { in fill_writer_pointer_gap()
572 length = physical - sctx->write_pointer; in fill_writer_pointer_gap()
577 sctx->write_pointer = physical; in fill_writer_pointer_gap()
873 u64 physical = 0; in scrub_stripe_report_errors() local
887 * thus no need for dev/physical, error reporting still needs dev and physical. in scrub_stripe_report_errors()
906 physical = bioc->stripes[stripe_index].physical; in scrub_stripe_report_errors()
940 "fixed up error at logical %llu on dev %s physical %llu", in scrub_stripe_report_errors()
942 physical); in scrub_stripe_report_errors()
954 "unable to fixup (regular) error at logical %llu on dev %s physical %llu", in scrub_stripe_report_errors()
956 physical); in scrub_stripe_report_errors()
966 stripe->logical, physical); in scrub_stripe_report_errors()
970 stripe->logical, physical); in scrub_stripe_report_errors()
974 stripe->logical, physical); in scrub_stripe_report_errors()
1161 fill_writer_pointer_gap(sctx, stripe->physical + bio_off); in scrub_submit_write_bio()
1285 * Given a physical address, this will calculate it's
1291 static int get_raid56_logic_offset(u64 physical, int num, in get_raid56_logic_offset() argument
1300 last_offset = (physical - map->stripes[num].physical) * data_stripes; in get_raid56_logic_offset()
1459 u64 physical, u64 physical_end) in sync_write_pointer_for_zoned() argument
1470 physical, in sync_write_pointer_for_zoned()
1477 btrfs_dev_clear_zone_empty(sctx->wr_tgtdev, physical); in sync_write_pointer_for_zoned()
1527 struct btrfs_device *dev, u64 physical, in scrub_find_fill_first_stripe() argument
1572 stripe->physical = physical + stripe->logical - logical_start; in scrub_find_fill_first_stripe()
1879 sctx->stat.last_physical = stripe->physical + stripe_length(stripe); in flush_scrub_stripes()
1895 u64 logical, u32 length, u64 physical, in queue_scrub_stripe() argument
1913 &sctx->csum_path, dev, physical, in queue_scrub_stripe()
1969 u64 physical; in scrub_raid56_parity_stripe() local
1975 physical = map->stripes[stripe_index].physical + in scrub_raid56_parity_stripe()
1981 map->stripes[stripe_index].dev, physical, 1, in scrub_raid56_parity_stripe()
2109 u64 physical, int mirror_num) in scrub_simple_mirror() argument
2122 u64 cur_physical = physical + cur_logical - logical_start; in scrub_simple_mirror()
2150 sctx->stat.last_physical = physical + logical_length; in scrub_simple_mirror()
2213 const u64 orig_physical = map->stripes[stripe_index].physical; in scrub_simple_stripe()
2232 /* For physical offset, we just go to next stripe */ in scrub_simple_stripe()
2249 u64 physical = map->stripes[stripe_index].physical; in scrub_stripe() local
2251 const u64 physical_end = physical + dev_stripe_len; in scrub_stripe()
2267 btrfs_dev_is_sequential(sctx->wr_tgtdev, physical)) { in scrub_stripe()
2269 sctx->write_pointer = physical; in scrub_stripe()
2307 * Only @physical and @mirror_num needs to calculated using in scrub_stripe()
2311 scrub_dev, map->stripes[stripe_index].physical, in scrub_stripe()
2332 get_raid56_logic_offset(physical, stripe_index, map, &offset, NULL); in scrub_stripe()
2337 * using their physical offset. in scrub_stripe()
2339 while (physical < physical_end) { in scrub_stripe()
2340 ret = get_raid56_logic_offset(physical, stripe_index, map, in scrub_stripe()
2349 sctx->stat.last_physical = min(physical + BTRFS_STRIPE_LEN, in scrub_stripe()
2366 scrub_dev, physical, 1); in scrub_stripe()
2371 physical += BTRFS_STRIPE_LEN; in scrub_stripe()
2375 map->stripes[stripe_index].physical + dev_stripe_len; in scrub_stripe()
2377 sctx->stat.last_physical = physical; in scrub_stripe()
2401 map->stripes[stripe_index].physical, in scrub_stripe()
2441 map->stripes[i].physical == dev_offset) { in scrub_chunk()
2562 * a new block group (which uses different physical extents). in scrub_enumerate_chunks()
2765 struct page *page, u64 physical, u64 generation) in scrub_one_super() argument
2774 bio.bi_iter.bi_sector = physical >> SECTOR_SHIFT; in scrub_one_super()
2784 "super block at physical %llu devid %llu has bad csum", in scrub_one_super()
2785 physical, dev->devid); in scrub_one_super()
2790 "super block at physical %llu devid %llu has bad generation %llu expect %llu", in scrub_one_super()
2791 physical, dev->devid, in scrub_one_super()