Lines Matching refs:max_sectors
726 int *max_sectors) in read_balance() argument
857 *max_sectors = best_good_sectors; in read_balance()
1156 int max_sectors; in raid10_read_request() local
1191 rdev = read_balance(conf, r10_bio, &max_sectors); in raid10_read_request()
1206 if (max_sectors < bio_sectors(bio)) { in raid10_read_request()
1207 struct bio *split = bio_split(bio, max_sectors, in raid10_read_request()
1215 r10_bio->sectors = max_sectors; in raid10_read_request()
1352 int max_sectors; in raid10_write_request() local
1417 max_sectors = r10_bio->sectors; in raid10_write_request()
1443 is_bad = is_badblock(rdev, dev_sector, max_sectors, in raid10_write_request()
1448 if (bad_sectors < max_sectors) in raid10_write_request()
1452 max_sectors = bad_sectors; in raid10_write_request()
1465 if (good_sectors < max_sectors) in raid10_write_request()
1466 max_sectors = good_sectors; in raid10_write_request()
1479 if (max_sectors < r10_bio->sectors) in raid10_write_request()
1480 r10_bio->sectors = max_sectors; in raid10_write_request()
4647 int max_sectors; in reshape_request() local
4758 rdev = read_balance(conf, r10_bio, &max_sectors); in reshape_request()
4839 for (s = 0 ; s < max_sectors; s += PAGE_SIZE >> 9) { in reshape_request()
4841 int len = (max_sectors - s) << 9; in reshape_request()