Home
last modified time | relevance | path

Searched refs:this_sector (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/md/
H A Draid1-10.c242 sector_t this_sector, int *len) in raid1_check_read_range() argument
248 if (!is_badblock(rdev, this_sector, *len, &first_bad, &bad_sectors)) in raid1_check_read_range()
255 if (first_bad > this_sector) in raid1_check_read_range()
256 return first_bad - this_sector; in raid1_check_read_range()
259 if (this_sector + *len <= first_bad + bad_sectors) in raid1_check_read_range()
268 *len = first_bad + bad_sectors - this_sector; in raid1_check_read_range()
279 sector_t this_sector, int len) in raid1_should_read_first() argument
281 if ((mddev->resync_offset < this_sector + len)) in raid1_should_read_first()
285 mddev->cluster_ops->area_resyncing(mddev, READ, this_sector, in raid1_should_read_first()
286 this_sector + len)) in raid1_should_read_first()
H A Draid1.c602 sector_t this_sector, int len) in update_read_sectors() argument
607 if (info->next_seq_sect != this_sector) in update_read_sectors()
608 info->seq_start = this_sector; in update_read_sectors()
609 info->next_seq_sect = this_sector + len; in update_read_sectors()
615 sector_t this_sector = r1_bio->sector; in choose_first_rdev() local
631 read_len = raid1_check_read_range(rdev, this_sector, &len); in choose_first_rdev()
633 update_read_sectors(conf, disk, this_sector, read_len); in choose_first_rdev()
651 sector_t this_sector = r1_bio->sector; in choose_bb_rdev() local
672 read_len = raid1_check_read_range(rdev, this_sector, &len); in choose_bb_rdev()
681 update_read_sectors(conf, best_disk, this_sector, best_len); in choose_bb_rdev()
[all …]
H A Draid10.c727 const sector_t this_sector = r10_bio->sector; in read_balance() local
749 if (raid1_should_read_first(conf->mddev, this_sector, sectors)) in read_balance()