Home
last modified time | relevance | path

Searched refs:logical (Results 1 – 25 of 25) sorted by relevance

/fs/btrfs/
Dreada.c54 u64 logical; member
89 static int reada_add_block(struct reada_control *rc, u64 logical,
224 static struct reada_zone *reada_find_zone(struct btrfs_device *dev, u64 logical, in reada_find_zone() argument
238 logical >> PAGE_SHIFT, 1); in reada_find_zone()
239 if (ret == 1 && logical >= zone->start && logical <= zone->end) { in reada_find_zone()
247 cache = btrfs_lookup_block_group(fs_info, logical); in reada_find_zone()
287 logical >> PAGE_SHIFT, 1); in reada_find_zone()
288 if (ret == 1 && logical >= zone->start && logical <= zone->end) in reada_find_zone()
300 u64 logical, in reada_find_extent() argument
312 unsigned long index = logical >> PAGE_SHIFT; in reada_find_extent()
[all …]
Dscrub.c69 u64 logical; member
89 u64 logical; member
198 u64 logical; member
204 u64 logical; member
237 static int scrub_pages(struct scrub_ctx *sctx, u64 logical, u64 len,
334 if (fstripe_logical < entry->logical) { in insert_full_stripe_lock()
336 } else if (fstripe_logical > entry->logical) { in insert_full_stripe_lock()
350 ret->logical = fstripe_logical; in insert_full_stripe_lock()
377 if (fstripe_logical < entry->logical) in search_full_stripe_lock()
379 else if (fstripe_logical > entry->logical) in search_full_stripe_lock()
[all …]
Dvolumes.h296 u64 logical; member
424 u64 logical, u64 *length,
427 u64 logical, u64 *length,
430 u64 logical, u64 len, struct btrfs_io_geometry *io_geom);
432 u64 physical, u64 **logical, int *naddrs, int *stripe_len);
458 int btrfs_num_copies(struct btrfs_fs_info *fs_info, u64 logical, u64 len);
489 u64 logical, u64 len);
491 u64 logical);
496 u64 logical, u64 length);
Dtree-checker.c521 const struct btrfs_chunk *chunk, u64 logical, in chunk_err() argument
554 logical, &vaf); in chunk_err()
559 logical, &vaf); in chunk_err()
570 struct btrfs_chunk *chunk, u64 logical) in btrfs_check_chunk_valid() argument
588 chunk_err(leaf, chunk, logical, in btrfs_check_chunk_valid()
592 if (!IS_ALIGNED(logical, fs_info->sectorsize)) { in btrfs_check_chunk_valid()
593 chunk_err(leaf, chunk, logical, in btrfs_check_chunk_valid()
595 logical, fs_info->sectorsize); in btrfs_check_chunk_valid()
599 chunk_err(leaf, chunk, logical, in btrfs_check_chunk_valid()
606 chunk_err(leaf, chunk, logical, in btrfs_check_chunk_valid()
[all …]
Dbackref.h22 int extent_from_logical(struct btrfs_fs_info *fs_info, u64 logical,
36 int iterate_inodes_from_logical(u64 logical, struct btrfs_fs_info *fs_info,
Dvolumes.c198 u64 logical, u64 *length,
2939 u64 logical, u64 length) in btrfs_get_chunk_map() argument
2946 em = lookup_extent_mapping(em_tree, logical, length); in btrfs_get_chunk_map()
2951 logical, length); in btrfs_get_chunk_map()
2955 if (em->start > logical || em->start + em->len < logical) { in btrfs_get_chunk_map()
2958 logical, length, em->start, em->start + em->len); in btrfs_get_chunk_map()
5388 int btrfs_num_copies(struct btrfs_fs_info *fs_info, u64 logical, u64 len) in btrfs_num_copies() argument
5394 em = btrfs_get_chunk_map(fs_info, logical, len); in btrfs_num_copies()
5434 u64 logical) in btrfs_full_stripe_len() argument
5440 em = btrfs_get_chunk_map(fs_info, logical, len); in btrfs_full_stripe_len()
[all …]
Dtree-checker.h27 struct btrfs_chunk *chunk, u64 logical);
Dbackref.c1688 int extent_from_logical(struct btrfs_fs_info *fs_info, u64 logical, argument
1704 key.objectid = logical;
1723 if (found_key->objectid > logical ||
1724 found_key->objectid + size <= logical) {
1726 "logical %llu is not within any extent", logical);
1739 logical, logical - found_key->objectid, found_key->objectid,
1969 int iterate_inodes_from_logical(u64 logical, struct btrfs_fs_info *fs_info, argument
1980 ret = extent_from_logical(fs_info, logical, path, &found_key, &flags);
1987 extent_item_pos = logical - found_key.objectid;
Dctree.c283 u64 logical; member
289 u64 logical; member
419 if (cur->logical < tm->logical) in __tree_mod_log_insert()
421 else if (cur->logical > tm->logical) in __tree_mod_log_insert()
482 tm->logical = eb->start; in alloc_tree_mod_elem()
543 tm->logical = eb->start; in tree_mod_log_insert_move()
652 tm->logical = new_root->start; in tree_mod_log_insert_root()
653 tm->old_root.logical = old_root->start; in tree_mod_log_insert_root()
698 if (cur->logical < start) { in __tree_mod_log_search()
700 } else if (cur->logical > start) { in __tree_mod_log_search()
[all …]
Draid56.h40 u64 logical);
Draid56.c1392 u64 logical = bio->bi_iter.bi_sector; in find_logical_bio_stripe() local
1396 logical <<= 9; in find_logical_bio_stripe()
1400 if (logical >= stripe_start && in find_logical_bio_stripe()
1401 logical < stripe_start + rbio->stripe_len) { in find_logical_bio_stripe()
2310 u64 logical) in raid56_add_scrub_pages() argument
2315 ASSERT(logical >= rbio->bbio->raid_map[0]); in raid56_add_scrub_pages()
2316 ASSERT(logical + PAGE_SIZE <= rbio->bbio->raid_map[0] + in raid56_add_scrub_pages()
2318 stripe_offset = (int)(logical - rbio->bbio->raid_map[0]); in raid56_add_scrub_pages()
Dextent_io.c2176 u64 length, u64 logical, struct page *page, in repair_io_failure() argument
2199 if (btrfs_is_parity_mirror(fs_info, logical, length)) { in repair_io_failure()
2206 ret = btrfs_map_block(fs_info, BTRFS_MAP_READ, logical, in repair_io_failure()
2215 ret = btrfs_map_block(fs_info, BTRFS_MAP_WRITE, logical, in repair_io_failure()
2324 num_copies = btrfs_num_copies(fs_info, failrec->logical, in clean_io_failure()
2328 failrec->logical, page, pg_offset, in clean_io_failure()
2383 u64 logical; in btrfs_get_io_failure_record() local
2415 logical = start - em->start; in btrfs_get_io_failure_record()
2416 logical = em->block_start + logical; in btrfs_get_io_failure_record()
2418 logical = em->block_start; in btrfs_get_io_failure_record()
[all …]
Dblock-group.c1524 u64 *logical; in exclude_super_stripes() local
1540 bytenr, &logical, &nr, &stripe_len); in exclude_super_stripes()
1547 if (logical[nr] > cache->key.objectid + in exclude_super_stripes()
1551 if (logical[nr] + stripe_len <= cache->key.objectid) in exclude_super_stripes()
1554 start = logical[nr]; in exclude_super_stripes()
1557 len = (logical[nr] + stripe_len) - start; in exclude_super_stripes()
1567 kfree(logical); in exclude_super_stripes()
1572 kfree(logical); in exclude_super_stripes()
Dextent_io.h509 u64 length, u64 logical, struct page *page,
530 u64 logical; member
Dinode.c2022 u64 logical = (u64)bio->bi_iter.bi_sector << 9; in btrfs_bio_fits_in_stripe() local
2033 ret = btrfs_get_io_geometry(fs_info, btrfs_op(bio), logical, map_length, in btrfs_bio_fits_in_stripe()
7904 num_copies = btrfs_num_copies(fs_info, failrec->logical, failrec->len); in btrfs_check_dio_repairable()
7967 isector = start - btrfs_io_bio(failed_bio)->logical; in dio_read_error()
8037 start = io_bio->logical; in __btrfs_correct_data_nocsum()
8146 start = io_bio->logical; in __btrfs_subio_endio_read()
8470 btrfs_io_bio(bio)->logical = file_offset; in btrfs_submit_direct_hook()
8551 io_bio->logical = file_offset; in btrfs_submit_direct()
Dsend.c1302 u64 logical; in find_extent_clone() local
1355 logical = disk_byte + btrfs_file_extent_offset(eb, fi); in find_extent_clone()
1426 extent_item_pos = logical - found_key.objectid; in find_extent_clone()
1447 data_offset, ino, num_bytes, logical); in find_extent_clone()
Dioctl.c4506 ret = iterate_inodes_from_logical(loi->logical, fs_info, path, in btrfs_ioctl_logical_to_ino()
/fs/
Dioctl.c90 int fiemap_fill_next_extent(struct fiemap_extent_info *fieinfo, u64 logical, in fiemap_fill_next_extent() argument
113 extent.fe_logical = logical; in fiemap_fill_next_extent()
297 u64 logical = 0, phys = 0, size = 0; in __generic_block_fiemap() local
359 ret = fiemap_fill_next_extent(fieinfo, logical, in __generic_block_fiemap()
363 ret = fiemap_fill_next_extent(fieinfo, logical, in __generic_block_fiemap()
388 ret = fiemap_fill_next_extent(fieinfo, logical, in __generic_block_fiemap()
399 ret = fiemap_fill_next_extent(fieinfo, logical, in __generic_block_fiemap()
406 logical = blk_to_logical(inode, start_blk); in __generic_block_fiemap()
418 if (!past_eof && logical + size >= isize) in __generic_block_fiemap()
/fs/freevxfs/
DKconfig20 There is a userspace utility for HP-UX logical volumes which makes
21 creating HP-UX logical volumes easy from HP-UX disk block device file
/fs/nilfs2/
Dinode.c999 __u64 logical = 0, phys = 0, size = 0; in nilfs_fiemap() local
1030 fieinfo, logical, phys, size, flags); in nilfs_fiemap()
1038 logical = blkoff << blkbits; in nilfs_fiemap()
1080 fieinfo, logical, phys, size, flags); in nilfs_fiemap()
1095 fieinfo, logical, phys, size, in nilfs_fiemap()
1102 logical = blkoff << blkbits; in nilfs_fiemap()
1109 logical = blkoff << blkbits; in nilfs_fiemap()
/fs/ext4/
Dextents.c954 int logical, ext4_fsblk_t ptr) in ext4_ext_insert_index() argument
963 if (unlikely(logical == le32_to_cpu(curp->p_idx->ei_block))) { in ext4_ext_insert_index()
966 logical, le32_to_cpu(curp->p_idx->ei_block)); in ext4_ext_insert_index()
979 if (logical > le32_to_cpu(curp->p_idx->ei_block)) { in ext4_ext_insert_index()
981 ext_debug("insert new index %d after: %llu\n", logical, ptr); in ext4_ext_insert_index()
985 ext_debug("insert new index %d before: %llu\n", logical, ptr); in ext4_ext_insert_index()
994 logical, len, ix, ix + 1); in ext4_ext_insert_index()
1003 ix->ei_block = cpu_to_le32(logical); in ext4_ext_insert_index()
1438 ext4_lblk_t *logical, ext4_fsblk_t *phys) in ext4_ext_search_left() argument
1445 EXT4_ERROR_INODE(inode, "path == NULL *logical %d!", *logical); in ext4_ext_search_left()
[all …]
Dindirect.c590 ar.logical = map->m_lblk; in ext4_ind_map_blocks()
Dmballoc.c4241 ac->ac_b_ex.fe_logical = EXT4_LBLK_CMASK(sbi, ar->logical); in ext4_mb_initialize_context()
4258 (unsigned) ar->len, (unsigned) ar->logical, in ext4_mb_initialize_context()
Dext4.h152 ext4_lblk_t logical; member
/fs/f2fs/
Ddata.c1710 u64 logical = 0, phys = 0, size = 0; in f2fs_fiemap() local
1767 ret = fiemap_fill_next_extent(fieinfo, logical, in f2fs_fiemap()
1774 logical = blk_to_logical(inode, start_blk); in f2fs_fiemap()