Lines Matching refs:logical
2875 int btrfs_num_copies(struct btrfs_mapping_tree *map_tree, u64 logical, u64 len) in btrfs_num_copies() argument
2883 em = lookup_extent_mapping(em_tree, logical, len); in btrfs_num_copies()
2887 BUG_ON(em->start > logical || em->start + em->len < logical); in btrfs_num_copies()
2916 u64 logical, u64 *length, in __btrfs_map_block() argument
2950 em = lookup_extent_mapping(em_tree, logical, *length); in __btrfs_map_block()
2955 (unsigned long long)logical, in __btrfs_map_block()
2960 BUG_ON(em->start > logical || em->start + em->len < logical); in __btrfs_map_block()
2962 offset = logical - em->start; in __btrfs_map_block()
3188 u64 logical, u64 *length, in btrfs_map_block() argument
3191 return __btrfs_map_block(map_tree, rw, logical, length, multi_ret, in btrfs_map_block()
3197 u64 **logical, int *naddrs, int *stripe_len) in btrfs_rmap_block() argument
3252 *logical = buf; in btrfs_rmap_block()
3368 u64 logical = (u64)bio->bi_sector << 9; in btrfs_map_bio() local
3380 ret = btrfs_map_block(map_tree, rw, logical, &map_length, &multi, in btrfs_map_bio()
3387 "len %llu\n", (unsigned long long)logical, in btrfs_map_bio()
3418 bio->bi_sector = logical >> 9; in btrfs_map_bio()
3479 u64 logical; in read_one_chunk() local
3487 logical = key->offset; in read_one_chunk()
3491 em = lookup_extent_mapping(&map_tree->map_tree, logical, 1); in read_one_chunk()
3495 if (em && em->start <= logical && em->start + em->len > logical) { in read_one_chunk()
3513 em->start = logical; in read_one_chunk()