| /linux/drivers/md/ |
| H A D | md.h | 138 struct mddev *mddev; /* RAID array if running */ member 407 struct mddev { struct 408 void *private; 409 struct md_personality *pers; 410 dev_t unit; 411 int md_minor; 412 struct list_head disks; 413 unsigned long flags; 414 unsigned long sb_flags; 416 int suspended; [all …]
|
| H A D | md.c | 136 static int speed_min(struct mddev *mddev) in speed_min() 142 static int speed_max(struct mddev *mddev) in speed_max() 148 static int sync_io_depth(struct mddev *mddev) in sync_io_depth() 163 static void rdevs_uninit_serial(struct mddev *mddev) in rdevs_uninit_serial() 198 static int rdevs_init_serial(struct mddev *mddev) in rdevs_init_serial() 233 void mddev_create_serial_pool(struct mddev *mddev, struct md_rdev *rdev) in mddev_create_serial_pool() 270 void mddev_destroy_serial_pool(struct mddev *mddev, struct md_rdev *rdev) in mddev_destroy_serial_pool() 370 static bool is_md_suspended(struct mddev *mddev) in is_md_suspended() 381 static bool is_suspended(struct mddev *mddev, struct bio *bio) in is_suspended() 396 bool md_handle_request(struct mddev *mddev, struct bio *bio) in md_handle_request() [all …]
|
| H A D | md-cluster.c | 28 struct mddev *mddev; /* pointing back to mddev. */ member 63 struct mddev *mddev; /* the md device which md_cluster_info belongs to */ member 159 struct mddev *mddev) in dlm_lock_sync_interruptible() 192 static struct dlm_lock_resource *lockres_init(struct mddev *mddev, in lockres_init() 277 static int read_resync_info(struct mddev *mddev, in read_resync_info() 297 struct mddev *mddev = thread->mddev; in recover_bitmaps() local 363 struct mddev *mddev = arg; in recover_prep() local 368 static void __recover_slot(struct mddev *mddev, int slot) in __recover_slot() 386 struct mddev *mddev = arg; in recover_slot() local 402 struct mddev *mddev = arg; in recover_done() local [all …]
|
| H A D | raid0.c | 38 static void dump_zones(struct mddev *mddev) in dump_zones() 66 static int create_strip_zones(struct mddev *mddev, struct r0conf **private_conf) in create_strip_zones() 325 static struct md_rdev *map_sector(struct mddev *mddev, struct strip_zone *zone, in map_sector() 358 static sector_t raid0_size(struct mddev *mddev, sector_t sectors, int raid_disks) in raid0_size() 373 static void raid0_free(struct mddev *mddev, void *priv) in raid0_free() 382 static int raid0_set_limits(struct mddev *mddev) in raid0_set_limits() 404 static int raid0_run(struct mddev *mddev) in raid0_run() 457 static void raid0_handle_discard(struct mddev *mddev, struct bio *bio) in raid0_handle_discard() 558 static void raid0_map_submit_bio(struct mddev *mddev, struct bio *bio) in raid0_map_submit_bio() 596 static bool raid0_make_request(struct mddev *mddev, struct bio *bio) in raid0_make_request() [all …]
|
| H A D | md-linear.c | 30 static inline struct dev_info *which_dev(struct mddev *mddev, sector_t sector) in which_dev() 55 static sector_t linear_size(struct mddev *mddev, sector_t sectors, int raid_disks) in linear_size() 68 static int linear_set_limits(struct mddev *mddev) in linear_set_limits() 88 static struct linear_conf *linear_conf(struct mddev *mddev, int raid_disks) in linear_conf() 166 static int linear_run(struct mddev *mddev) in linear_run() 189 static int linear_add(struct mddev *mddev, struct md_rdev *rdev) in linear_add() 229 static void linear_free(struct mddev *mddev, void *priv) in linear_free() 236 static bool linear_make_request(struct mddev *mddev, struct bio *bio) in linear_make_request() 298 static void linear_status(struct seq_file *seq, struct mddev *mddev) in linear_status() 303 static void linear_error(struct mddev *mddev, struct md_rdev *rdev) in linear_error() [all …]
|
| H A D | md-llbitmap.c | 278 struct mddev *mddev; member 431 static void llbitmap_calculate_chunks(struct mddev *mddev, sector_t blocks, in llbitmap_calculate_chunks() 445 struct mddev *mddev = llbitmap->mddev; in llbitmap_personality_sync_size() local 456 struct mddev *mddev = llbitmap->mddev; in llbitmap_logical_size() local 666 struct mddev *mddev = llbitmap->mddev; in llbitmap_read_page() local 705 struct mddev *mddev = llbitmap->mddev; in llbitmap_write_page() local 874 struct mddev *mddev = llbitmap->mddev; in llbitmap_all_disks_support_wzeroes_unmap() local 895 struct mddev *mddev = llbitmap->mddev; in llbitmap_zero_all_disks() local 975 struct mddev *mddev = llbitmap->mddev; in llbitmap_init_state() local 1002 struct mddev *mddev = llbitmap->mddev; in llbitmap_state_machine() local [all …]
|
| H A D | md-bitmap.c | 167 struct mddev *mddev; /* the md device that the bitmap is for */ member 348 static int read_sb_page(struct mddev *mddev, loff_t offset, in read_sb_page() 370 static struct md_rdev *next_active_rdev(struct md_rdev *rdev, struct mddev *mddev) in next_active_rdev() 432 struct mddev *mddev = bitmap->mddev; in __write_sb_page() local 488 struct mddev *mddev = bitmap->mddev; in write_sb_page() local 1297 static void bitmap_unplug(struct mddev *mddev, bool sync) in bitmap_unplug() 1326 struct mddev *mddev = bitmap->mddev; in md_bitmap_init_from_disk() local 1446 static void bitmap_write_all(struct mddev *mddev) in bitmap_write_all() 1486 static void mddev_set_timeout(struct mddev *mddev, unsigned long timeout, in mddev_set_timeout() 1508 static void bitmap_daemon_work(struct mddev *mddev) in bitmap_daemon_work() [all …]
|
| H A D | raid10.c | 311 struct mddev *mddev = r10_bio->mddev; in reschedule_retry() local 448 struct mddev *mddev = r10_bio->mddev; in close_write() local 1091 struct mddev *mddev = plug->cb.data; in raid10_unplug() local 1126 static void regular_request_wait(struct mddev *mddev, struct r10conf *conf, in regular_request_wait() 1144 static void raid10_read_request(struct mddev *mddev, struct bio *bio, in raid10_read_request() 1246 static void raid10_write_one_disk(struct mddev *mddev, struct r10bio *r10_bio, in raid10_write_one_disk() 1287 static void wait_blocked_dev(struct mddev *mddev, struct r10bio *r10_bio) in wait_blocked_dev() 1343 static bool raid10_write_request(struct mddev *mddev, struct bio *bio, in raid10_write_request() 1503 static bool __make_request(struct mddev *mddev, struct bio *bio, int sectors) in __make_request() 1582 static int raid10_handle_discard(struct mddev *mddev, struct bio *bio) in raid10_handle_discard() [all …]
|
| H A D | raid1.c | 92 struct mddev *mddev = rdev->mddev; in wait_for_serialization() local 112 struct mddev *mddev = rdev->mddev; in remove_serial() local 302 struct mddev *mddev = r1_bio->mddev; in reschedule_retry() local 439 struct mddev *mddev = r1_bio->mddev; in close_write() local 1279 struct mddev *mddev = plug->cb.data; in raid1_unplug() local 1299 static void init_r1bio(struct r1bio *r1_bio, struct mddev *mddev, struct bio *bio) in init_r1bio() 1309 alloc_r1bio(struct mddev *mddev, struct bio *bio) in alloc_r1bio() 1320 static void raid1_read_request(struct mddev *mddev, struct bio *bio, in raid1_read_request() 1426 static void wait_blocked_rdev(struct mddev *mddev, struct bio *bio) in wait_blocked_rdev() 1455 static void raid1_start_write_behind(struct mddev *mddev, struct r1bio *r1_bio, in raid1_start_write_behind() [all …]
|
| H A D | raid5.c | 1137 static bool raid5_discard_limits(struct mddev *mddev, struct bio *bi) in raid5_discard_limits() 2922 static void raid5_error(struct mddev *mddev, struct md_rdev *rdev) in raid5_error() 3839 struct mddev *mddev = sh->raid_conf->mddev; in need_this_block() local 4192 struct mddev *mddev = conf->mddev; in handle_stripe_dirtying() local 5431 static int in_chunk_boundary(struct mddev *mddev, struct bio *bio) in in_chunk_boundary() 5491 struct mddev *mddev = rdev->mddev; in raid5_align_endio() local 5511 static int raid5_read_one_chunk(struct mddev *mddev, struct bio *raid_bio) in raid5_read_one_chunk() 5587 static struct bio *chunk_aligned_read(struct mddev *mddev, struct bio *raid_bio) in chunk_aligned_read() 5722 struct mddev *mddev = cb->cb.data; in raid5_unplug() local 5756 static void release_stripe_plug(struct mddev *mddev, in release_stripe_plug() [all …]
|
| H A D | raid1-10.c | 128 static inline bool raid1_add_bio_to_plug(struct mddev *mddev, struct bio *bio, in raid1_add_bio_to_plug() 164 static inline void raid1_prepare_flush_writes(struct mddev *mddev) in raid1_prepare_flush_writes() 174 static inline void check_decay_read_errors(struct mddev *mddev, struct md_rdev *rdev) in check_decay_read_errors() 204 static inline bool exceed_read_errors(struct mddev *mddev, struct md_rdev *rdev) in exceed_read_errors() 278 static inline bool raid1_should_read_first(struct mddev *mddev, in raid1_should_read_first()
|
| H A D | md-bitmap.h | 142 static inline bool md_bitmap_registered(struct mddev *mddev) in md_bitmap_registered() 147 static inline bool md_bitmap_enabled(struct mddev *mddev, bool flush) in md_bitmap_enabled() 159 static inline bool md_bitmap_start_sync(struct mddev *mddev, sector_t offset, in md_bitmap_start_sync() 171 static inline void md_bitmap_end_sync(struct mddev *mddev, sector_t offset, in md_bitmap_end_sync()
|
| H A D | raid5-ppl.c | 88 struct mddev *mddev; member 790 struct mddev *mddev = ppl_conf->mddev; in ppl_recover_entry() local 966 struct mddev *mddev = rdev->mddev; in ppl_recover() local 1074 struct mddev *mddev = rdev->mddev; in ppl_load_distributed() local 1320 struct mddev *mddev = conf->mddev; in ppl_init_log() local 1488 ppl_write_hint_show(struct mddev *mddev, char *buf) in ppl_write_hint_show() 1494 ppl_write_hint_store(struct mddev *mddev, const char *page, size_t len) in ppl_write_hint_store()
|
| H A D | raid10.h | 24 struct mddev *mddev; member 121 struct mddev *mddev; member
|
| H A D | raid5.h | 574 struct mddev *mddev; member
|