Home
last modified time | relevance | path

Searched refs:MaxSector (Results 1 - 20 of 20) sorted by relevance

/kernel/linux/linux-5.10/drivers/md/
H A Draid10.c628 if (conf->reshape_progress != MaxSector && in raid10_find_phys()
725 best_dist = MaxSector; in read_balance()
735 if ((conf->mddev->recovery_cp < MaxSector in read_balance()
774 if (best_dist < MaxSector) in read_balance()
1721 && tmp->replacement->recovery_offset == MaxSector in raid10_spare_active()
1739 && tmp->rdev->recovery_offset == MaxSector in raid10_spare_active()
1762 if (mddev->recovery_cp < MaxSector) in raid10_add_disk()
2927 mddev->recovery_cp == MaxSector && in raid10_sync_request()
2928 mddev->reshape_position == MaxSector && in raid10_sync_request()
2988 rdev->recovery_offset = MaxSector; in raid10_sync_request()
[all...]
H A Dmd.c704 mddev->reshape_position = MaxSector; in mddev_init()
708 mddev->resync_max = MaxSector; in mddev_init()
1026 else if (rdev->mddev->reshape_position != MaxSector && in sync_page_io()
1353 mddev->reshape_position = MaxSector; in super_90_validate()
1363 mddev->recovery_cp = MaxSector; in super_90_validate()
1485 if (mddev->reshape_position == MaxSector) in super_90_sync()
1501 if (mddev->recovery_cp == MaxSector) in super_90_sync()
1895 mddev->reshape_position = MaxSector; in super_1_validate()
2050 sb->resync_offset = cpu_to_le64(MaxSector); in super_1_sync()
2095 if (mddev->reshape_position != MaxSector) { in super_1_sync()
[all...]
H A Ddm-raid.c445 return rs->md.reshape_position != MaxSector; in rs_is_reshaping()
766 rs->md.recovery_cp = MaxSector; in raid_set_alloc()
1181 rs->dev[i].rdev.recovery_offset = MaxSector; in parse_raid_params()
1679 rs->md.recovery_cp = MaxSector; in rs_setup_recovery()
1693 ? MaxSector : dev_sectors; in rs_setup_recovery()
2136 if (le64_to_cpu(sb->reshape_position) != MaxSector) { in super_sync()
2228 mddev->reshape_position = MaxSector; in super_init_validation()
2320 * recovery_cp must be MaxSector. in super_init_validation()
2474 if (rdev->recovery_offset == MaxSector) in super_validate()
2733 mddev->recovery_cp = MaxSector; in rs_setup_takeover()
[all...]
H A Draid1.c618 best_dist = MaxSector; in read_balance()
671 if (best_dist < MaxSector) in read_balance()
734 mirror->seq_start != MaxSector && in read_balance()
1693 && repl->recovery_offset == MaxSector in raid1_spare_active()
1711 && rdev->recovery_offset == MaxSector in raid1_spare_active()
2663 mddev->recovery_cp == MaxSector && in raid1_sync_request()
2731 sector_t first_bad = MaxSector; in raid1_sync_request()
2997 disk->seq_start = MaxSector; in setup_conf()
3077 if (mddev->reshape_position != MaxSector) { in raid1_run()
3127 mddev->recovery_cp = MaxSector; in raid1_run()
[all...]
H A Draid0.c674 mddev->recovery_cp = MaxSector; in raid0_takeover_raid45()
717 mddev->recovery_cp = MaxSector; in raid0_takeover_raid10()
760 mddev->recovery_cp = MaxSector; in raid0_takeover_raid1()
H A Draid5.c696 if (conf->mddev->reshape_position != MaxSector) in has_failed()
938 if (progress == MaxSector) in use_new_offset()
2309 sh->log_start = MaxSector; in alloc_stripe()
4091 (recovery_cp < MaxSector && sh->sector >= recovery_cp && in handle_stripe_dirtying()
5684 if (mddev->reshape_position != MaxSector) in make_discard_request()
5801 mddev->reshape_position == MaxSector) { in raid5_make_request()
5829 if (unlikely(conf->reshape_progress != MaxSector)) { in raid5_make_request()
5972 conf->reshape_progress == MaxSector) { in reshape_request()
5974 sector_nr = MaxSector; in reshape_request()
6718 mddev->reshape_position != MaxSector || in raid5_store_stripe_size()
[all...]
H A Draid5-cache.c967 if (sh->log_start == MaxSector) { in r5l_log_stripe()
1061 * not in cache yet (sh->log_start == MaxSector). in r5l_write_stripe()
1064 sh->log_start == MaxSector) { in r5l_write_stripe()
1585 r5l_wake_reclaim(log, MaxSector); in r5l_quiesce()
1863 sh->log_start = MaxSector; in r5l_recovery_reset_stripe()
2358 sector_t next_checkpoint = MaxSector; in r5c_recovery_rewrite_data_only_stripes()
2846 sh->log_start = MaxSector; in r5c_finish_stripe_write_out()
2924 sh->log_start == MaxSector) in r5c_cache_data()
H A Dmd-cluster.c327 mddev->reshape_position != MaxSector) in recover_bitmaps()
335 if (mddev->recovery_cp != MaxSector) { in recover_bitmaps()
1008 if ((cinfo->slot_number > 0 && mddev->recovery_cp != MaxSector) || in leave()
1009 (mddev->reshape_position != MaxSector && in leave()
H A Dmd.h23 #define MaxSector (~(sector_t)0) macro
338 * If reshape_position is MaxSector, then no reshape is happening (yet).
H A Draid5-ppl.c1179 if (pplhdr && !mddev->pers && mddev->recovery_cp != MaxSector) in ppl_load_distributed()
1449 mddev->recovery_cp = MaxSector; in ppl_init_log()
/kernel/linux/linux-6.6/drivers/md/
H A Draid10.c654 if (conf->reshape_progress != MaxSector && in raid10_find_phys()
751 best_dist = MaxSector; in read_balance()
761 if ((conf->mddev->recovery_cp < MaxSector in read_balance()
800 if (best_dist < MaxSector) in read_balance()
2110 && tmp->replacement->recovery_offset == MaxSector in raid10_spare_active()
2128 && tmp->rdev->recovery_offset == MaxSector in raid10_spare_active()
2152 if (mddev->recovery_cp < MaxSector) in raid10_add_disk()
3314 mddev->recovery_cp == MaxSector && in raid10_sync_request()
3315 mddev->reshape_position == MaxSector && in raid10_sync_request()
3375 rdev->recovery_offset = MaxSector; in raid10_sync_request()
[all...]
H A Dmd.c673 mddev->reshape_position = MaxSector; in mddev_init()
677 mddev->resync_max = MaxSector; in mddev_init()
990 else if (rdev->mddev->reshape_position != MaxSector && in sync_page_io()
1312 mddev->reshape_position = MaxSector; in super_90_validate()
1322 mddev->recovery_cp = MaxSector; in super_90_validate()
1444 if (mddev->reshape_position == MaxSector) in super_90_sync()
1460 if (mddev->recovery_cp == MaxSector) in super_90_sync()
1851 mddev->reshape_position = MaxSector; in super_1_validate()
2006 sb->resync_offset = cpu_to_le64(MaxSector); in super_1_sync()
2051 if (mddev->reshape_position != MaxSector) { in super_1_sync()
[all...]
H A Ddm-raid.c446 return rs->md.reshape_position != MaxSector; in rs_is_reshaping()
766 rs->md.recovery_cp = MaxSector; in raid_set_alloc()
1181 rs->dev[i].rdev.recovery_offset = MaxSector; in parse_raid_params()
1679 rs->md.recovery_cp = MaxSector; in rs_setup_recovery()
1693 ? MaxSector : dev_sectors; in rs_setup_recovery()
2137 if (le64_to_cpu(sb->reshape_position) != MaxSector) { in super_sync()
2228 mddev->reshape_position = MaxSector; in super_init_validation()
2320 * recovery_cp must be MaxSector. in super_init_validation()
2471 if (rdev->recovery_offset == MaxSector) in super_validate()
2730 mddev->recovery_cp = MaxSector; in rs_setup_takeover()
[all...]
H A Draid5.c753 if (conf->mddev->reshape_position != MaxSector) in has_failed()
1020 if (progress == MaxSector) in use_new_offset()
2386 sh->log_start = MaxSector; in alloc_stripe()
4203 (recovery_cp < MaxSector && sh->sector >= recovery_cp && in handle_stripe_dirtying()
5793 if (mddev->reshape_position != MaxSector) in make_discard_request()
5890 sector_t max_sector = 0, min_sector = MaxSector; in stripe_ahead_of_reshape()
5989 if (unlikely(conf->reshape_progress != MaxSector)) { in make_stripe_request()
6166 mddev->reshape_position == MaxSector) { in raid5_make_request()
6192 (conf->reshape_progress != MaxSector) && in raid5_make_request()
6209 if (likely(conf->reshape_progress == MaxSector)) in raid5_make_request()
[all...]
H A Draid1.c622 best_dist = MaxSector; in read_balance()
675 if (best_dist < MaxSector) in read_balance()
738 mirror->seq_start != MaxSector && in read_balance()
1737 && repl->recovery_offset == MaxSector in raid1_spare_active()
1755 && rdev->recovery_offset == MaxSector in raid1_spare_active()
2707 mddev->recovery_cp == MaxSector && in raid1_sync_request()
2775 sector_t first_bad = MaxSector; in raid1_sync_request()
3041 disk->seq_start = MaxSector; in setup_conf()
3120 if (mddev->reshape_position != MaxSector) { in raid1_run()
3166 mddev->recovery_cp = MaxSector; in raid1_run()
[all...]
H A Draid0.c669 mddev->recovery_cp = MaxSector; in raid0_takeover_raid45()
712 mddev->recovery_cp = MaxSector; in raid0_takeover_raid10()
755 mddev->recovery_cp = MaxSector; in raid0_takeover_raid1()
H A Draid5-cache.c966 if (sh->log_start == MaxSector) { in r5l_log_stripe()
1060 * not in cache yet (sh->log_start == MaxSector). in r5l_write_stripe()
1063 sh->log_start == MaxSector) { in r5l_write_stripe()
1586 r5l_wake_reclaim(log, MaxSector); in r5l_quiesce()
1856 sh->log_start = MaxSector; in r5l_recovery_reset_stripe()
2352 sector_t next_checkpoint = MaxSector; in r5c_recovery_rewrite_data_only_stripes()
2843 sh->log_start = MaxSector; in r5c_finish_stripe_write_out()
2921 sh->log_start == MaxSector) in r5c_cache_data()
H A Dmd-cluster.c327 mddev->reshape_position != MaxSector) in recover_bitmaps()
335 if (mddev->recovery_cp != MaxSector) { in recover_bitmaps()
1012 if ((cinfo->slot_number > 0 && mddev->recovery_cp != MaxSector) || in leave()
1013 (mddev->reshape_position != MaxSector && in leave()
H A Dmd.h23 #define MaxSector (~(sector_t)0) macro
364 * If reshape_position is MaxSector, then no reshape is happening (yet).
H A Draid5-ppl.c1172 if (pplhdr && !mddev->pers && mddev->recovery_cp != MaxSector) in ppl_load_distributed()
1439 mddev->recovery_cp = MaxSector; in ppl_init_log()

Completed in 73 milliseconds