Lines Matching refs:max_sectors
733 int *max_sectors) in read_balance() argument
874 *max_sectors = best_good_sectors; in read_balance()
1182 int max_sectors; in raid10_read_request() local
1219 rdev = read_balance(conf, r10_bio, &max_sectors); in raid10_read_request()
1234 if (max_sectors < bio_sectors(bio)) { in raid10_read_request()
1235 struct bio *split = bio_split(bio, max_sectors, in raid10_read_request()
1243 r10_bio->sectors = max_sectors; in raid10_read_request()
1406 int max_sectors; in raid10_write_request() local
1471 max_sectors = r10_bio->sectors; in raid10_write_request()
1498 is_bad = is_badblock(rdev, dev_sector, max_sectors, in raid10_write_request()
1503 if (bad_sectors < max_sectors) in raid10_write_request()
1507 max_sectors = bad_sectors; in raid10_write_request()
1520 if (good_sectors < max_sectors) in raid10_write_request()
1521 max_sectors = good_sectors; in raid10_write_request()
1535 if (max_sectors < r10_bio->sectors) in raid10_write_request()
1536 r10_bio->sectors = max_sectors; in raid10_write_request()
4789 int max_sectors; in reshape_request() local
4900 rdev = read_balance(conf, r10_bio, &max_sectors); in reshape_request()
4982 for (s = 0 ; s < max_sectors; s += PAGE_SIZE >> 9) { in reshape_request()
4984 int len = (max_sectors - s) << 9; in reshape_request()