Lines Matching defs:logical
89 /* Set when @mirror_num, @dev, @physical and @logical are set. */
116 u64 logical;
228 u64 logical;
455 "%s at logical %llu on dev %s, physical %llu, root %llu, inode %llu, offset %llu, length %u, links %u (path: %s)",
456 swarn->errstr, swarn->logical,
469 "%s at logical %llu on dev %s, physical %llu, root %llu, inode %llu, offset %llu: path resolving failed with ret=%d",
470 swarn->errstr, swarn->logical,
480 bool is_super, u64 logical, u64 physical)
503 swarn.logical = logical;
507 ret = extent_from_logical(fs_info, swarn.logical, path, &found_key,
529 "failed to resolve tree backref for logical %llu: %d",
530 swarn.logical, ret);
536 "%s at logical %llu on dev %s, physical %llu: metadata %s (level %d) in tree %llu",
537 errstr, swarn.logical, btrfs_dev_name(dev),
548 ctx.extent_item_pos = swarn.logical - found_key.objectid;
603 const u64 logical = stripe->logical + (sector_nr << fs_info->sectorsize_bits);
619 if (logical != btrfs_stack_header_bytenr(header)) {
624 logical, stripe->mirror_num,
625 btrfs_stack_header_bytenr(header), logical);
634 logical, stripe->mirror_num,
644 logical, stripe->mirror_num,
669 logical, stripe->mirror_num,
680 logical, stripe->mirror_num,
723 stripe->logical +
725 stripe->logical);
851 bbio->bio.bi_iter.bi_sector = (stripe->logical +
899 stripe->logical, &mapped_len, &bioc,
941 "fixed up error at logical %llu on dev %s physical %llu",
942 stripe->logical, btrfs_dev_name(dev),
946 "fixed up error at logical %llu on mirror %u",
947 stripe->logical, stripe->mirror_num);
955 "unable to fixup (regular) error at logical %llu on dev %s physical %llu",
956 stripe->logical, btrfs_dev_name(dev),
960 "unable to fixup (regular) error at logical %llu on mirror %u",
961 stripe->logical, stripe->mirror_num);
967 stripe->logical, physical);
971 stripe->logical, physical);
975 stripe->logical, physical);
1160 stripe->logical;
1187 * - Only needs logical bytenr and mirror_num
1218 bbio->bio.bi_iter.bi_sector = (stripe->logical +
1287 * logical offset. if this is a parity stripe, it will return
1288 * the most left data stripe's logical offset.
1455 static int sync_write_pointer_for_zoned(struct scrub_ctx *sctx, u64 logical,
1466 ret = btrfs_sync_zone_write_pointer(sctx->wr_tgtdev, logical,
1484 for (u64 cur_logical = max(stripe->logical, extent_start);
1485 cur_logical < min(stripe->logical + BTRFS_STRIPE_LEN,
1488 const int nr_sector = (cur_logical - stripe->logical) >>
1565 * whose logical bytenr is not BTRFS_STRIPE_LEN aligned.
1567 stripe->logical = round_down(cur_logical - bg->start, BTRFS_STRIPE_LEN) +
1569 stripe->physical = physical + stripe->logical - logical_start;
1573 stripe_end = stripe->logical + BTRFS_STRIPE_LEN - 1;
1616 stripe->logical, stripe_end,
1654 stripe->bg->length - stripe->logical) >>
1665 bbio->bio.bi_iter.bi_sector = stripe->logical >> SECTOR_SHIFT;
1704 stripe->logical,
1705 stripe->logical + (i << fs_info->sectorsize_bits));
1804 u64 logical, u32 length, u64 physical,
1823 mirror_num, logical, length, stripe);
1827 *found_logical_ret = stripe->logical;
1900 stripe->logical = full_stripe_start +
2028 /* Go through each extent items inside the logical range */
2084 /* Get the logical bytenr for the stripe */
2160 u64 logical;
2162 /* The logical increment after finishing one stripe */
2234 /* Calculate the logical end of the stripe */
2249 &logical, &stripe_logical);
2250 logical += chunk_logical;
2269 ret = scrub_simple_mirror(sctx, bg, map, logical, BTRFS_STRIPE_LEN,
2274 logical += increment;
2474 * logical start offset of the deleted block group, stored at
2475 * @chunk_offset, might be part of the logical address range of
2503 * group doesn't get its logical address and its device extents