Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/md/
Draid0.c427 unsigned int chunk_sects = mddev->chunk_sectors; in map_sector() local
429 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() argument
459 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 …]
Draid10.c753 int chunk_sects = conf->chunk_mask + 1; in make_request() local
770 > 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()