Lines Matching refs:sectorsize
272 rbio->bioc->fs_info->sectorsize); in cache_rbio_pages()
299 const u32 sectorsize = rbio->bioc->fs_info->sectorsize; in full_page_sectors_uptodate() local
300 const u32 sectors_per_page = PAGE_SIZE / sectorsize; in full_page_sectors_uptodate()
321 const u32 sectorsize = rbio->bioc->fs_info->sectorsize; in index_stripe_sectors() local
325 for (i = 0, offset = 0; i < rbio->nr_sectors; i++, offset += sectorsize) { in index_stripe_sectors()
337 const u32 sectorsize = src->bioc->fs_info->sectorsize; in steal_rbio_page() local
338 const u32 sectors_per_page = PAGE_SIZE / sectorsize; in steal_rbio_page()
993 ASSERT(IS_ALIGNED(PAGE_SIZE, fs_info->sectorsize)); in alloc_rbio()
1129 const u32 sectorsize = rbio->bioc->fs_info->sectorsize; in rbio_add_io_sector() local
1148 disk_start = stripe->physical + sector_nr * sectorsize; in rbio_add_io_sector()
1176 ret = bio_add_page(last, sector->page, sectorsize, in rbio_add_io_sector()
1178 if (ret == sectorsize) in rbio_add_io_sector()
1190 __bio_add_page(bio, sector->page, sectorsize, sector->pgoff); in rbio_add_io_sector()
1197 const u32 sectorsize = rbio->bioc->fs_info->sectorsize; in index_one_bio() local
1207 bvec_offset += sectorsize, offset += sectorsize) { in index_one_bio()
1208 int index = offset / sectorsize; in index_one_bio()
1297 const u32 sectorsize = rbio->bioc->fs_info->sectorsize; in generate_pq_vertical() local
1325 raid6_call.gen_syndrome(rbio->real_stripes, sectorsize, in generate_pq_vertical()
1329 memcpy(pointers[rbio->nr_data], pointers[0], sectorsize); in generate_pq_vertical()
1330 run_xor(pointers + 1, rbio->nr_data - 1, sectorsize); in generate_pq_vertical()
1501 const u32 sectorsize = rbio->bioc->fs_info->sectorsize; in set_bio_pages_uptodate() local
1512 pgoff += sectorsize) { in set_bio_pages_uptodate()
1583 bv_offset += fs_info->sectorsize, total_sector_nr++) { in verify_bio_data_sectors()
1724 const u32 sectorsize = fs_info->sectorsize; in rbio_add_bio() local
1737 cur_logical += sectorsize) { in rbio_add_bio()
1833 const u32 sectorsize = fs_info->sectorsize; in recover_vertical() local
1924 raid6_datap_recov(rbio->real_stripes, sectorsize, in recover_vertical()
1927 raid6_2data_recov(rbio->real_stripes, sectorsize, in recover_vertical()
1937 memcpy(pointers[faila], pointers[rbio->nr_data], sectorsize); in recover_vertical()
1947 run_xor(pointers, rbio->nr_data - 1, sectorsize); in recover_vertical()
2488 const u32 sectorsize = rbio->bioc->fs_info->sectorsize; in alloc_rbio_essential_pages() local
2495 int index = (total_sector_nr * sectorsize) >> PAGE_SHIFT; in alloc_rbio_essential_pages()
2513 const u32 sectorsize = bioc->fs_info->sectorsize; in finish_parity_scrub() local
2589 raid6_call.gen_syndrome(rbio->real_stripes, sectorsize, in finish_parity_scrub()
2593 memcpy(pointers[nr_data], pointers[0], sectorsize); in finish_parity_scrub()
2594 run_xor(pointers + 1, nr_data - 1, sectorsize); in finish_parity_scrub()
2600 if (memcmp(parity, pointers[rbio->scrubp], sectorsize) != 0) in finish_parity_scrub()
2601 memcpy(parity, pointers[rbio->scrubp], sectorsize); in finish_parity_scrub()
2863 const u32 sectorsize = rbio->bioc->fs_info->sectorsize; in raid56_parity_cache_data_pages() local
2864 const u32 sectors_per_page = PAGE_SIZE / sectorsize; in raid56_parity_cache_data_pages()