Lines Matching refs:bytenr
393 static u64 get_full_stripe_logical(struct btrfs_block_group *cache, u64 bytenr) in get_full_stripe_logical() argument
407 ret = div64_u64(bytenr - cache->start, cache->full_stripe_len) * in get_full_stripe_logical()
423 static int lock_full_stripe(struct btrfs_fs_info *fs_info, u64 bytenr, in lock_full_stripe() argument
433 bg_cache = btrfs_lookup_block_group(fs_info, bytenr); in lock_full_stripe()
444 fstripe_start = get_full_stripe_logical(bg_cache, bytenr); in lock_full_stripe()
470 static int unlock_full_stripe(struct btrfs_fs_info *fs_info, u64 bytenr, in unlock_full_stripe() argument
484 bg_cache = btrfs_lookup_block_group(fs_info, bytenr); in unlock_full_stripe()
493 fstripe_start = get_full_stripe_logical(bg_cache, bytenr); in unlock_full_stripe()
2376 if (sum->bytenr > logical) in scrub_find_csum()
2378 if (sum->bytenr + sum->len > logical) in scrub_find_csum()
2389 index = div_u64(logical - sum->bytenr, sctx->fs_info->sectorsize); in scrub_find_csum()
3695 u64 bytenr; in scrub_supers() local
3710 bytenr = btrfs_sb_offset(i); in scrub_supers()
3711 if (bytenr + BTRFS_SUPER_INFO_SIZE > in scrub_supers()
3715 ret = scrub_pages(sctx, bytenr, BTRFS_SUPER_INFO_SIZE, bytenr, in scrub_supers()
3717 NULL, 1, bytenr); in scrub_supers()