Home
last modified time | relevance | path

Searched refs:chunk_sects (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/drivers/md/
Draid0.c321 unsigned int chunk_sects = mddev->chunk_sectors; in map_sector() local
323 if (is_power_of_2(chunk_sects)) { in map_sector()
324 int chunksect_bits = ffz(~chunk_sects); in map_sector()
326 sect_in_chunk = sector & (chunk_sects - 1); in map_sector()
333 sect_in_chunk = sector_div(sector, chunk_sects); in map_sector()
335 sector_div(chunk, chunk_sects * zone->nb_dev); in map_sector()
342 *sector_offset = (chunk * chunk_sects) + sect_in_chunk; in map_sector()
452 unsigned int chunk_sects, struct bio *bio) in is_io_in_chunk_boundary() argument
454 if (likely(is_power_of_2(chunk_sects))) { in is_io_in_chunk_boundary()
455 return chunk_sects >= in is_io_in_chunk_boundary()
[all …]
Draid10.c1558 int chunk_sects = chunk_mask + 1; in raid10_make_request() local
1574 sectors > chunk_sects in raid10_make_request()
1578 sectors = chunk_sects - in raid10_make_request()
1580 (chunk_sects - 1)); in raid10_make_request()
Draid5.c5285 unsigned chunk_sects = mddev->chunk_sectors; in chunk_aligned_read() local
5286 unsigned sectors = chunk_sects - (sector & (chunk_sects-1)); in chunk_aligned_read()