diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index b8fab44394f5..95b4815dc04b 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -6230,6 +6230,8 @@ static int __btrfs_map_block(struct btrfs_fs_info *fs_info, map = em->map_lookup; + pr_info("%s: logical=%llu chunk start=%llu len=%llu type=0x%llx\n", __func__, + logical, em->start, em->len, map->type); *length = geom.len; stripe_len = geom.stripe_len; stripe_nr = geom.stripe_nr; @@ -6372,6 +6374,9 @@ static int __btrfs_map_block(struct btrfs_fs_info *fs_info, bbio->stripes[i].physical = map->stripes[stripe_index].physical + stripe_offset + stripe_nr * map->stripe_len; bbio->stripes[i].dev = map->stripes[stripe_index].dev; + pr_info("%s: stripe[%d] devid=%llu phy=%llu\n", __func__, i, + bbio->stripes[i].dev->devid, + bbio->stripes[i].physical); stripe_index++; }