Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/md/
Draid0.c327 unsigned int chunk_sects = mddev->chunk_sectors; in map_sector() local
329 if (is_power_of_2(chunk_sects)) { in map_sector()
330 int chunksect_bits = ffz(~chunk_sects); in map_sector()
332 sect_in_chunk = sector & (chunk_sects - 1); in map_sector()
339 sect_in_chunk = sector_div(sector, chunk_sects); in map_sector()
341 sector_div(chunk, chunk_sects * zone->nb_dev); in map_sector()
348 *sector_offset = (chunk * chunk_sects) + sect_in_chunk; in map_sector()
588 unsigned chunk_sects; in raid0_make_request() local
601 chunk_sects = mddev->chunk_sectors; in raid0_make_request()
603 sectors = chunk_sects - in raid0_make_request()
[all …]
Draid10.c1834 int chunk_sects = chunk_mask + 1; in raid10_make_request() local
1852 sectors > chunk_sects in raid10_make_request()
1856 sectors = chunk_sects - in raid10_make_request()
1858 (chunk_sects - 1)); in raid10_make_request()
Draid5.c5526 unsigned chunk_sects = mddev->chunk_sectors; in chunk_aligned_read() local
5527 unsigned sectors = chunk_sects - (sector & (chunk_sects-1)); in chunk_aligned_read()