Home
last modified time | relevance | path

Searched defs:mddev (Results 1 – 25 of 39) sorted by relevance

12

/kernel/linux/linux-4.19/drivers/md/
Dmd.h49 struct mddev *mddev; /* RAID array if running */ member
258 struct mddev { struct
259 void *private;
260 struct md_personality *pers;
261 dev_t unit;
262 int md_minor;
263 struct list_head disks;
264 unsigned long flags;
265 unsigned long sb_flags;
267 int suspended;
[all …]
Dmd.c123 static inline int speed_min(struct mddev *mddev) in speed_min()
129 static inline int speed_max(struct mddev *mddev) in speed_max()
190 struct mddev *mddev) in bio_alloc_mddev()
204 static struct bio *md_bio_alloc_sync(struct mddev *mddev) in md_bio_alloc_sync()
224 void md_new_event(struct mddev *mddev) in md_new_event()
267 static bool is_suspended(struct mddev *mddev, struct bio *bio) in is_suspended()
282 void md_handle_request(struct mddev *mddev, struct bio *bio) in md_handle_request()
317 struct mddev *mddev = q->queuedata; in md_make_request() local
358 void mddev_suspend(struct mddev *mddev) in mddev_suspend()
377 void mddev_resume(struct mddev *mddev) in mddev_resume()
[all …]
Dmd-cluster.c32 struct mddev *mddev; /* pointing back to mddev. */ member
73 struct mddev *mddev; /* the md device which md_cluster_info belongs to */ member
155 struct mddev *mddev) in dlm_lock_sync_interruptible()
188 static struct dlm_lock_resource *lockres_init(struct mddev *mddev, in lockres_init()
273 static struct suspend_info *read_resync_info(struct mddev *mddev, struct dlm_lock_resource *lockres) in read_resync_info()
296 struct mddev *mddev = thread->mddev; in recover_bitmaps() local
359 struct mddev *mddev = arg; in recover_prep() local
364 static void __recover_slot(struct mddev *mddev, int slot) in __recover_slot()
382 struct mddev *mddev = arg; in recover_slot() local
398 struct mddev *mddev = arg; in recover_done() local
[all …]
Dmd-linear.c31 static inline struct dev_info *which_dev(struct mddev *mddev, sector_t sector) in which_dev()
62 static int linear_congested(struct mddev *mddev, int bits) in linear_congested()
79 static sector_t linear_size(struct mddev *mddev, sector_t sectors, int raid_disks) in linear_size()
92 static struct linear_conf *linear_conf(struct mddev *mddev, int raid_disks) in linear_conf()
175 static int linear_run (struct mddev *mddev) in linear_run()
197 static int linear_add(struct mddev *mddev, struct md_rdev *rdev) in linear_add()
241 static void linear_free(struct mddev *mddev, void *priv) in linear_free()
248 static bool linear_make_request(struct mddev *mddev, struct bio *bio) in linear_make_request()
307 static void linear_status (struct seq_file *seq, struct mddev *mddev) in linear_status()
312 static void linear_quiesce(struct mddev *mddev, int state) in linear_quiesce()
Draid0.c39 static int raid0_congested(struct mddev *mddev, int bits) in raid0_congested()
57 static void dump_zones(struct mddev *mddev) in dump_zones()
87 static int create_strip_zones(struct mddev *mddev, struct r0conf **private_conf) in create_strip_zones()
333 static struct md_rdev *map_sector(struct mddev *mddev, struct strip_zone *zone, in map_sector()
366 static sector_t raid0_size(struct mddev *mddev, sector_t sectors, int raid_disks) in raid0_size()
383 static int raid0_run(struct mddev *mddev) in raid0_run()
458 static void raid0_free(struct mddev *mddev, void *priv) in raid0_free()
470 static inline int is_io_in_chunk_boundary(struct mddev *mddev, in is_io_in_chunk_boundary()
484 static void raid0_handle_discard(struct mddev *mddev, struct bio *bio) in raid0_handle_discard()
575 static bool raid0_make_request(struct mddev *mddev, struct bio *bio) in raid0_make_request()
[all …]
Dmd-multipath.c62 struct mddev *mddev = mp_bh->mddev; in multipath_reschedule_retry() local
109 static bool multipath_make_request(struct mddev *mddev, struct bio * bio) in multipath_make_request()
146 static void multipath_status(struct seq_file *seq, struct mddev *mddev) in multipath_status()
162 static int multipath_congested(struct mddev *mddev, int bits) in multipath_congested()
187 static void multipath_error (struct mddev *mddev, struct md_rdev *rdev) in multipath_error()
242 static int multipath_add_disk(struct mddev *mddev, struct md_rdev *rdev) in multipath_add_disk()
279 static int multipath_remove_disk(struct mddev *mddev, struct md_rdev *rdev) in multipath_remove_disk()
323 struct mddev *mddev = thread->mddev; in multipathd() local
365 static sector_t multipath_size(struct mddev *mddev, sector_t sectors, int raid_disks) in multipath_size()
373 static int multipath_run (struct mddev *mddev) in multipath_run()
[all …]
Dmd-bitmap.c148 static int read_sb_page(struct mddev *mddev, loff_t offset, in read_sb_page()
175 static struct md_rdev *next_active_rdev(struct md_rdev *rdev, struct mddev *mddev) in next_active_rdev()
215 struct mddev *mddev = bitmap->mddev; in write_sb_page() local
1229 void md_bitmap_daemon_work(struct mddev *mddev) in md_bitmap_daemon_work()
1642 void md_bitmap_sync_with_cluster(struct mddev *mddev, in md_bitmap_sync_with_cluster()
1710 void md_bitmap_flush(struct mddev *mddev) in md_bitmap_flush()
1770 void md_bitmap_wait_behind_writes(struct mddev *mddev) in md_bitmap_wait_behind_writes()
1784 void md_bitmap_destroy(struct mddev *mddev) in md_bitmap_destroy()
1809 struct bitmap *md_bitmap_create(struct mddev *mddev, int slot) in md_bitmap_create()
1896 int md_bitmap_load(struct mddev *mddev) in md_bitmap_load()
[all …]
Draid1.c247 struct mddev *mddev = r1_bio->mddev; in reschedule_retry() local
753 static int raid1_congested(struct mddev *mddev, int bits) in raid1_congested()
1147 struct mddev *mddev = plug->cb.data; in raid1_unplug() local
1168 static void init_r1bio(struct r1bio *r1_bio, struct mddev *mddev, struct bio *bio) in init_r1bio()
1178 alloc_r1bio(struct mddev *mddev, struct bio *bio) in alloc_r1bio()
1190 static void raid1_read_request(struct mddev *mddev, struct bio *bio, in raid1_read_request()
1304 static void raid1_write_request(struct mddev *mddev, struct bio *bio, in raid1_write_request()
1536 static bool raid1_make_request(struct mddev *mddev, struct bio *bio) in raid1_make_request()
1564 static void raid1_status(struct seq_file *seq, struct mddev *mddev) in raid1_status()
1581 static void raid1_error(struct mddev *mddev, struct md_rdev *rdev) in raid1_error()
[all …]
Draid10.c311 struct mddev *mddev = r10_bio->mddev; in reschedule_retry() local
866 static int raid10_congested(struct mddev *mddev, int bits) in raid10_congested()
1088 struct mddev *mddev = plug->cb.data; in raid10_unplug() local
1126 static void raid10_read_request(struct mddev *mddev, struct bio *bio, in raid10_read_request()
1243 static void raid10_write_one_disk(struct mddev *mddev, struct r10bio *r10_bio, in raid10_write_one_disk()
1311 static void raid10_write_request(struct mddev *mddev, struct bio *bio, in raid10_write_request()
1537 static void __make_request(struct mddev *mddev, struct bio *bio, int sectors) in __make_request()
1558 static bool raid10_make_request(struct mddev *mddev, struct bio *bio) in raid10_make_request()
1591 static void raid10_status(struct seq_file *seq, struct mddev *mddev) in raid10_status()
1671 static void raid10_error(struct mddev *mddev, struct md_rdev *rdev) in raid10_error()
[all …]
Dmd-faulty.c173 static bool faulty_make_request(struct mddev *mddev, struct bio *bio) in faulty_make_request()
230 static void faulty_status(struct seq_file *seq, struct mddev *mddev) in faulty_status()
263 static int faulty_reshape(struct mddev *mddev) in faulty_reshape()
292 static sector_t faulty_size(struct mddev *mddev, sector_t sectors, int raid_disks) in faulty_size()
303 static int faulty_run(struct mddev *mddev) in faulty_run()
336 static void faulty_free(struct mddev *mddev, void *priv) in faulty_free()
Ddm-raid.c256 struct mddev *mddev = &rs->md; in rs_config_backup() local
265 struct mddev *mddev = &rs->md; in rs_config_restore() local
680 struct mddev *mddev = &rs->md; in rs_set_rdev_sectors() local
709 struct mddev *mddev = &rs->md; in rs_set_cur() local
722 struct mddev *mddev = &rs->md; in rs_set_new() local
1533 struct mddev *mddev = &rs->md; in rs_set_raid456_stripe_cache() local
1622 struct mddev *mddev = &rs->md; in rs_set_dev_and_array_sectors() local
1738 struct mddev *mddev = &rs->md; in rs_check_takeover() local
1899 struct mddev *mddev = &rs->md; in rs_reshape_requested() local
2029 struct mddev *mddev = &rs->md; in rs_check_reshape() local
[all …]
Draid5.c2679 static void raid5_error(struct mddev *mddev, struct md_rdev *rdev) in raid5_error()
5093 static int raid5_congested(struct mddev *mddev, int bits) in raid5_congested()
5115 static int in_chunk_boundary(struct mddev *mddev, struct bio *bio) in in_chunk_boundary()
5176 struct mddev *mddev; in raid5_align_endio() local
5202 static int raid5_read_one_chunk(struct mddev *mddev, struct bio *raid_bio) in raid5_read_one_chunk()
5293 static struct bio *chunk_aligned_read(struct mddev *mddev, struct bio *raid_bio) in chunk_aligned_read()
5427 struct mddev *mddev = cb->cb.data; in raid5_unplug() local
5461 static void release_stripe_plug(struct mddev *mddev, in release_stripe_plug()
5489 static void make_discard_request(struct mddev *mddev, struct bio *bi) in make_discard_request()
5576 static bool raid5_make_request(struct mddev *mddev, struct bio * bi) in raid5_make_request()
[all …]
Dmd-multipath.h10 struct mddev *mddev; member
26 struct mddev *mddev; member
/kernel/linux/linux-5.10/drivers/md/
Dmd.h52 struct mddev *mddev; /* RAID array if running */ member
283 struct mddev { struct
284 void *private;
285 struct md_personality *pers;
286 dev_t unit;
287 int md_minor;
288 struct list_head disks;
289 unsigned long flags;
290 unsigned long sb_flags;
292 int suspended;
[all …]
Dmd.c117 static inline int speed_min(struct mddev *mddev) in speed_min()
123 static inline int speed_max(struct mddev *mddev) in speed_max()
138 static void rdevs_uninit_serial(struct mddev *mddev) in rdevs_uninit_serial()
174 static int rdevs_init_serial(struct mddev *mddev) in rdevs_init_serial()
209 void mddev_create_serial_pool(struct mddev *mddev, struct md_rdev *rdev, in mddev_create_serial_pool()
253 void mddev_destroy_serial_pool(struct mddev *mddev, struct md_rdev *rdev, in mddev_destroy_serial_pool()
344 struct mddev *mddev) in bio_alloc_mddev()
353 static struct bio *md_bio_alloc_sync(struct mddev *mddev) in md_bio_alloc_sync()
373 void md_new_event(struct mddev *mddev) in md_new_event()
416 static bool is_suspended(struct mddev *mddev, struct bio *bio) in is_suspended()
[all …]
Dmd-cluster.c27 struct mddev *mddev; /* pointing back to mddev. */ member
61 struct mddev *mddev; /* the md device which md_cluster_info belongs to */ member
150 struct mddev *mddev) in dlm_lock_sync_interruptible()
183 static struct dlm_lock_resource *lockres_init(struct mddev *mddev, in lockres_init()
268 static int read_resync_info(struct mddev *mddev, in read_resync_info()
288 struct mddev *mddev = thread->mddev; in recover_bitmaps() local
354 struct mddev *mddev = arg; in recover_prep() local
359 static void __recover_slot(struct mddev *mddev, int slot) in __recover_slot()
377 struct mddev *mddev = arg; in recover_slot() local
393 struct mddev *mddev = arg; in recover_done() local
[all …]
Dmd-linear.c24 static inline struct dev_info *which_dev(struct mddev *mddev, sector_t sector) in which_dev()
49 static sector_t linear_size(struct mddev *mddev, sector_t sectors, int raid_disks) in linear_size()
62 static struct linear_conf *linear_conf(struct mddev *mddev, int raid_disks) in linear_conf()
144 static int linear_run (struct mddev *mddev) in linear_run()
166 static int linear_add(struct mddev *mddev, struct md_rdev *rdev) in linear_add()
210 static void linear_free(struct mddev *mddev, void *priv) in linear_free()
217 static bool linear_make_request(struct mddev *mddev, struct bio *bio) in linear_make_request()
281 static void linear_status (struct seq_file *seq, struct mddev *mddev) in linear_status()
286 static void linear_quiesce(struct mddev *mddev, int state) in linear_quiesce()
Draid0.c35 static void dump_zones(struct mddev *mddev) in dump_zones()
65 static int create_strip_zones(struct mddev *mddev, struct r0conf **private_conf) in create_strip_zones()
311 static struct md_rdev *map_sector(struct mddev *mddev, struct strip_zone *zone, in map_sector()
344 static sector_t raid0_size(struct mddev *mddev, sector_t sectors, int raid_disks) in raid0_size()
361 static int raid0_run(struct mddev *mddev) in raid0_run()
420 static void raid0_free(struct mddev *mddev, void *priv) in raid0_free()
429 static void raid0_handle_discard(struct mddev *mddev, struct bio *bio) in raid0_handle_discard()
519 static bool raid0_make_request(struct mddev *mddev, struct bio *bio) in raid0_make_request()
592 static void raid0_status(struct seq_file *seq, struct mddev *mddev) in raid0_status()
598 static void *raid0_takeover_raid45(struct mddev *mddev) in raid0_takeover_raid45()
[all …]
Dmd-multipath.c54 struct mddev *mddev = mp_bh->mddev; in multipath_reschedule_retry() local
101 static bool multipath_make_request(struct mddev *mddev, struct bio * bio) in multipath_make_request()
138 static void multipath_status(struct seq_file *seq, struct mddev *mddev) in multipath_status()
157 static void multipath_error (struct mddev *mddev, struct md_rdev *rdev) in multipath_error()
212 static int multipath_add_disk(struct mddev *mddev, struct md_rdev *rdev) in multipath_add_disk()
249 static int multipath_remove_disk(struct mddev *mddev, struct md_rdev *rdev) in multipath_remove_disk()
293 struct mddev *mddev = thread->mddev; in multipathd() local
335 static sector_t multipath_size(struct mddev *mddev, sector_t sectors, int raid_disks) in multipath_size()
343 static int multipath_run (struct mddev *mddev) in multipath_run()
437 static void multipath_free(struct mddev *mddev, void *priv) in multipath_free()
Draid10.c273 struct mddev *mddev = r10_bio->mddev; in reschedule_retry() local
1056 struct mddev *mddev = plug->cb.data; in raid10_unplug() local
1100 static void regular_request_wait(struct mddev *mddev, struct r10conf *conf, in regular_request_wait()
1117 static void raid10_read_request(struct mddev *mddev, struct bio *bio, in raid10_read_request()
1211 static void raid10_write_one_disk(struct mddev *mddev, struct r10bio *r10_bio, in raid10_write_one_disk()
1279 static void raid10_write_request(struct mddev *mddev, struct bio *bio, in raid10_write_request()
1483 static void __make_request(struct mddev *mddev, struct bio *bio, int sectors) in __make_request()
1505 static bool raid10_make_request(struct mddev *mddev, struct bio *bio) in raid10_make_request()
1538 static void raid10_status(struct seq_file *seq, struct mddev *mddev) in raid10_status()
1618 static void raid10_error(struct mddev *mddev, struct md_rdev *rdev) in raid10_error()
[all …]
Dmd-bitmap.c149 static int read_sb_page(struct mddev *mddev, loff_t offset, in read_sb_page()
176 static struct md_rdev *next_active_rdev(struct md_rdev *rdev, struct mddev *mddev) in next_active_rdev()
216 struct mddev *mddev = bitmap->mddev; in write_sb_page() local
1225 void md_bitmap_daemon_work(struct mddev *mddev) in md_bitmap_daemon_work()
1639 void md_bitmap_sync_with_cluster(struct mddev *mddev, in md_bitmap_sync_with_cluster()
1707 void md_bitmap_flush(struct mddev *mddev) in md_bitmap_flush()
1769 void md_bitmap_wait_behind_writes(struct mddev *mddev) in md_bitmap_wait_behind_writes()
1783 void md_bitmap_destroy(struct mddev *mddev) in md_bitmap_destroy()
1810 struct bitmap *md_bitmap_create(struct mddev *mddev, int slot) in md_bitmap_create()
1897 int md_bitmap_load(struct mddev *mddev) in md_bitmap_load()
[all …]
Draid1.c84 struct mddev *mddev = rdev->mddev; in wait_for_serialization() local
101 struct mddev *mddev = rdev->mddev; in remove_serial() local
277 struct mddev *mddev = r1_bio->mddev; in reschedule_retry() local
1157 struct mddev *mddev = plug->cb.data; in raid1_unplug() local
1178 static void init_r1bio(struct r1bio *r1_bio, struct mddev *mddev, struct bio *bio) in init_r1bio()
1188 alloc_r1bio(struct mddev *mddev, struct bio *bio) in alloc_r1bio()
1200 static void raid1_read_request(struct mddev *mddev, struct bio *bio, in raid1_read_request()
1314 static void raid1_write_request(struct mddev *mddev, struct bio *bio, in raid1_write_request()
1549 static bool raid1_make_request(struct mddev *mddev, struct bio *bio) in raid1_make_request()
1577 static void raid1_status(struct seq_file *seq, struct mddev *mddev) in raid1_status()
[all …]
Dmd-faulty.c164 static bool faulty_make_request(struct mddev *mddev, struct bio *bio) in faulty_make_request()
221 static void faulty_status(struct seq_file *seq, struct mddev *mddev) in faulty_status()
254 static int faulty_reshape(struct mddev *mddev) in faulty_reshape()
283 static sector_t faulty_size(struct mddev *mddev, sector_t sectors, int raid_disks) in faulty_size()
294 static int faulty_run(struct mddev *mddev) in faulty_run()
327 static void faulty_free(struct mddev *mddev, void *priv) in faulty_free()
Ddm-raid.c261 struct mddev *mddev = &rs->md; in rs_config_backup() local
270 struct mddev *mddev = &rs->md; in rs_config_restore() local
684 struct mddev *mddev = &rs->md; in rs_set_rdev_sectors() local
713 struct mddev *mddev = &rs->md; in rs_set_cur() local
726 struct mddev *mddev = &rs->md; in rs_set_new() local
1537 struct mddev *mddev = &rs->md; in rs_set_raid456_stripe_cache() local
1627 struct mddev *mddev = &rs->md; in rs_set_dev_and_array_sectors() local
1715 struct mddev *mddev = &rs->md; in rs_check_takeover() local
1884 struct mddev *mddev = &rs->md; in rs_reshape_requested() local
2012 struct mddev *mddev = &rs->md; in rs_check_reshape() local
[all …]
Draid5.c2873 static void raid5_error(struct mddev *mddev, struct md_rdev *rdev) in raid5_error()
5307 static int in_chunk_boundary(struct mddev *mddev, struct bio *bio) in in_chunk_boundary()
5368 struct mddev *mddev; in raid5_align_endio() local
5394 static int raid5_read_one_chunk(struct mddev *mddev, struct bio *raid_bio) in raid5_read_one_chunk()
5484 static struct bio *chunk_aligned_read(struct mddev *mddev, struct bio *raid_bio) in chunk_aligned_read()
5618 struct mddev *mddev = cb->cb.data; in raid5_unplug() local
5652 static void release_stripe_plug(struct mddev *mddev, in release_stripe_plug()
5680 static void make_discard_request(struct mddev *mddev, struct bio *bi) in make_discard_request()
5767 static bool raid5_make_request(struct mddev *mddev, struct bio * bi) in raid5_make_request()
5942 static sector_t reshape_request(struct mddev *mddev, sector_t sector_nr, int *skipped) in reshape_request()
[all …]

12