Lines Matching refs:sectorsize
746 const u32 sectorsize = fs_info->sectorsize; in btrfs_get_io_failure_record() local
760 ASSERT(failrec->len == fs_info->sectorsize); in btrfs_get_io_failure_record()
770 failrec->len = sectorsize; in btrfs_get_io_failure_record()
779 failrec->num_copies = btrfs_num_copies(fs_info, failrec->logical, sectorsize); in btrfs_get_io_failure_record()
903 const u32 sectorsize = inode->root->fs_info->sectorsize; in end_sector_io() local
906 end_page_read(page, uptodate, offset, sectorsize); in end_sector_io()
909 offset + sectorsize - 1, &cached, GFP_ATOMIC); in end_sector_io()
910 unlock_extent_atomic(&inode->io_tree, offset, offset + sectorsize - 1, in end_sector_io()
924 const u32 sectorsize = fs_info->sectorsize; in submit_data_read_repair() local
944 const unsigned int offset = i * sectorsize; in submit_data_read_repair()
1028 const u32 sectorsize = fs_info->sectorsize; in end_bio_extent_writepage() local
1031 if (!IS_ALIGNED(bvec->bv_offset, sectorsize)) in end_bio_extent_writepage()
1035 else if (!IS_ALIGNED(bvec->bv_len, sectorsize)) in end_bio_extent_writepage()
1194 const u32 sectorsize = fs_info->sectorsize; in end_bio_extent_readpage() local
1213 if (!IS_ALIGNED(bvec->bv_offset, sectorsize)) in end_bio_extent_readpage()
1218 sectorsize)) in end_bio_extent_readpage()
1453 em = btrfs_get_chunk_map(fs_info, logical, fs_info->sectorsize); in calc_bio_boundaries()
1523 fs_info->sectorsize); in alloc_new_bio()
1782 ASSERT(IS_ALIGNED(cur, fs_info->sectorsize)); in btrfs_do_readpage()
2062 *start = page_offset(page) + range_start_bit * fs_info->sectorsize; in find_next_dirty_byte()
2063 *end = page_offset(page) + range_end_bit * fs_info->sectorsize; in find_next_dirty_byte()
2153 ASSERT(IS_ALIGNED(em->start, fs_info->sectorsize)); in __extent_writepage_io()
2154 ASSERT(IS_ALIGNED(em->len, fs_info->sectorsize)); in __extent_writepage_io()
2819 start = page_start + bit_start * fs_info->sectorsize; in submit_eb_subpage()
3250 const u32 sectorsize = btrfs_sb(inode->i_sb)->sectorsize; in extent_write_locked_range() local
3265 ASSERT(IS_ALIGNED(start, sectorsize) && IS_ALIGNED(end + 1, sectorsize)); in extent_write_locked_range()
3937 lockstart = round_down(start, root->fs_info->sectorsize); in extent_fiemap()
3938 lockend = round_up(start + len, root->fs_info->sectorsize); in extent_fiemap()
4539 if (!IS_ALIGNED(start, fs_info->sectorsize)) { in check_eb_alignment()