Lines Matching refs:sectorsize
87 ASSERT(IS_ALIGNED(start + len, inode->root->fs_info->sectorsize)); in btrfs_inode_set_file_extent_range()
115 ASSERT(IS_ALIGNED(start + len, inode->root->fs_info->sectorsize) || in btrfs_inode_clear_file_extent_range()
129 return ncsums * fs_info->sectorsize; in max_ordered_sum_bytes()
138 int num_sectors = (int)DIV_ROUND_UP(bytes, fs_info->sectorsize); in btrfs_ordered_sum_size()
271 const u32 sectorsize = fs_info->sectorsize; in search_csum_tree() local
278 ASSERT(IS_ALIGNED(disk_bytenr, sectorsize) && in search_csum_tree()
279 IS_ALIGNED(len, sectorsize)); in search_csum_tree()
289 csum_len = (itemsize / csum_size) * sectorsize; in search_csum_tree()
307 csum_len = (itemsize / csum_size) * sectorsize; in search_csum_tree()
381 const u32 sectorsize = fs_info->sectorsize; in btrfs_lookup_bio_sums() local
449 cur_disk_bytenr += (count * sectorsize)) { in btrfs_lookup_bio_sums()
499 file_offset + sectorsize - 1, in btrfs_lookup_bio_sums()
504 cur_disk_bytenr, cur_disk_bytenr + sectorsize); in btrfs_lookup_bio_sums()
530 ASSERT(IS_ALIGNED(start, fs_info->sectorsize) && in btrfs_lookup_csums_range()
531 IS_ALIGNED(end + 1, fs_info->sectorsize)); in btrfs_lookup_csums_range()
584 csum_end = key.offset + (size / csum_size) * fs_info->sectorsize; in btrfs_lookup_csums_range()
615 start += fs_info->sectorsize * size; in btrfs_lookup_csums_range()
699 bvec.bv_len + fs_info->sectorsize in btrfs_csum_one_bio()
731 data + (i * fs_info->sectorsize), in btrfs_csum_one_bio()
732 fs_info->sectorsize, in btrfs_csum_one_bio()
736 offset += fs_info->sectorsize; in btrfs_csum_one_bio()
737 this_sum_bytes += fs_info->sectorsize; in btrfs_csum_one_bio()
738 total_bytes += fs_info->sectorsize; in btrfs_csum_one_bio()
1196 total_bytes += ins_size * fs_info->sectorsize; in btrfs_csum_file_blocks()
1295 end = ALIGN(key.offset + end, leaf->fs_info->sectorsize); in btrfs_file_extent_end()