Lines Matching refs:dev_bytenr
142 u64 dev_bytenr; /* key, physical byte num on disk */ member
206 u64 dev_bytenr; /* physical bytenr on device */ member
262 u64 dev_bytenr,
321 u64 dev_bytenr, char **mapped_datav,
372 u64 dev_bytenr);
383 b->dev_bytenr = 0; in btrfsic_block_init()
494 (((unsigned int)(b->dev_bytenr >> 16)) ^ in btrfsic_block_hashtable_add()
508 u64 dev_bytenr, in btrfsic_block_hashtable_lookup() argument
512 (((unsigned int)(dev_bytenr >> 16)) ^ in btrfsic_block_hashtable_lookup()
518 if (b->dev_state->bdev == bdev && b->dev_bytenr == dev_bytenr) in btrfsic_block_hashtable_lookup()
539 (((unsigned int)(l->block_ref_to->dev_bytenr >> 16)) ^ in btrfsic_block_link_hashtable_add()
540 ((unsigned int)(l->block_ref_from->dev_bytenr >> 16)) ^ in btrfsic_block_link_hashtable_add()
574 l->block_ref_to->dev_bytenr == dev_bytenr_ref_to && in btrfsic_block_link_hashtable_lookup()
576 l->block_ref_from->dev_bytenr == dev_bytenr_ref_from) in btrfsic_block_link_hashtable_lookup()
717 tmp_next_block_ctx.dev_bytenr, in btrfsic_process_superblock()
723 tmp_next_block_ctx.dev_bytenr, in btrfsic_process_superblock()
726 state->latest_superblock->dev_bytenr, in btrfsic_process_superblock()
761 u64 dev_bytenr; in btrfsic_process_superblock_dev_mirror() local
770 dev_bytenr = btrfs_sb_offset(superblock_mirror_num); in btrfsic_process_superblock_dev_mirror()
771 if (dev_bytenr + BTRFS_SUPER_INFO_SIZE > device->commit_total_bytes) in btrfsic_process_superblock_dev_mirror()
774 page = read_cache_page_gfp(mapping, dev_bytenr >> PAGE_SHIFT, GFP_NOFS); in btrfsic_process_superblock_dev_mirror()
780 if (btrfs_super_bytenr(super_tmp) != dev_bytenr || in btrfsic_process_superblock_dev_mirror()
791 dev_bytenr, in btrfsic_process_superblock_dev_mirror()
800 superblock_tmp->dev_bytenr = dev_bytenr; in btrfsic_process_superblock_dev_mirror()
802 superblock_tmp->logical_bytenr = dev_bytenr; in btrfsic_process_superblock_dev_mirror()
813 rcu_str_deref(device->name), dev_bytenr, in btrfsic_process_superblock_dev_mirror()
814 dev_state->name, dev_bytenr, in btrfsic_process_superblock_dev_mirror()
1285 next_block_ctx->dev_bytenr, *mirror_nump, in btrfsic_create_link_to_next_block()
1292 next_block_ctx->dev_bytenr, *mirror_nump, in btrfsic_create_link_to_next_block()
1301 next_block_ctx->dev_bytenr, in btrfsic_create_link_to_next_block()
1303 block_ctx->dev_bytenr, in btrfsic_create_link_to_next_block()
1479 next_block_ctx.dev_bytenr, in btrfsic_handle_extent_data()
1519 block_ctx_out->dev_bytenr = 0; in btrfsic_map_block()
1536 block_ctx_out->dev_bytenr = multi->stripes[0].physical; in btrfsic_map_block()
1586 u64 dev_bytenr; in btrfsic_read_block() local
1592 if (!PAGE_ALIGNED(block_ctx->dev_bytenr)) { in btrfsic_read_block()
1594 block_ctx->dev_bytenr); in btrfsic_read_block()
1612 dev_bytenr = block_ctx->dev_bytenr; in btrfsic_read_block()
1619 bio->bi_iter.bi_sector = dev_bytenr >> 9; in btrfsic_read_block()
1639 dev_bytenr += (j - i) * PAGE_SIZE; in btrfsic_read_block()
1661 b_all->dev_bytenr, b_all->mirror_num); in btrfsic_dump_database()
1667 b_all->dev_bytenr, b_all->mirror_num, in btrfsic_dump_database()
1672 l->block_ref_to->dev_bytenr, in btrfsic_dump_database()
1680 b_all->dev_bytenr, b_all->mirror_num, in btrfsic_dump_database()
1685 l->block_ref_from->dev_bytenr, in btrfsic_dump_database()
1733 u64 dev_bytenr, char **mapped_datav, in btrfsic_process_written_block() argument
1757 block = btrfsic_block_hashtable_lookup(bdev, dev_bytenr, in btrfsic_process_written_block()
1793 dev_bytenr); in btrfsic_process_written_block()
1801 dev_bytenr, in btrfsic_process_written_block()
1809 dev_bytenr, block->mirror_num, in btrfsic_process_written_block()
1824 bytenr, dev_state->name, dev_bytenr, in btrfsic_process_written_block()
1836 dev_state->name, dev_bytenr, block->mirror_num, in btrfsic_process_written_block()
1850 dev_state->name, dev_bytenr, block->mirror_num, in btrfsic_process_written_block()
1880 block_ctx.dev_bytenr = dev_bytenr; in btrfsic_process_written_block()
1951 dev_bytenr); in btrfsic_process_written_block()
1978 dev_state->name, dev_bytenr); in btrfsic_process_written_block()
1993 dev_bytenr); in btrfsic_process_written_block()
1996 bytenr, dev_state->name, dev_bytenr); in btrfsic_process_written_block()
2000 block_ctx.dev_bytenr = dev_bytenr; in btrfsic_process_written_block()
2013 block->dev_bytenr = dev_bytenr; in btrfsic_process_written_block()
2054 block->dev_bytenr, block->mirror_num); in btrfsic_process_written_block()
2063 dev_bytenr); in btrfsic_process_written_block()
2070 dev_bytenr += processed_len; in btrfsic_process_written_block()
2101 block->dev_bytenr, block->mirror_num); in btrfsic_bio_end_io()
2137 superblock->dev_bytenr, superblock->mirror_num, in btrfsic_process_written_superblock()
2145 superblock->dev_bytenr, superblock->mirror_num, in btrfsic_process_written_superblock()
2292 block->dev_bytenr, block->mirror_num, in btrfsic_check_all_ref_blocks()
2297 l->block_ref_to->dev_bytenr, in btrfsic_check_all_ref_blocks()
2304 l->block_ref_to->dev_bytenr, in btrfsic_check_all_ref_blocks()
2312 l->block_ref_to->dev_bytenr, in btrfsic_check_all_ref_blocks()
2320 l->block_ref_to->dev_bytenr, in btrfsic_check_all_ref_blocks()
2333 l->block_ref_to->dev_bytenr, in btrfsic_check_all_ref_blocks()
2344 l->block_ref_to->dev_bytenr, in btrfsic_check_all_ref_blocks()
2384 block->dev_bytenr, block->mirror_num, in btrfsic_is_block_ref_by_superblock()
2389 l->block_ref_from->dev_bytenr, in btrfsic_is_block_ref_by_superblock()
2392 state->latest_superblock->dev_bytenr == in btrfsic_is_block_ref_by_superblock()
2393 l->block_ref_from->dev_bytenr && in btrfsic_is_block_ref_by_superblock()
2415 l->block_ref_from->dev_bytenr, l->block_ref_from->mirror_num, in btrfsic_print_add_link()
2418 l->block_ref_to->dev_state->name, l->block_ref_to->dev_bytenr, in btrfsic_print_add_link()
2430 l->block_ref_from->dev_bytenr, l->block_ref_from->mirror_num, in btrfsic_print_rem_link()
2433 l->block_ref_to->dev_state->name, l->block_ref_to->dev_bytenr, in btrfsic_print_rem_link()
2441 state->latest_superblock->dev_bytenr == block->dev_bytenr && in btrfsic_get_block_type()
2478 block->dev_bytenr, block->mirror_num); in btrfsic_dump_tree_sub()
2530 next_block_ctx->dev_bytenr, in btrfsic_block_link_lookup_or_add()
2532 from_block->dev_bytenr, in btrfsic_block_link_lookup_or_add()
2575 block_ctx->dev_bytenr, in btrfsic_block_lookup_or_add()
2591 block->dev_bytenr = block_ctx->dev_bytenr; in btrfsic_block_lookup_or_add()
2602 block->dev_bytenr, mirror_num); in btrfsic_block_lookup_or_add()
2618 u64 dev_bytenr) in btrfsic_cmp_log_and_dev_bytenr() argument
2639 dev_bytenr == block_ctx.dev_bytenr) { in btrfsic_cmp_log_and_dev_bytenr()
2649 bytenr, dev_state->name, dev_bytenr); in btrfsic_cmp_log_and_dev_bytenr()
2659 block_ctx.dev_bytenr, mirror_num); in btrfsic_cmp_log_and_dev_bytenr()
2684 u64 dev_bytenr; in __btrfsic_submit_bio() local
2692 dev_bytenr = 512 * bio->bi_iter.bi_sector; in __btrfsic_submit_bio()
2699 dev_bytenr, bio->bi_disk); in __btrfsic_submit_bio()
2705 cur_bytenr = dev_bytenr; in __btrfsic_submit_bio()
2718 btrfsic_process_written_block(dev_state, dev_bytenr, in __btrfsic_submit_bio()
2907 b_all->dev_bytenr, b_all->mirror_num); in btrfsic_unmount()