Lines Matching refs:sectorsize
329 sblock->len += sblock->sctx->fs_info->sectorsize; in alloc_scrub_sector()
868 fs_info->sectorsize, nlink, in scrub_print_warning_inode()
1466 sublen = min_t(u64, length, fs_info->sectorsize); in scrub_setup_recheck_block()
1594 bio_add_scrub_sector(bio, sector, fs_info->sectorsize); in scrub_recheck_block_on_raid56()
1645 bio_add_scrub_sector(&bio, sector, fs_info->sectorsize); in scrub_recheck_block()
1708 const u32 sectorsize = fs_info->sectorsize; in scrub_repair_sector_from_good_copy() local
1725 ret = bio_add_scrub_sector(&bio, sector_good, sectorsize); in scrub_repair_sector_from_good_copy()
1765 const u32 sectorsize = sblock->sctx->fs_info->sectorsize; in scrub_write_sector_to_dev_replace() local
1769 memset(scrub_sector_get_kaddr(sector), 0, sectorsize); in scrub_write_sector_to_dev_replace()
1807 const u32 sectorsize = sctx->fs_info->sectorsize; in scrub_add_sector_to_wr_bio() local
1841 } else if (sbio->physical + sbio->sector_count * sectorsize != in scrub_add_sector_to_wr_bio()
1843 sbio->logical + sbio->sector_count * sectorsize != in scrub_add_sector_to_wr_bio()
1849 ret = bio_add_scrub_sector(sbio->bio, sector, sectorsize); in scrub_add_sector_to_wr_bio()
1850 if (ret != sectorsize) { in scrub_add_sector_to_wr_bio()
1897 sctx->fs_info->sectorsize; in scrub_wr_submit()
1998 crypto_shash_digest(shash, kaddr, fs_info->sectorsize, csum); in scrub_checksum_data()
2018 const u32 sectorsize = sctx->fs_info->sectorsize; in scrub_checksum_tree_block() local
2057 sectorsize - BTRFS_CSUM_SIZE); in scrub_checksum_tree_block()
2061 crypto_shash_update(shash, kaddr, sectorsize); in scrub_checksum_tree_block()
2219 const u32 sectorsize = sctx->fs_info->sectorsize; in scrub_add_sector_to_rd_bio() local
2252 } else if (sbio->physical + sbio->sector_count * sectorsize != in scrub_add_sector_to_rd_bio()
2254 sbio->logical + sbio->sector_count * sectorsize != in scrub_add_sector_to_rd_bio()
2262 ret = bio_add_scrub_sector(sbio->bio, sector, sectorsize); in scrub_add_sector_to_rd_bio()
2263 if (ret != sectorsize) { in scrub_add_sector_to_rd_bio()
2407 const u32 sectorsize = sctx->fs_info->sectorsize; in scrub_sectors() local
2426 u32 l = min(sectorsize, len); in scrub_sectors()
2592 sblock->sctx->fs_info->sectorsize; in scrub_block_complete()
2679 blocksize = sctx->fs_info->sectorsize; in scrub_extent()
2694 blocksize = sctx->fs_info->sectorsize; in scrub_extent()
2740 const u32 sectorsize = sctx->fs_info->sectorsize; in scrub_sectors_for_parity() local
2743 ASSERT(IS_ALIGNED(len, sectorsize)); in scrub_sectors_for_parity()
2781 len -= sectorsize; in scrub_sectors_for_parity()
2782 logical += sectorsize; in scrub_sectors_for_parity()
2783 physical += sectorsize; in scrub_sectors_for_parity()
2823 blocksize = sctx->fs_info->sectorsize; in scrub_extent_for_parity()