Lines Matching refs:bytenr
572 static u64 get_full_stripe_logical(struct btrfs_block_group *cache, u64 bytenr) in get_full_stripe_logical() argument
586 ret = div64_u64(bytenr - cache->start, cache->full_stripe_len) * in get_full_stripe_logical()
602 static int lock_full_stripe(struct btrfs_fs_info *fs_info, u64 bytenr, in lock_full_stripe() argument
612 bg_cache = btrfs_lookup_block_group(fs_info, bytenr); in lock_full_stripe()
623 fstripe_start = get_full_stripe_logical(bg_cache, bytenr); in lock_full_stripe()
649 static int unlock_full_stripe(struct btrfs_fs_info *fs_info, u64 bytenr, in unlock_full_stripe() argument
663 bg_cache = btrfs_lookup_block_group(fs_info, bytenr); in unlock_full_stripe()
672 fstripe_start = get_full_stripe_logical(bg_cache, bytenr); in unlock_full_stripe()
967 ctx.bytenr = found_key.objectid; in scrub_print_warning()
2678 if (sum->bytenr > logical) in scrub_find_csum()
2687 if (sum->bytenr + sum->len <= logical) { in scrub_find_csum()
2694 index = (logical - sum->bytenr) >> sctx->fs_info->sectorsize_bits; in scrub_find_csum()
4175 u64 bytenr; in scrub_supers() local
4190 bytenr = btrfs_sb_offset(i); in scrub_supers()
4191 if (bytenr + BTRFS_SUPER_INFO_SIZE > in scrub_supers()
4194 if (!btrfs_check_super_location(scrub_dev, bytenr)) in scrub_supers()
4197 ret = scrub_sectors(sctx, bytenr, BTRFS_SUPER_INFO_SIZE, bytenr, in scrub_supers()
4199 NULL, bytenr); in scrub_supers()