Lines Matching refs:mddev
88 struct mddev *mddev; member
408 md_error(ppl_conf->mddev, log->rdev); in ppl_log_endio()
551 struct r5conf *conf = ppl_conf->mddev->private; in ppl_io_unit_finished()
586 struct r5conf *conf = ppl_conf->mddev->private; in ppl_flush_endio()
594 rdev = md_find_rdev_rcu(conf->mddev, bio_dev(bio)); in ppl_flush_endio()
596 md_error(rdev->mddev, rdev); in ppl_flush_endio()
604 md_wakeup_thread(conf->mddev->thread); in ppl_flush_endio()
612 struct r5conf *conf = ppl_conf->mddev->private; in ppl_do_flush()
790 struct mddev *mddev = ppl_conf->mddev; in ppl_recover_entry() local
791 struct r5conf *conf = mddev->private; in ppl_recover_entry()
901 md_error(mddev, rdev); in ppl_recover_entry()
926 md_error(mddev, log->rdev); in ppl_recover_entry()
952 md_error(mddev, parity_rdev); in ppl_recover_entry()
970 struct mddev *mddev = rdev->mddev; in ppl_recover() local
1002 md_error(mddev, rdev); in ppl_recover()
1066 md_error(rdev->mddev, rdev); in ppl_write_empty_header()
1078 struct mddev *mddev = rdev->mddev; in ppl_load_distributed() local
1104 md_error(mddev, rdev); in ppl_load_distributed()
1128 if (mddev->external) { in ppl_load_distributed()
1172 if (pplhdr && !mddev->pers && mddev->recovery_cp != MaxSector) in ppl_load_distributed()
1176 if (!ret && !mddev->pers) in ppl_load_distributed()
1211 if (ppl_conf->mddev->external) { in ppl_load()
1217 mdname(ppl_conf->mddev)); in ppl_load()
1232 clear_bit(MD_HAS_PPL, &ppl_conf->mddev->flags); in __ppl_exit_log()
1233 clear_bit(MD_HAS_MULTIPLE_PPLS, &ppl_conf->mddev->flags); in __ppl_exit_log()
1270 RAID5_STRIPE_SECTORS((struct r5conf *)rdev->mddev->private)); in ppl_validate_rdev()
1274 mdname(rdev->mddev), rdev->bdev); in ppl_validate_rdev()
1285 mdname(rdev->mddev), rdev->bdev); in ppl_validate_rdev()
1289 if (!rdev->mddev->external && in ppl_validate_rdev()
1293 mdname(rdev->mddev), rdev->bdev); in ppl_validate_rdev()
1310 &log->ppl_conf->mddev->flags); in ppl_init_child_log()
1327 struct mddev *mddev = conf->mddev; in ppl_init_log() local
1333 mdname(conf->mddev)); in ppl_init_log()
1338 if (mddev->level != 5) { in ppl_init_log()
1340 mdname(mddev), mddev->level); in ppl_init_log()
1344 if (mddev->bitmap_info.file || mddev->bitmap_info.offset) { in ppl_init_log()
1346 mdname(mddev)); in ppl_init_log()
1350 if (test_bit(MD_HAS_JOURNAL, &mddev->flags)) { in ppl_init_log()
1352 mdname(mddev)); in ppl_init_log()
1360 mdname(mddev), max_disks); in ppl_init_log()
1368 ppl_conf->mddev = mddev; in ppl_init_log()
1401 if (!mddev->external) { in ppl_init_log()
1402 ppl_conf->signature = ~crc32c_le(~0, mddev->uuid, sizeof(mddev->uuid)); in ppl_init_log()
1405 ppl_conf->block_size = queue_logical_block_size(mddev->queue); in ppl_init_log()
1435 } else if (!mddev->pers && mddev->recovery_cp == 0 && in ppl_init_log()
1442 mddev->recovery_cp = MaxSector; in ppl_init_log()
1443 set_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in ppl_init_log()
1444 } else if (mddev->pers && ppl_conf->mismatch_count > 0) { in ppl_init_log()
1451 set_bit(MD_HAS_PPL, &ppl_conf->mddev->flags); in ppl_init_log()
1497 ppl_write_hint_show(struct mddev *mddev, char *buf) in ppl_write_hint_show() argument
1503 ppl_write_hint_store(struct mddev *mddev, const char *page, size_t len) in ppl_write_hint_store() argument
1514 err = mddev_lock(mddev); in ppl_write_hint_store()
1518 conf = mddev->private; in ppl_write_hint_store()
1524 mddev_unlock(mddev); in ppl_write_hint_store()