Lines Matching refs:mddev
301 md_write_end(conf->mddev); in r5c_return_dev_pending_writes()
316 md_bitmap_endwrite(conf->mddev->bitmap, sh->sector, in r5c_handle_cached_data_endio()
418 struct r5conf *conf = log->rdev->mddev->private; in r5c_update_log_state()
568 md_error(log->rdev->mddev, log->rdev); in r5l_log_endio()
603 md_wakeup_thread(log->rdev->mddev->thread); in r5l_log_endio()
684 struct mddev *mddev = log->rdev->mddev; in r5c_disable_writeback_async() local
685 struct r5conf *conf = mddev->private; in r5c_disable_writeback_async()
691 mdname(mddev)); in r5c_disable_writeback_async()
694 wait_event(mddev->sb_wait, in r5c_disable_writeback_async()
696 (!test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags) && in r5c_disable_writeback_async()
697 (locked = mddev_trylock(mddev)))); in r5c_disable_writeback_async()
699 mddev_suspend(mddev); in r5c_disable_writeback_async()
701 mddev_resume(mddev); in r5c_disable_writeback_async()
702 mddev_unlock(mddev); in r5c_disable_writeback_async()
863 struct mddev *mddev = log->rdev->mddev; in r5l_append_flush_payload() local
864 struct r5conf *conf = mddev->private; in r5l_append_flush_payload()
1176 struct r5conf *conf = log->rdev->mddev->private; in r5l_reclaimable_space()
1224 struct r5conf *conf = log->rdev->mddev->private; in __r5l_stripe_write_finished()
1262 md_error(log->rdev->mddev, log->rdev); in r5l_log_flush_endio()
1317 struct mddev *mddev; in r5l_write_super_and_discard_space() local
1324 mddev = log->rdev->mddev; in r5l_write_super_and_discard_space()
1336 set_mask_bits(&mddev->sb_flags, 0, in r5l_write_super_and_discard_space()
1338 if (!mddev_trylock(mddev)) in r5l_write_super_and_discard_space()
1340 md_update_sb(mddev, 1); in r5l_write_super_and_discard_space()
1341 mddev_unlock(mddev); in r5l_write_super_and_discard_space()
1494 md_wakeup_thread(conf->mddev->thread); in r5c_do_reclaim()
1499 struct r5conf *conf = log->rdev->mddev->private; in r5l_do_reclaim()
1522 md_wakeup_thread(log->rdev->mddev->thread); in r5l_do_reclaim()
1551 struct mddev *mddev = thread->mddev; in r5l_reclaim_thread() local
1552 struct r5conf *conf = mddev->private; in r5l_reclaim_thread()
1578 struct mddev *mddev; in r5l_quiesce() local
1582 mddev = log->rdev->mddev; in r5l_quiesce()
1583 wake_up(&mddev->sb_wait); in r5l_quiesce()
1597 return test_bit(MD_HAS_JOURNAL, &conf->mddev->flags); in r5l_log_disk_error()
1808 struct mddev *mddev = log->rdev->mddev; in r5l_recovery_load_data() local
1809 struct r5conf *conf = mddev->private; in r5l_recovery_load_data()
1830 struct mddev *mddev = log->rdev->mddev; in r5l_recovery_load_parity() local
1831 struct r5conf *conf = mddev->private; in r5l_recovery_load_parity()
1898 rdev_dec_pending(rdev, rdev->mddev); in r5l_recovery_replay_one_stripe()
1908 rdev_dec_pending(rrdev, rrdev->mddev); in r5l_recovery_replay_one_stripe()
1999 struct mddev *mddev = log->rdev->mddev; in r5l_recovery_verify_data_checksum_for_mb() local
2000 struct r5conf *conf = mddev->private; in r5l_recovery_verify_data_checksum_for_mb()
2073 struct mddev *mddev = log->rdev->mddev; in r5c_recovery_analyze_meta_block() local
2074 struct r5conf *conf = mddev->private; in r5c_recovery_analyze_meta_block()
2151 mdname(mddev), in r5c_recovery_analyze_meta_block()
2153 ret = raid5_set_cache_size(mddev, new_size); in r5c_recovery_analyze_meta_block()
2156 mdname(mddev), in r5c_recovery_analyze_meta_block()
2168 mdname(mddev)); in r5c_recovery_analyze_meta_block()
2349 struct mddev *mddev = log->rdev->mddev; in r5c_recovery_rewrite_data_only_stripes() local
2356 mdname(mddev)); in r5c_recovery_rewrite_data_only_stripes()
2421 struct mddev *mddev = log->rdev->mddev; in r5c_recovery_flush_data_only_stripes() local
2422 struct r5conf *conf = mddev->private; in r5c_recovery_flush_data_only_stripes()
2429 if (test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)) { in r5c_recovery_flush_data_only_stripes()
2431 clear_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in r5c_recovery_flush_data_only_stripes()
2448 set_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in r5c_recovery_flush_data_only_stripes()
2453 struct mddev *mddev = log->rdev->mddev; in r5l_recovery_log() local
2487 mdname(mddev)); in r5l_recovery_log()
2490 mdname(mddev), ctx->data_only_stripes, in r5l_recovery_log()
2499 mdname(mddev)); in r5l_recovery_log()
2522 struct mddev *mddev = log->rdev->mddev; in r5l_write_super() local
2525 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in r5l_write_super()
2528 static ssize_t r5c_journal_mode_show(struct mddev *mddev, char *page) in r5c_journal_mode_show() argument
2533 ret = mddev_lock(mddev); in r5c_journal_mode_show()
2537 conf = mddev->private; in r5c_journal_mode_show()
2559 mddev_unlock(mddev); in r5c_journal_mode_show()
2569 int r5c_journal_mode_set(struct mddev *mddev, int mode) in r5c_journal_mode_set() argument
2577 conf = mddev->private; in r5c_journal_mode_set()
2585 mddev_suspend(mddev); in r5c_journal_mode_set()
2587 mddev_resume(mddev); in r5c_journal_mode_set()
2590 mdname(mddev), mode, r5c_journal_mode_str[mode]); in r5c_journal_mode_set()
2595 static ssize_t r5c_journal_mode_store(struct mddev *mddev, in r5c_journal_mode_store() argument
2612 ret = mddev_lock(mddev); in r5c_journal_mode_store()
2615 ret = r5c_journal_mode_set(mddev, mode); in r5c_journal_mode_store()
2616 mddev_unlock(mddev); in r5c_journal_mode_store()
2778 md_wakeup_thread(conf->mddev->thread); in r5c_release_extra_page()
2834 md_wakeup_thread(conf->mddev->thread); in r5c_finish_stripe_write_out()
3040 struct mddev *mddev = log->rdev->mddev; in r5l_start() local
3041 struct r5conf *conf = mddev->private; in r5l_start()
3048 void r5c_update_on_rdev_error(struct mddev *mddev, struct md_rdev *rdev) in r5c_update_on_rdev_error() argument
3050 struct r5conf *conf = mddev->private; in r5c_update_on_rdev_error()
3069 mdname(conf->mddev), rdev->bdev); in r5l_init_log()
3085 mdname(conf->mddev), conf->raid_disks); in r5l_init_log()
3096 log->uuid_checksum = crc32c_le(~0, rdev->mddev->uuid, in r5l_init_log()
3097 sizeof(rdev->mddev->uuid)); in r5l_init_log()
3127 log->rdev->mddev, "reclaim"); in r5l_init_log()
3149 set_bit(MD_HAS_JOURNAL, &conf->mddev->flags); in r5l_init_log()
3170 wake_up(&conf->mddev->sb_wait); in r5l_exit_log()