Lines Matching refs:sectorsize
157 rbio->bioc->fs_info->sectorsize); in cache_rbio_pages()
184 const u32 sectorsize = rbio->bioc->fs_info->sectorsize; in full_page_sectors_uptodate() local
185 const u32 sectors_per_page = PAGE_SIZE / sectorsize; in full_page_sectors_uptodate()
206 const u32 sectorsize = rbio->bioc->fs_info->sectorsize; in index_stripe_sectors() local
210 for (i = 0, offset = 0; i < rbio->nr_sectors; i++, offset += sectorsize) { in index_stripe_sectors()
222 const u32 sectorsize = src->bioc->fs_info->sectorsize; in steal_rbio_page() local
223 const u32 sectors_per_page = PAGE_SIZE / sectorsize; in steal_rbio_page()
925 ASSERT(IS_ALIGNED(PAGE_SIZE, fs_info->sectorsize)); in alloc_rbio()
1021 const u32 sectorsize = rbio->bioc->fs_info->sectorsize; in rbio_add_io_sector() local
1038 disk_start = stripe->physical + sector_nr * sectorsize; in rbio_add_io_sector()
1055 ret = bio_add_page(last, sector->page, sectorsize, in rbio_add_io_sector()
1057 if (ret == sectorsize) in rbio_add_io_sector()
1069 bio_add_page(bio, sector->page, sectorsize, sector->pgoff); in rbio_add_io_sector()
1093 const u32 sectorsize = rbio->bioc->fs_info->sectorsize; in index_one_bio() local
1103 bvec_offset += sectorsize, offset += sectorsize) { in index_one_bio()
1104 int index = offset / sectorsize; in index_one_bio()
1172 const u32 sectorsize = bioc->fs_info->sectorsize; in finish_rmw() local
1251 raid6_call.gen_syndrome(rbio->real_stripes, sectorsize, in finish_rmw()
1255 memcpy(pointers[nr_data], pointers[0], sectorsize); in finish_rmw()
1256 run_xor(pointers + 1, nr_data - 1, sectorsize); in finish_rmw()
1469 const u32 sectorsize = rbio->bioc->fs_info->sectorsize; in set_bio_pages_uptodate() local
1480 pgoff += sectorsize) { in set_bio_pages_uptodate()
1779 const u32 sectorsize = fs_info->sectorsize; in rbio_add_bio() local
1791 cur_logical += sectorsize) { in rbio_add_bio()
1861 const u32 sectorsize = rbio->bioc->fs_info->sectorsize; in __raid_recover_end_io() local
1981 sectorsize, faila, pointers); in __raid_recover_end_io()
1984 sectorsize, faila, failb, in __raid_recover_end_io()
1994 memcpy(pointers[faila], pointers[rbio->nr_data], sectorsize); in __raid_recover_end_io()
2003 run_xor(pointers, rbio->nr_data - 1, sectorsize); in __raid_recover_end_io()
2320 const u32 sectorsize = rbio->bioc->fs_info->sectorsize; in raid56_add_scrub_pages() local
2325 ASSERT(logical + sectorsize <= rbio->bioc->raid_map[0] + in raid56_add_scrub_pages()
2328 index = stripe_offset / sectorsize; in raid56_add_scrub_pages()
2339 const u32 sectorsize = rbio->bioc->fs_info->sectorsize; in alloc_rbio_essential_pages() local
2346 int index = (total_sector_nr * sectorsize) >> PAGE_SHIFT; in alloc_rbio_essential_pages()
2365 const u32 sectorsize = bioc->fs_info->sectorsize; in finish_parity_scrub() local
2440 raid6_call.gen_syndrome(rbio->real_stripes, sectorsize, in finish_parity_scrub()
2444 memcpy(pointers[nr_data], pointers[0], sectorsize); in finish_parity_scrub()
2445 run_xor(pointers + 1, nr_data - 1, sectorsize); in finish_parity_scrub()
2451 if (memcmp(parity, pointers[rbio->scrubp], sectorsize) != 0) in finish_parity_scrub()
2452 memcpy(parity, pointers[rbio->scrubp], sectorsize); in finish_parity_scrub()