Searched refs:chunk_sects (Results 1 – 2 of 2) sorted by relevance
427 unsigned int chunk_sects = mddev->chunk_sectors; in map_sector() local429 if (is_power_of_2(chunk_sects)) { in map_sector()430 int chunksect_bits = ffz(~chunk_sects); in map_sector()432 sect_in_chunk = sector & (chunk_sects - 1); in map_sector()439 sect_in_chunk = sector_div(sector, chunk_sects); in map_sector()441 sector_div(chunk, chunk_sects * zone->nb_dev); in map_sector()448 *sector_offset = (chunk * chunk_sects) + sect_in_chunk; in map_sector()457 unsigned int chunk_sects, struct bio *bio) in is_io_in_chunk_boundary() argument459 if (likely(is_power_of_2(chunk_sects))) { in is_io_in_chunk_boundary()460 return chunk_sects >= ((bio->bi_sector & (chunk_sects-1)) in is_io_in_chunk_boundary()[all …]
753 int chunk_sects = conf->chunk_mask + 1; in make_request() local770 > chunk_sects && in make_request()781 chunk_sects - (bio->bi_sector & (chunk_sects - 1)) ); in make_request()809 " or bigger than %dk %llu %d\n", mdname(mddev), chunk_sects/2, in make_request()