Lines Matching refs:max_sectors
731 int *max_sectors) in read_balance() argument
880 *max_sectors = best_good_sectors; in read_balance()
1179 int max_sectors; in raid10_read_request() local
1216 rdev = read_balance(conf, r10_bio, &max_sectors); in raid10_read_request()
1231 if (max_sectors < bio_sectors(bio)) { in raid10_read_request()
1232 struct bio *split = bio_split(bio, max_sectors, in raid10_read_request()
1240 r10_bio->sectors = max_sectors; in raid10_read_request()
1413 int max_sectors; in raid10_write_request() local
1478 max_sectors = r10_bio->sectors; in raid10_write_request()
1503 is_bad = is_badblock(rdev, dev_sector, max_sectors, in raid10_write_request()
1508 if (bad_sectors < max_sectors) in raid10_write_request()
1512 max_sectors = bad_sectors; in raid10_write_request()
1525 if (good_sectors < max_sectors) in raid10_write_request()
1526 max_sectors = good_sectors; in raid10_write_request()
1540 if (max_sectors < r10_bio->sectors) in raid10_write_request()
1541 r10_bio->sectors = max_sectors; in raid10_write_request()
4815 int max_sectors; in reshape_request() local
4926 rdev = read_balance(conf, r10_bio, &max_sectors); in reshape_request()
5008 for (s = 0 ; s < max_sectors; s += PAGE_SIZE >> 9) { in reshape_request()
5010 int len = (max_sectors - s) << 9; in reshape_request()