Lines Matching refs:logical_sector

5722 	sector_t logical_sector, last_sector;  in make_discard_request()  local
5734 logical_sector = bi->bi_iter.bi_sector & ~((sector_t)RAID5_STRIPE_SECTORS(conf)-1); in make_discard_request()
5741 logical_sector = DIV_ROUND_UP_SECTOR_T(logical_sector, in make_discard_request()
5745 logical_sector *= conf->chunk_sectors; in make_discard_request()
5748 for (; logical_sector < last_sector; in make_discard_request()
5749 logical_sector += RAID5_STRIPE_SECTORS(conf)) { in make_discard_request()
5753 sh = raid5_get_active_stripe(conf, NULL, logical_sector, 0); in make_discard_request()
5907 struct r5conf *conf, sector_t logical_sector) in get_reshape_loc() argument
5925 if (ahead_of_reshape(mddev, logical_sector, reshape_progress)) in get_reshape_loc()
5927 if (ahead_of_reshape(mddev, logical_sector, reshape_safe)) in get_reshape_loc()
5934 sector_t logical_sector, struct bio *bi) in make_stripe_request() argument
5947 logical_sector); in make_stripe_request()
5956 new_sector = raid5_compute_sector(conf, logical_sector, previous, in make_stripe_request()
5959 new_sector, logical_sector); in make_stripe_request()
6075 sector_t logical_sector; in raid5_make_request() local
6117 logical_sector = bi->bi_iter.bi_sector & ~((sector_t)RAID5_STRIPE_SECTORS(conf)-1); in raid5_make_request()
6118 ctx.first_sector = logical_sector; in raid5_make_request()
6122 stripe_cnt = DIV_ROUND_UP_SECTOR_T(ctx.last_sector - logical_sector, in raid5_make_request()
6132 get_reshape_loc(mddev, conf, logical_sector) == LOC_INSIDE_RESHAPE) { in raid5_make_request()
6148 logical_sector = raid5_bio_lowest_chunk_sector(conf, bi); in raid5_make_request()
6154 s = (logical_sector - ctx.first_sector) >> RAID5_STRIPE_SHIFT(conf); in raid5_make_request()
6157 res = make_stripe_request(mddev, conf, &ctx, logical_sector, in raid5_make_request()
6188 logical_sector = ctx.first_sector + in raid5_make_request()
6596 sector_t sector, logical_sector, last_sector; in retry_aligned_read() local
6600 logical_sector = raid_bio->bi_iter.bi_sector & in retry_aligned_read()
6602 sector = raid5_compute_sector(conf, logical_sector, in retry_aligned_read()
6606 for (; logical_sector < last_sector; in retry_aligned_read()
6607 logical_sector += RAID5_STRIPE_SECTORS(conf), in retry_aligned_read()