Lines Matching refs:mddev_t
29 typedef struct mddev_s mddev_t; typedef
40 mddev_t *mddev; /* RAID array if running */
336 static inline void rdev_dec_pending(mdk_rdev_t *rdev, mddev_t *mddev) in rdev_dec_pending()
354 int (*make_request)(mddev_t *mddev, struct bio *bio);
355 int (*run)(mddev_t *mddev);
356 int (*stop)(mddev_t *mddev);
357 void (*status)(struct seq_file *seq, mddev_t *mddev);
361 void (*error_handler)(mddev_t *mddev, mdk_rdev_t *rdev);
362 int (*hot_add_disk) (mddev_t *mddev, mdk_rdev_t *rdev);
363 int (*hot_remove_disk) (mddev_t *mddev, int number);
364 int (*spare_active) (mddev_t *mddev);
365 sector_t (*sync_request)(mddev_t *mddev, sector_t sector_nr, int *skipped, int go_faster);
366 int (*resize) (mddev_t *mddev, sector_t sectors);
367 sector_t (*size) (mddev_t *mddev, sector_t sectors, int raid_disks);
368 int (*check_reshape) (mddev_t *mddev);
369 int (*start_reshape) (mddev_t *mddev);
370 void (*finish_reshape) (mddev_t *mddev);
376 void (*quiesce) (mddev_t *mddev, int state);
386 void *(*takeover) (mddev_t *mddev);
392 ssize_t (*show)(mddev_t *, char *);
393 ssize_t (*store)(mddev_t *, const char *, size_t);
409 static inline char * mdname (mddev_t * mddev) in mdname()
431 void (*run) (mddev_t *mddev);
432 mddev_t *mddev;
474 extern mdk_thread_t * md_register_thread(void (*run) (mddev_t *mddev),
475 mddev_t *mddev, const char *name);
478 extern void md_check_recovery(mddev_t *mddev);
479 extern void md_write_start(mddev_t *mddev, struct bio *bi);
480 extern void md_write_end(mddev_t *mddev);
481 extern void md_done_sync(mddev_t *mddev, int blocks, int ok);
482 extern void md_error(mddev_t *mddev, mdk_rdev_t *rdev);
484 extern int mddev_congested(mddev_t *mddev, int bits);
485 extern void md_flush_request(mddev_t *mddev, struct bio *bio);
486 extern void md_super_write(mddev_t *mddev, mdk_rdev_t *rdev,
488 extern void md_super_wait(mddev_t *mddev);
491 extern void md_do_sync(mddev_t *mddev);
492 extern void md_new_event(mddev_t *mddev);
493 extern int md_allow_write(mddev_t *mddev);
494 extern void md_wait_for_blocked_rdev(mdk_rdev_t *rdev, mddev_t *mddev);
495 extern void md_set_array_sectors(mddev_t *mddev, sector_t array_sectors);
496 extern int md_check_no_bitmap(mddev_t *mddev);
497 extern int md_integrity_register(mddev_t *mddev);
498 extern void md_integrity_add_rdev(mdk_rdev_t *rdev, mddev_t *mddev);
502 extern void mddev_init(mddev_t *mddev);
503 extern int md_run(mddev_t *mddev);
504 extern void md_stop(mddev_t *mddev);
505 extern void md_stop_writes(mddev_t *mddev);
508 extern void mddev_suspend(mddev_t *mddev);
509 extern void mddev_resume(mddev_t *mddev);
511 mddev_t *mddev);
513 mddev_t *mddev);
514 extern int mddev_check_plugged(mddev_t *mddev);