/linux-master/drivers/md/ |
H A D | md-cluster.h | 9 struct mddev; 13 int (*join)(struct mddev *mddev, int nodes); 14 int (*leave)(struct mddev *mddev); 15 int (*slot_number)(struct mddev *mddev); 16 int (*resync_info_update)(struct mddev *mddev, sector_t lo, sector_t hi); 17 void (*resync_info_get)(struct mddev *mdde [all...] |
H A D | md.h | 53 struct mddev *mddev; /* RAID array if running */ member in struct:md_rdev 294 * mddev->curr_resync stores the current sector of the resync but 308 struct mddev { struct 532 void (*sync_super)(struct mddev *mddev, struct md_rdev *rdev); 579 static inline bool md_is_rdwr(struct mddev *mddev) argument 581 return (mddev->ro == MD_RDWR); 584 static inline bool reshape_interrupted(struct mddev *mdde argument 603 mddev_lock(struct mddev *mddev) argument 611 mddev_lock_nointr(struct mddev *mddev) argument 616 mddev_trylock(struct mddev *mddev) argument 701 mdname(struct mddev * mddev) argument 706 sysfs_link_rdev(struct mddev *mddev, struct md_rdev *rdev) argument 718 sysfs_unlink_rdev(struct mddev *mddev, struct md_rdev *rdev) argument 750 struct mddev *mddev; member in struct:md_thread 759 struct mddev *mddev; member in struct:md_io_clone 845 rdev_dec_pending(struct md_rdev *rdev, struct mddev *mddev) argument 855 mddev_is_clustered(struct mddev *mddev) argument 861 mddev_clear_unsupported_flags(struct mddev *mddev, unsigned long unsupported_flags) argument 867 mddev_check_write_zeroes(struct mddev *mddev, struct bio *bio) argument 874 mddev_suspend_and_lock(struct mddev *mddev) argument 889 mddev_suspend_and_lock_nointr(struct mddev *mddev) argument 895 mddev_unlock_and_resume(struct mddev *mddev) argument 919 mddev_is_dm(struct mddev *mddev) argument 924 mddev_trace_remap(struct mddev *mddev, struct bio *bio, sector_t sector) argument [all...] |
H A D | md.c | 95 static int remove_and_add_spares(struct mddev *mddev, 97 static void mddev_detach(struct mddev *mddev); 98 static void export_rdev(struct md_rdev *rdev, struct mddev *mddev); 124 static inline int speed_min(struct mddev *mddev) argument 126 return mddev->sync_speed_min ? 127 mddev 130 speed_max(struct mddev *mddev) argument 145 rdevs_uninit_serial(struct mddev *mddev) argument 181 rdevs_init_serial(struct mddev *mddev) argument 216 mddev_create_serial_pool(struct mddev *mddev, struct md_rdev *rdev) argument 252 mddev_destroy_serial_pool(struct mddev *mddev, struct md_rdev *rdev) argument 342 is_md_suspended(struct mddev *mddev) argument 353 is_suspended(struct mddev *mddev, struct bio *bio) argument 368 md_handle_request(struct mddev *mddev, struct bio *bio) argument 405 struct mddev *mddev = bio->bi_bdev->bd_disk->private_data; local 438 mddev_suspend(struct mddev *mddev, bool interruptible) argument 491 __mddev_resume(struct mddev *mddev, bool recovery_needed) argument 516 mddev_resume(struct mddev *mddev) argument 523 mddev_set_closing_and_sync_blockdev(struct mddev *mddev, int opener_num) argument 547 struct mddev *mddev = rdev->mddev; local 566 struct mddev *mddev = container_of(ws, struct mddev, flush_work); local 600 struct mddev *mddev = container_of(ws, struct mddev, flush_work); local 630 md_flush_request(struct mddev *mddev, struct bio *bio) argument 678 mddev_get(struct mddev *mddev) argument 690 __mddev_put(struct mddev *mddev) argument 706 mddev_put(struct mddev *mddev) argument 720 struct mddev *mddev = container_of(ref, struct mddev, active_io); local 727 mddev_init(struct mddev *mddev) argument 773 mddev_destroy(struct mddev *mddev) argument 782 struct mddev *mddev; local 860 mddev_free(struct mddev *mddev) argument 872 mddev_unlock(struct mddev *mddev) argument 931 md_find_rdev_nr_rcu(struct mddev *mddev, int nr) argument 943 find_rdev(struct mddev *mddev, dev_t dev) argument 954 md_find_rdev_rcu(struct mddev *mddev, dev_t dev) argument 1012 struct mddev *mddev = rdev->mddev; local 1034 md_super_write(struct mddev *mddev, struct md_rdev *rdev, sector_t sector, int size, struct page *page) argument 1073 md_super_wait(struct mddev *mddev) argument 1253 md_check_no_bitmap(struct mddev *mddev) argument 1369 super_90_validate(struct mddev *mddev, struct md_rdev *freshest, struct md_rdev *rdev) argument 1495 super_90_sync(struct mddev *mddev, struct md_rdev *rdev) argument 1873 super_1_validate(struct mddev *mddev, struct md_rdev *freshest, struct md_rdev *rdev) argument 2076 super_1_sync(struct mddev *mddev, struct md_rdev *rdev) argument 2365 sync_super(struct mddev *mddev, struct md_rdev *rdev) argument 2411 md_integrity_register(struct mddev *mddev) argument 2466 md_integrity_add_rdev(struct md_rdev *rdev, struct mddev *mddev) argument 2494 bind_rdev_to_array(struct md_rdev *rdev, struct mddev *mddev) argument 2586 export_rdev(struct md_rdev *rdev, struct mddev *mddev) argument 2601 struct mddev *mddev = rdev->mddev; local 2627 export_array(struct mddev *mddev) argument 2640 set_in_sync(struct mddev *mddev) argument 2667 sync_sbs(struct mddev *mddev, int nospares) argument 2690 does_sb_need_changing(struct mddev *mddev) argument 2731 md_update_sb(struct mddev *mddev, int force_change) argument 2920 struct mddev *mddev = rdev->mddev; local 3033 struct mddev *mddev = rdev->mddev; local 3343 struct mddev *mddev = rdev->mddev; local 3408 struct mddev *mddev; local 3679 struct mddev *mddev = READ_ONCE(rdev->mddev); local 3833 analyze_sbs(struct mddev *mddev) argument 3929 safe_delay_show(struct mddev *mddev, char *page) argument 3936 safe_delay_store(struct mddev *mddev, const char *cbuf, size_t len) argument 3965 level_show(struct mddev *mddev, char *page) argument 3984 level_store(struct mddev *mddev, const char *buf, size_t len) argument 4187 layout_show(struct mddev *mddev, char *page) argument 4198 layout_store(struct mddev *mddev, const char *buf, size_t len) argument 4233 raid_disks_show(struct mddev *mddev, char *page) argument 4247 raid_disks_store(struct mddev *mddev, const char *buf, size_t len) argument 4288 uuid_show(struct mddev *mddev, char *page) argument 4296 chunk_size_show(struct mddev *mddev, char *page) argument 4307 chunk_size_store(struct mddev *mddev, const char *buf, size_t len) argument 4342 resync_start_show(struct mddev *mddev, char *page) argument 4350 resync_start_store(struct mddev *mddev, const char *buf, size_t len) argument 4439 array_state_show(struct mddev *mddev, char *page) argument 4482 array_state_store(struct mddev *mddev, const char *buf, size_t len) argument 4616 max_corrected_read_errors_show(struct mddev *mddev, char *page) argument 4622 max_corrected_read_errors_store(struct mddev *mddev, const char *buf, size_t len) argument 4641 null_show(struct mddev *mddev, char *page) argument 4647 new_dev_store(struct mddev *mddev, const char *buf, size_t len) argument 4711 bitmap_store(struct mddev *mddev, const char *buf, size_t len) argument 4745 size_show(struct mddev *mddev, char *page) argument 4754 size_store(struct mddev *mddev, const char *buf, size_t len) argument 4793 metadata_show(struct mddev *mddev, char *page) argument 4805 metadata_store(struct mddev *mddev, const char *buf, size_t len) argument 4871 action_show(struct mddev *mddev, char *page) argument 4905 stop_sync_thread(struct mddev *mddev, bool locked, bool check_seq) argument 4937 md_idle_sync_thread(struct mddev *mddev) argument 4946 md_frozen_sync_thread(struct mddev *mddev) argument 4955 md_unfrozen_sync_thread(struct mddev *mddev) argument 4966 idle_sync_thread(struct mddev *mddev) argument 4980 frozen_sync_thread(struct mddev *mddev) argument 4995 action_store(struct mddev *mddev, const char *page, size_t len) argument 5066 last_sync_action_show(struct mddev *mddev, char *page) argument 5074 mismatch_cnt_show(struct mddev *mddev, char *page) argument 5084 sync_min_show(struct mddev *mddev, char *page) argument 5091 sync_min_store(struct mddev *mddev, const char *buf, size_t len) argument 5113 sync_max_show(struct mddev *mddev, char *page) argument 5120 sync_max_store(struct mddev *mddev, const char *buf, size_t len) argument 5142 degraded_show(struct mddev *mddev, char *page) argument 5149 sync_force_parallel_show(struct mddev *mddev, char *page) argument 5155 sync_force_parallel_store(struct mddev *mddev, const char *buf, size_t len) argument 5179 sync_speed_show(struct mddev *mddev, char *page) argument 5194 sync_completed_show(struct mddev *mddev, char *page) argument 5219 min_sync_show(struct mddev *mddev, char *page) argument 5225 min_sync_store(struct mddev *mddev, const char *buf, size_t len) argument 5255 max_sync_show(struct mddev *mddev, char *page) argument 5264 max_sync_store(struct mddev *mddev, const char *buf, size_t len) argument 5307 suspend_lo_show(struct mddev *mddev, char *page) argument 5314 suspend_lo_store(struct mddev *mddev, const char *buf, size_t len) argument 5338 suspend_hi_show(struct mddev *mddev, char *page) argument 5345 suspend_hi_store(struct mddev *mddev, const char *buf, size_t len) argument 5369 reshape_position_show(struct mddev *mddev, char *page) argument 5379 reshape_position_store(struct mddev *mddev, const char *buf, size_t len) argument 5415 reshape_direction_show(struct mddev *mddev, char *page) argument 5422 reshape_direction_store(struct mddev *mddev, const char *buf, size_t len) argument 5456 array_size_show(struct mddev *mddev, char *page) argument 5466 array_size_store(struct mddev *mddev, const char *buf, size_t len) argument 5512 consistency_policy_show(struct mddev *mddev, char *page) argument 5535 consistency_policy_store(struct mddev *mddev, const char *buf, size_t len) argument 5557 fail_last_dev_show(struct mddev *mddev, char *page) argument 5567 fail_last_dev_store(struct mddev *mddev, const char *buf, size_t len) argument 5585 serialize_policy_show(struct mddev *mddev, char *page) argument 5598 serialize_policy_store(struct mddev *mddev, const char *buf, size_t len) argument 5692 struct mddev *mddev = container_of(kobj, struct mddev, kobj); local 5714 struct mddev *mddev = container_of(kobj, struct mddev, kobj); local 5734 struct mddev *mddev = container_of(ko, struct mddev, kobj); local 5758 mddev_stack_rdev_limits(struct mddev *mddev, struct queue_limits *lim) argument 5770 mddev_stack_new_rdev(struct mddev *mddev, struct md_rdev *rdev) argument 5785 mddev_update_io_opt(struct mddev *mddev, unsigned int nr_stripes) argument 5804 struct mddev *mddev = container_of(ws, struct mddev, del_work); local 5821 struct mddev *mddev; local 5922 struct mddev *mddev = md_alloc(dev, name); local 5969 struct mddev *mddev = from_timer(mddev, t, safemode_timer); local 5980 md_run(struct mddev *mddev) argument 6267 do_md_run(struct mddev *mddev) argument 6301 md_start(struct mddev *mddev) argument 6315 restart_array(struct mddev *mddev) argument 6356 md_clean(struct mddev *mddev) argument 6413 __md_stop_writes(struct mddev *mddev) argument 6436 md_stop_writes(struct mddev *mddev) argument 6446 mddev_detach(struct mddev *mddev) argument 6460 __md_stop(struct mddev *mddev) argument 6481 md_stop(struct mddev *mddev) argument 6495 md_set_readonly(struct mddev *mddev) argument 6543 do_md_stop(struct mddev *mddev, int mode) argument 6612 autorun_array(struct mddev *mddev) argument 6649 struct mddev *mddev; local 6735 get_array_info(struct mddev *mddev, void __user *arg) argument 6795 get_bitmap_file(struct mddev *mddev, void __user * arg) argument 6827 get_disk_info(struct mddev *mddev, void __user * arg) argument 6867 md_add_new_disk(struct mddev *mddev, struct mdu_disk_info_s *info) argument 7072 hot_remove_disk(struct mddev *mddev, dev_t dev) argument 7111 hot_add_disk(struct mddev *mddev, dev_t dev) argument 7190 set_bitmap_file(struct mddev *mddev, int fd) argument 7292 md_set_array_info(struct mddev *mddev, struct mdu_array_info_s *info) argument 7366 md_set_array_sectors(struct mddev *mddev, sector_t array_sectors) argument 7377 update_size(struct mddev *mddev, sector_t num_sectors) argument 7419 update_raid_disks(struct mddev *mddev, int raid_disks) argument 7467 update_array_info(struct mddev *mddev, mdu_array_info_t *info) argument 7590 set_disk_faulty(struct mddev *mddev, dev_t dev) argument 7619 struct mddev *mddev = bdev->bd_disk->private_data; local 7668 __md_set_array_info(struct mddev *mddev, void __user *argp) argument 7707 struct mddev *mddev = NULL; local 7924 struct mddev *mddev = bdev->bd_disk->private_data; local 7954 struct mddev *mddev; local 7986 struct mddev *mddev = disk->private_data; local 7995 struct mddev *mddev = disk->private_data; local 8006 struct mddev *mddev = disk->private_data; local 8096 md_register_thread(void (*run) (struct md_thread *), struct mddev *mddev, const char *name) argument 8122 md_unregister_thread(struct mddev *mddev, struct md_thread __rcu **threadp) argument 8139 md_error(struct mddev *mddev, struct md_rdev *rdev) argument 8197 status_resync(struct seq_file *seq, struct mddev *mddev) argument 8357 struct mddev *mddev; local 8547 md_setup_cluster(struct mddev *mddev, int nodes) argument 8567 md_cluster_stop(struct mddev *mddev) argument 8575 is_mddev_idle(struct mddev *mddev, int init) argument 8618 md_done_sync(struct mddev *mddev, int blocks, int ok) argument 8639 md_write_start(struct mddev *mddev, struct bio *bi) argument 8697 md_write_inc(struct mddev *mddev, struct bio *bi) argument 8706 md_write_end(struct mddev *mddev) argument 8724 md_submit_discard_bio(struct mddev *mddev, struct md_rdev *rdev, struct bio *bio, sector_t start, sector_t size) argument 8744 struct mddev *mddev = md_io_clone->mddev; local 8757 md_clone_bio(struct mddev *mddev, struct bio **bio) argument 8775 md_account_bio(struct mddev *mddev, struct bio **bio) argument 8786 struct mddev *mddev = md_io_clone->mddev; local 8805 md_allow_write(struct mddev *mddev) argument 8838 struct mddev *mddev = thread->mddev; local 9328 md_spares_need_change(struct mddev *mddev) argument 9343 remove_and_add_spares(struct mddev *mddev, struct md_rdev *this) argument 9394 md_choose_sync_action(struct mddev *mddev, int *spares) argument 9440 struct mddev *mddev = container_of(ws, struct mddev, sync_work); local 9528 unregister_sync_thread(struct mddev *mddev) argument 9564 md_check_recovery(struct mddev *mddev) argument 9697 md_reap_sync_thread(struct mddev *mddev) argument 9762 md_wait_for_blocked_rdev(struct md_rdev *rdev, struct mddev *mddev) argument 9773 md_finish_reshape(struct mddev *mddev) argument 9794 struct mddev *mddev = rdev->mddev; local 9833 struct mddev *mddev, *n; local 9923 check_sb_changes(struct mddev *mddev, struct md_rdev *rdev) argument 10023 read_rdev(struct mddev *mddev, struct md_rdev *rdev) argument 10070 md_reload_sb(struct mddev *mddev, int nr) argument 10173 struct mddev *mddev, *n; local [all...] |
H A D | raid0.c | 35 static void dump_zones(struct mddev *mddev) argument 40 struct r0conf *conf = mddev->private; 43 mdname(mddev), 63 static int create_strip_zones(struct mddev *mddev, struct r0conf **private_conf) argument 76 rdev_for_each(rdev1, mddev) { 78 mdname(mddev), 84 sector_div(sectors, mddev->chunk_sectors); 85 rdev1->sectors = sectors * mddev 320 map_sector(struct mddev *mddev, struct strip_zone *zone, sector_t sector, sector_t *sector_offset) argument 353 raid0_size(struct mddev *mddev, sector_t sectors, int raid_disks) argument 368 free_conf(struct mddev *mddev, struct r0conf *conf) argument 375 raid0_free(struct mddev *mddev, void *priv) argument 382 raid0_set_limits(struct mddev *mddev) argument 395 raid0_run(struct mddev *mddev) argument 453 raid0_handle_discard(struct mddev *mddev, struct bio *bio) argument 553 raid0_map_submit_bio(struct mddev *mddev, struct bio *bio) argument 591 raid0_make_request(struct mddev *mddev, struct bio *bio) argument 626 raid0_status(struct seq_file *seq, struct mddev *mddev) argument 632 raid0_error(struct mddev *mddev, struct md_rdev *rdev) argument 642 raid0_takeover_raid45(struct mddev *mddev) argument 679 raid0_takeover_raid10(struct mddev *mddev) argument 721 raid0_takeover_raid1(struct mddev *mddev) argument 764 raid0_takeover(struct mddev *mddev) argument 801 raid0_quiesce(struct mddev *mddev, int quiesce) argument [all...] |
H A D | md-cluster.c | 27 struct mddev *mddev; /* pointing back to mddev. */ member in struct:dlm_lock_resource 61 struct mddev *mddev; /* the md device which md_cluster_info belongs to */ member in struct:md_cluster_info 150 struct mddev *mddev) 162 || test_bit(MD_CLOSING, &mddev->flags)); 183 static struct dlm_lock_resource *lockres_init(struct mddev *mddev, argument 149 dlm_lock_sync_interruptible(struct dlm_lock_resource *res, int mode, struct mddev *mddev) argument 268 read_resync_info(struct mddev *mddev, struct dlm_lock_resource *lockres) argument 288 struct mddev *mddev = thread->mddev; local 354 struct mddev *mddev = arg; local 359 __recover_slot(struct mddev *mddev, int slot) argument 377 struct mddev *mddev = arg; local 393 struct mddev *mddev = arg; local 432 remove_suspend_info(struct mddev *mddev, int slot) argument 443 process_suspend_info(struct mddev *mddev, int slot, sector_t lo, sector_t hi) argument 504 process_add_new_disk(struct mddev *mddev, struct cluster_msg *cmsg) argument 532 process_metadata_update(struct mddev *mddev, struct cluster_msg *msg) argument 551 process_remove_disk(struct mddev *mddev, struct cluster_msg *msg) argument 568 process_readd_disk(struct mddev *mddev, struct cluster_msg *msg) argument 582 process_recvd_msg(struct mddev *mddev, struct cluster_msg *msg) argument 698 struct mddev *mddev = cinfo->mddev; local 808 gather_all_resync_info(struct mddev *mddev, int total_slots) argument 867 join(struct mddev *mddev, int nodes) argument 977 load_bitmaps(struct mddev *mddev, int total_slots) argument 990 resync_bitmap(struct mddev *mddev) argument 1004 leave(struct mddev *mddev) argument 1043 slot_number(struct mddev *mddev) argument 1056 metadata_update_start(struct mddev *mddev) argument 1085 metadata_update_finish(struct mddev *mddev) argument 1112 metadata_update_cancel(struct mddev *mddev) argument 1119 update_bitmap_size(struct mddev *mddev, sector_t size) argument 1134 resize_bitmaps(struct mddev *mddev, sector_t newsize, sector_t oldsize) argument 1198 cluster_check_sync_size(struct mddev *mddev) argument 1265 update_size(struct mddev *mddev, sector_t old_dev_sectors) argument 1330 resync_start(struct mddev *mddev) argument 1336 resync_info_get(struct mddev *mddev, sector_t *lo, sector_t *hi) argument 1346 resync_info_update(struct mddev *mddev, sector_t lo, sector_t hi) argument 1376 resync_finish(struct mddev *mddev) argument 1393 area_resyncing(struct mddev *mddev, int direction, sector_t lo, sector_t hi) argument 1414 add_new_disk(struct mddev *mddev, struct md_rdev *rdev) argument 1461 add_new_disk_cancel(struct mddev *mddev) argument 1468 new_disk_ack(struct mddev *mddev, bool ack) argument 1483 remove_disk(struct mddev *mddev, struct md_rdev *rdev) argument 1492 lock_all_bitmaps(struct mddev *mddev) argument 1527 unlock_all_bitmaps(struct mddev *mddev) argument 1549 struct mddev *mddev = rdev->mddev; local [all...] |
H A D | md-bitmap.h | 179 /* the main bitmap structure - one per mddev */ 195 struct mddev *mddev; /* the md device that the bitmap is for */ member in struct:bitmap 240 struct bitmap *md_bitmap_create(struct mddev *mddev, int slot); 241 int md_bitmap_load(struct mddev *mddev); 242 void md_bitmap_flush(struct mddev *mddev); 243 void md_bitmap_destroy(struct mddev *mdde [all...] |
H A D | md-bitmap.c | 37 return bitmap->mddev ? mdname(bitmap->mddev) : "mdX"; 144 static int read_sb_page(struct mddev *mddev, loff_t offset, argument 148 sector_t sector = mddev->bitmap_info.offset + offset + 152 rdev_for_each(rdev, mddev) { 166 static struct md_rdev *next_active_rdev(struct md_rdev *rdev, struct mddev *mddev) argument 168 /* Iterate the disks of an mddev, using rcu to protect access to the 184 rdev = list_entry(&mddev 228 struct mddev *mddev = bitmap->mddev; local 283 struct mddev *mddev = bitmap->mddev; local 1110 struct mddev *mddev = bitmap->mddev; local 1271 mddev_set_timeout(struct mddev *mddev, unsigned long timeout, bool force) argument 1293 md_bitmap_daemon_work(struct mddev *mddev) argument 1711 md_bitmap_sync_with_cluster(struct mddev *mddev, sector_t old_lo, sector_t old_hi, sector_t new_lo, sector_t new_hi) argument 1779 md_bitmap_flush(struct mddev *mddev) argument 1841 md_bitmap_wait_behind_writes(struct mddev *mddev) argument 1855 md_bitmap_destroy(struct mddev *mddev) argument 1881 md_bitmap_create(struct mddev *mddev, int slot) argument 1968 md_bitmap_load(struct mddev *mddev) argument 2027 get_bitmap_from_slot(struct mddev *mddev, int slot) argument 2051 md_bitmap_copy_from_slot(struct mddev *mddev, int slot, sector_t *low, sector_t *high, bool clear_bits) argument 2333 location_show(struct mddev *mddev, char *page) argument 2347 location_store(struct mddev *mddev, const char *buf, size_t len) argument 2445 space_show(struct mddev *mddev, char *page) argument 2451 space_store(struct mddev *mddev, const char *buf, size_t len) argument 2478 timeout_show(struct mddev *mddev, char *page) argument 2492 timeout_store(struct mddev *mddev, const char *buf, size_t len) argument 2522 backlog_show(struct mddev *mddev, char *page) argument 2528 backlog_store(struct mddev *mddev, const char *buf, size_t len) argument 2582 chunksize_show(struct mddev *mddev, char *page) argument 2588 chunksize_store(struct mddev *mddev, const char *buf, size_t len) argument 2611 metadata_show(struct mddev *mddev, char *page) argument 2619 metadata_store(struct mddev *mddev, const char *buf, size_t len) argument 2638 can_clear_show(struct mddev *mddev, char *page) argument 2651 can_clear_store(struct mddev *mddev, const char *buf, size_t len) argument 2670 behind_writes_used_show(struct mddev *mddev, char *page) argument 2684 behind_writes_used_reset(struct mddev *mddev, const char *buf, size_t len) argument [all...] |
H A D | raid10.c | 73 static sector_t reshape_request(struct mddev *mddev, sector_t sector_nr, 75 static void reshape_request_write(struct mddev *mddev, struct r10bio *r10_bio); 143 if (test_bit(MD_RECOVERY_SYNC, &conf->mddev->recovery) || 144 test_bit(MD_RECOVERY_RESHAPE, &conf->mddev->recovery)) 190 &conf->mddev->recovery)) { 276 struct r10conf *conf = r10_bio->mddev->private; 284 struct r10conf *conf = r10_bio->mddev->private; 300 struct mddev *mdde local 1087 struct mddev *mddev = plug->cb.data; local 1122 regular_request_wait(struct mddev *mddev, struct r10conf *conf, struct bio *bio, sector_t sectors) argument 1148 raid10_read_request(struct mddev *mddev, struct bio *bio, struct r10bio *r10_bio, bool io_accounting) argument 1240 raid10_write_one_disk(struct mddev *mddev, struct r10bio *r10_bio, struct bio *bio, bool replacement, int n_copy) argument 1285 wait_blocked_dev(struct mddev *mddev, struct r10bio *r10_bio) argument 1345 raid10_write_request(struct mddev *mddev, struct bio *bio, struct r10bio *r10_bio) argument 1506 __make_request(struct mddev *mddev, struct bio *bio, int sectors) argument 1579 raid10_handle_discard(struct mddev *mddev, struct bio *bio) argument 1828 raid10_make_request(struct mddev *mddev, struct bio *bio) argument 1865 raid10_status(struct seq_file *seq, struct mddev *mddev) argument 1959 raid10_error(struct mddev *mddev, struct md_rdev *rdev) argument 2021 raid10_spare_active(struct mddev *mddev) argument 2069 raid10_add_disk(struct mddev *mddev, struct md_rdev *rdev) argument 2138 raid10_remove_disk(struct mddev *mddev, struct md_rdev *rdev) argument 2235 struct mddev *mddev = r10_bio->mddev; local 2263 struct mddev *mddev = r10_bio->mddev; local 2312 sync_request_write(struct mddev *mddev, struct r10bio *r10_bio) argument 2452 struct mddev *mddev = r10_bio->mddev; local 2526 recovery_request_write(struct mddev *mddev, struct r10bio *r10_bio) argument 2596 fix_read_error(struct r10conf *conf, struct mddev *mddev, struct r10bio *r10_bio) argument 2755 struct mddev *mddev = r10_bio->mddev; local 2813 handle_read_error(struct mddev *mddev, struct r10bio *r10_bio) argument 2954 struct mddev *mddev = thread->mddev; local 3142 raid10_sync_request(struct mddev *mddev, sector_t sector_nr, int *skipped) argument 3763 raid10_size(struct mddev *mddev, sector_t sectors, int raid_disks) argument 3813 setup_geo(struct geom *geo, struct mddev *mddev, enum geo_type new) argument 3883 setup_conf(struct mddev *mddev) argument 3979 raid10_set_queue_limits(struct mddev *mddev) argument 3992 raid10_run(struct mddev *mddev) argument 4165 raid10_free(struct mddev *mddev, void *priv) argument 4170 raid10_quiesce(struct mddev *mddev, int quiesce) argument 4180 raid10_resize(struct mddev *mddev, sector_t sectors) argument 4225 raid10_takeover_raid0(struct mddev *mddev, sector_t size, int devs) argument 4260 raid10_takeover(struct mddev *mddev) argument 4282 raid10_check_reshape(struct mddev *mddev) argument 4387 raid10_start_reshape(struct mddev *mddev) argument 4597 reshape_request(struct mddev *mddev, sector_t sector_nr, int *skipped) argument 4874 reshape_request_write(struct mddev *mddev, struct r10bio *r10_bio) argument 4935 raid10_update_reshape_pos(struct mddev *mddev) argument 4948 handle_reshape_read_error(struct mddev *mddev, struct r10bio *r10_bio) argument 5022 struct mddev *mddev = r10_bio->mddev; local 5051 raid10_finish_reshape(struct mddev *mddev) argument [all...] |
H A D | raid1.h | 31 * 1/ when holding mddev->reconfig_mutex 53 * memory pools need a pointer to the mddev, so they can force an unplug 56 * mddev->raid_disks cannot be used, as it can change while a pool is active 64 struct mddev *mddev; member in struct:pool_info 69 struct mddev *mddev; member in struct:r1conf 112 /* When the same as mddev->recovery_disabled we don't allow 161 struct mddev *mddev; member in struct:r1bio [all...] |
H A D | raid1.c | 82 struct mddev *mddev = rdev->mddev; local 87 if (WARN_ON(!mddev->serial_info_pool)) 89 si = mempool_alloc(mddev->serial_info_pool, GFP_NOIO); 99 struct mddev *mddev = rdev->mddev; local 108 mempool_free(si, mddev->serial_info_pool); 178 if (test_bit(MD_RECOVERY_REQUESTED, &pi->mddev 279 struct mddev *mddev = r1_bio->mddev; local 1265 struct mddev *mddev = plug->cb.data; local 1285 init_r1bio(struct r1bio *r1_bio, struct mddev *mddev, struct bio *bio) argument 1295 alloc_r1bio(struct mddev *mddev, struct bio *bio) argument 1307 raid1_read_request(struct mddev *mddev, struct bio *bio, int max_read_sectors, struct r1bio *r1_bio) argument 1422 raid1_write_request(struct mddev *mddev, struct bio *bio, int max_write_sectors) argument 1669 raid1_make_request(struct mddev *mddev, struct bio *bio) argument 1697 raid1_status(struct seq_file *seq, struct mddev *mddev) argument 1731 raid1_error(struct mddev *mddev, struct md_rdev *rdev) argument 1800 raid1_spare_active(struct mddev *mddev) argument 1898 raid1_add_disk(struct mddev *mddev, struct md_rdev *rdev) argument 1959 raid1_remove_disk(struct mddev *mddev, struct md_rdev *rdev) argument 2034 abort_sync_write(struct mddev *mddev, struct r1bio *r1_bio) argument 2051 struct mddev *mddev = r1_bio->mddev; local 2068 struct mddev *mddev = r1_bio->mddev; local 2120 struct mddev *mddev = r1_bio->mddev; local 2247 struct mddev *mddev = r1_bio->mddev; local 2324 sync_request_write(struct mddev *mddev, struct r1bio *r1_bio) argument 2382 struct mddev *mddev = conf->mddev; local 2470 struct mddev *mddev = r1_bio->mddev; local 2608 struct mddev *mddev = conf->mddev; local 2651 struct mddev *mddev = thread->mddev; local 2759 raid1_sync_request(struct mddev *mddev, sector_t sector_nr, int *skipped) argument 3056 raid1_size(struct mddev *mddev, sector_t sectors, int raid_disks) argument 3064 setup_conf(struct mddev *mddev) argument 3197 raid1_set_limits(struct mddev *mddev) argument 3208 raid1_run(struct mddev *mddev) argument 3291 raid1_free(struct mddev *mddev, void *priv) argument 3307 raid1_resize(struct mddev *mddev, sector_t sectors) argument 3336 raid1_reshape(struct mddev *mddev) argument 3446 raid1_quiesce(struct mddev *mddev, int quiesce) argument 3456 raid1_takeover(struct mddev *mddev) argument [all...] |
H A D | dm-raid.c | 245 struct mddev md; 263 struct mddev *mddev = &rs->md; local 265 l->new_level = mddev->new_level; 266 l->new_layout = mddev->new_layout; 267 l->new_chunk_sectors = mddev->new_chunk_sectors; 272 struct mddev *mddev = &rs->md; local 274 mddev->new_level = l->new_level; 275 mddev 686 struct mddev *mddev = &rs->md; local 714 struct mddev *mddev = &rs->md; local 727 struct mddev *mddev = &rs->md; local 1545 struct mddev *mddev = &rs->md; local 1635 struct mddev *mddev = &rs->md; local 1723 struct mddev *mddev = &rs->md; local 1893 struct mddev *mddev = &rs->md; local 2021 struct mddev *mddev = &rs->md; local 2088 super_sync(struct mddev *mddev, struct md_rdev *rdev) argument 2218 struct mddev *mddev = &rs->md; local 2437 struct mddev *mddev = &rs->md; local 2510 struct mddev *mddev = &rs->md; local 2713 struct mddev *mddev = &rs->md; local 2759 struct mddev *mddev = &rs->md; local 2843 struct mddev *mddev = &rs->md; local 3331 struct mddev *mddev = &rs->md; local 3369 decipher_sync_action(struct mddev *mddev, unsigned long recovery) argument 3430 struct mddev *mddev = &rs->md; local 3517 struct mddev *mddev = &rs->md; local 3723 struct mddev *mddev = &rs->md; local 3812 struct mddev *mddev = &rs->md; local 3860 struct mddev *mddev = &rs->md; local 3954 struct mddev *mddev = &rs->md; local 3973 struct mddev *mddev = &rs->md; local 4020 struct mddev *mddev = &rs->md; local 4086 struct mddev *mddev = &rs->md; local [all...] |
H A D | raid1-10.c | 133 static inline bool raid1_add_bio_to_plug(struct mddev *mddev, struct bio *bio, argument 143 if (!md_bitmap_enabled(mddev->bitmap)) { 148 cb = blk_check_plugged(unplug, mddev, sizeof(*plug)); 182 static inline void check_decay_read_errors(struct mddev *mddev, struct md_rdev *rdev) argument 212 static inline bool exceed_read_errors(struct mddev *mddev, struct md_rdev *rdev) argument 214 int max_read_errors = atomic_read(&mddev->max_corr_read_errors); 217 check_decay_read_errors(mddev, rde 286 raid1_should_read_first(struct mddev *mddev, sector_t this_sector, int len) argument [all...] |
H A D | raid5.c | 73 static void raid5_quiesce(struct mddev *mddev, int quiesce); 200 md_wakeup_thread(conf->mddev->thread); 273 md_wakeup_thread(conf->mddev->thread); 279 md_wakeup_thread(conf->mddev->thread); 361 md_wakeup_thread(conf->mddev->thread); 407 if (unlikely(!conf->mddev->thread) || 412 md_wakeup_thread(conf->mddev->thread); 748 int degraded = conf->mddev->degraded; 750 if (test_bit(MD_BROKEN, &conf->mddev 2920 raid5_error(struct mddev *mddev, struct md_rdev *rdev) argument 5369 in_chunk_boundary(struct mddev *mddev, struct bio *bio) argument 5429 struct mddev *mddev = rdev->mddev; local 5449 raid5_read_one_chunk(struct mddev *mddev, struct bio *raid_bio) argument 5525 chunk_aligned_read(struct mddev *mddev, struct bio *raid_bio) argument 5660 struct mddev *mddev = cb->cb.data; local 5694 release_stripe_plug(struct mddev *mddev, struct stripe_head *sh) argument 5722 make_discard_request(struct mddev *mddev, struct bio *bi) argument 5813 ahead_of_reshape(struct mddev *mddev, sector_t sector, sector_t reshape_sector) argument 5820 range_ahead_of_reshape(struct mddev *mddev, sector_t min, sector_t max, sector_t reshape_sector) argument 5827 stripe_ahead_of_reshape(struct mddev *mddev, struct r5conf *conf, struct stripe_head *sh) argument 5903 make_stripe_request(struct mddev *mddev, struct r5conf *conf, struct stripe_request_ctx *ctx, sector_t logical_sector, struct bio *bi) argument 6055 raid5_make_request(struct mddev *mddev, struct bio * bi) argument 6190 reshape_request(struct mddev *mddev, sector_t sector_nr, int *skipped) argument 6461 raid5_sync_request(struct mddev *mddev, sector_t sector_nr, int *skipped) argument 6672 struct mddev *mddev = conf->mddev; local 6720 struct mddev *mddev = thread->mddev; local 6810 raid5_show_stripe_cache_size(struct mddev *mddev, char *page) argument 6823 raid5_set_cache_size(struct mddev *mddev, int size) argument 6854 raid5_store_stripe_cache_size(struct mddev *mddev, const char *page, size_t len) argument 6883 raid5_show_rmw_level(struct mddev *mddev, char *page) argument 6893 raid5_store_rmw_level(struct mddev *mddev, const char *page, size_t len) argument 6925 raid5_show_stripe_size(struct mddev *mddev, char *page) argument 6940 raid5_store_stripe_size(struct mddev *mddev, const char *page, size_t len) argument 7016 raid5_show_preread_threshold(struct mddev *mddev, char *page) argument 7029 raid5_store_preread_threshold(struct mddev *mddev, const char *page, size_t len) argument 7061 raid5_show_skip_copy(struct mddev *mddev, char *page) argument 7074 raid5_store_skip_copy(struct mddev *mddev, const char *page, size_t len) argument 7111 stripe_cache_active_show(struct mddev *mddev, char *page) argument 7124 raid5_show_group_thread_cnt(struct mddev *mddev, char *page) argument 7140 raid5_store_group_thread_cnt(struct mddev *mddev, const char *page, size_t len) argument 7261 raid5_size(struct mddev *mddev, sector_t sectors, int raid_disks) argument 7408 setup_conf(struct mddev *mddev) argument 7695 raid5_set_limits(struct mddev *mddev) argument 7756 raid5_run(struct mddev *mddev) argument 8034 raid5_free(struct mddev *mddev, void *priv) argument 8042 raid5_status(struct seq_file *seq, struct mddev *mddev) argument 8085 raid5_spare_active(struct mddev *mddev) argument 8129 raid5_remove_disk(struct mddev *mddev, struct md_rdev *rdev) argument 8209 raid5_add_disk(struct mddev *mddev, struct md_rdev *rdev) argument 8291 raid5_resize(struct mddev *mddev, sector_t sectors) argument 8326 check_stripe_cache(struct mddev *mddev) argument 8350 check_reshape(struct mddev *mddev) argument 8394 raid5_start_reshape(struct mddev *mddev) argument 8550 raid5_finish_reshape(struct mddev *mddev) argument 8581 raid5_quiesce(struct mddev *mddev, int quiesce) argument 8616 raid45_takeover_raid0(struct mddev *mddev, int level) argument 8642 raid5_takeover_raid1(struct mddev *mddev) argument 8674 raid5_takeover_raid6(struct mddev *mddev) argument 8707 raid5_check_reshape(struct mddev *mddev) argument 8747 raid6_check_reshape(struct mddev *mddev) argument 8767 raid5_takeover(struct mddev *mddev) argument 8790 raid4_takeover(struct mddev *mddev) argument 8809 raid6_takeover(struct mddev *mddev) argument 8855 raid5_change_consistency_policy(struct mddev *mddev, const char *buf) argument 8913 raid5_start(struct mddev *mddev) argument 8925 raid5_prepare_suspend(struct mddev *mddev) argument [all...] |
H A D | raid10.h | 8 * 1/ when holding mddev->reconfig_mutex 22 * mddev->recovery_disabled 29 struct mddev *mddev; member in struct:r10conf 63 * mddev->dev_sectors */ 126 struct mddev *mddev; member in struct:r10bio
|
H A D | raid5-ppl.c | 88 struct mddev *mddev; member in struct:ppl_conf 408 md_error(ppl_conf->mddev, log->rdev); 551 struct r5conf *conf = ppl_conf->mddev->private; 586 struct r5conf *conf = ppl_conf->mddev->private; 594 rdev = md_find_rdev_rcu(conf->mddev, bio_dev(bio)); 596 md_error(rdev->mddev, rdev); 604 md_wakeup_thread(conf->mddev->thread); 612 struct r5conf *conf = ppl_conf->mddev->private; 788 struct mddev *mdde local 964 struct mddev *mddev = rdev->mddev; local 1072 struct mddev *mddev = rdev->mddev; local 1318 struct mddev *mddev = conf->mddev; local 1487 ppl_write_hint_show(struct mddev *mddev, char *buf) argument 1493 ppl_write_hint_store(struct mddev *mddev, const char *page, size_t len) argument [all...] |
H A D | md-autodetect.c | 124 struct mddev *mddev; local 168 mddev = md_alloc(mdev, name); 169 if (IS_ERR(mddev)) { 174 err = mddev_suspend_and_lock(mddev); 180 if (!list_empty(&mddev->disks) || mddev->raid_disks) { 197 err = md_set_array_info(mddev, &ainfo); 212 md_add_new_disk(mddev, &dinfo); 216 err = do_md_run(mddev); [all...] |
H A D | raid5-cache.c | 301 md_write_end(conf->mddev); 316 md_bitmap_endwrite(conf->mddev->bitmap, sh->sector, 421 struct r5conf *conf = log->rdev->mddev->private; 571 md_error(log->rdev->mddev, log->rdev); 606 md_wakeup_thread(log->rdev->mddev->thread); 687 struct mddev *mddev = log->rdev->mddev; local 688 struct r5conf *conf = mddev->private; 693 mdname(mddev)); 865 struct mddev *mddev = log->rdev->mddev; local 1318 struct mddev *mddev; local 1552 struct mddev *mddev = thread->mddev; local 1580 struct mddev *mddev = log->rdev->mddev; local 1811 struct mddev *mddev = log->rdev->mddev; local 1833 struct mddev *mddev = log->rdev->mddev; local 1996 struct mddev *mddev = log->rdev->mddev; local 2070 struct mddev *mddev = log->rdev->mddev; local 2346 struct mddev *mddev = log->rdev->mddev; local 2418 struct mddev *mddev = log->rdev->mddev; local 2450 struct mddev *mddev = log->rdev->mddev; local 2519 struct mddev *mddev = log->rdev->mddev; local 2525 r5c_journal_mode_show(struct mddev *mddev, char *page) argument 2566 r5c_journal_mode_set(struct mddev *mddev, int mode) argument 2590 r5c_journal_mode_store(struct mddev *mddev, const char *page, size_t length) argument 3034 struct mddev *mddev = log->rdev->mddev; local 3042 r5c_update_on_rdev_error(struct mddev *mddev, struct md_rdev *rdev) argument [all...] |
H A D | raid5-log.h | 30 void r5c_update_on_rdev_error(struct mddev *mddev, struct md_rdev *rdev); 49 return test_bit(MD_HAS_JOURNAL, &conf->mddev->flags); 54 return test_bit(MD_HAS_PPL, &conf->mddev->flags);
|
H A D | raid5.h | 465 * 1/ when holding mddev->reconfig_mutex 578 struct mddev *mddev; member in struct:r5conf 807 int raid5_set_cache_size(struct mddev *mddev, int size); 825 int r5c_journal_mode_set(struct mddev *mddev, int journal_mode);
|