Lines Matching defs:bytenr
389 * Helper to get full stripe logical from a normal bytenr.
393 static u64 get_full_stripe_logical(struct btrfs_block_group *cache, u64 bytenr)
407 ret = div64_u64(bytenr - cache->start, cache->full_stripe_len) *
418 * Return 0 if we locked full stripe covering @bytenr, with a mutex held.
423 static int lock_full_stripe(struct btrfs_fs_info *fs_info, u64 bytenr,
433 bg_cache = btrfs_lookup_block_group(fs_info, bytenr);
444 fstripe_start = get_full_stripe_logical(bg_cache, bytenr);
470 static int unlock_full_stripe(struct btrfs_fs_info *fs_info, u64 bytenr,
484 bg_cache = btrfs_lookup_block_group(fs_info, bytenr);
493 fstripe_start = get_full_stripe_logical(bg_cache, bytenr);
2376 if (sum->bytenr > logical)
2378 if (sum->bytenr + sum->len > logical)
2389 index = div_u64(logical - sum->bytenr, sctx->fs_info->sectorsize);
3702 u64 bytenr;
3717 bytenr = btrfs_sb_offset(i);
3718 if (bytenr + BTRFS_SUPER_INFO_SIZE >
3722 ret = scrub_pages(sctx, bytenr, BTRFS_SUPER_INFO_SIZE, bytenr,
3724 NULL, 1, bytenr);