Searched refs:raid_disks (Results 1 – 11 of 11) sorted by relevance
/linux-2.4.37.9/drivers/md/ |
D | raid5.c | 189 int disks = conf->raid_disks, i; in init_stripe() 345 if (grow_buffers(sh, conf->raid_disks, PAGE_SIZE, priority)) { in grow_stripes() 346 shrink_buffers(sh, conf->raid_disks); in grow_stripes() 371 shrink_buffers(sh, conf->raid_disks); in shrink_stripes() 382 int disks = conf->raid_disks, i; in raid5_end_read_request() 440 int disks = conf->raid_disks, i; in raid5_end_write_request() 489 for (i = 0, disk = conf->disks; i < conf->raid_disks; i++, disk++) { in raid5_error() 548 static unsigned long raid5_compute_sector(unsigned long r_sector, unsigned int raid_disks, in raid5_compute_sector() argument 583 *pd_idx = data_disks - stripe % raid_disks; in raid5_compute_sector() 588 *pd_idx = stripe % raid_disks; in raid5_compute_sector() [all …]
|
D | raid1.c | 92 conf->freebh_cnt > conf->raid_disks * NR_RESERVED_BUFS/2); in raid1_alloc_bh() 502 if (new_disk <= 0) new_disk = conf->raid_disks; in raid1_read_balance() 542 new_disk = conf->raid_disks; in raid1_read_balance() 564 disk = conf->raid_disks; in raid1_read_balance() 664 bhl = raid1_alloc_bh(conf, conf->raid_disks); in raid1_make_request() 748 seq_printf(seq, " [%d/%d] [", conf->raid_disks, in raid1_status() 750 for (i = 0; i < conf->raid_disks; i++) in raid1_status() 817 if (i < conf->raid_disks && conf->working_disks == 1) { in raid1_error() 847 conf->raid_disks, conf->nr_disks); in print_raid1_conf() 920 for (i = 0; i < conf->raid_disks; i++) { in raid1_diskop() [all …]
|
D | multipath.c | 234 for (disk = 0; disk < conf->raid_disks; disk++) in multipath_read_balance() 289 seq_printf (seq, " [%d/%d] [", conf->raid_disks, in multipath_status() 291 for (i = 0; i < conf->raid_disks; i++) in multipath_status() 407 conf->raid_disks, conf->nr_disks); in print_multipath_conf() 443 for (i = 0; i < conf->raid_disks; i++) { in multipath_diskop() 455 if ((failed_disk == -1) || (failed_disk >= conf->raid_disks)) { in multipath_diskop() 469 for (i = conf->raid_disks; i < MD_SB_DISKS; i++) { in multipath_diskop() 506 for (i = conf->raid_disks; i < MD_SB_DISKS; i++) { in multipath_diskop() 627 if (rdisk->spare && (removed_disk < conf->raid_disks)) { in multipath_diskop() 943 conf->raid_disks = sb->raid_disks = sb->active_disks = 1; in multipath_run() [all …]
|
D | md.c | 366 if (mddev->nb_dev != mddev->sb->raid_disks) { in md_check_ordering() 368 mdidx(mddev), mddev->sb->raid_disks, mddev->nb_dev); in md_check_ordering() 784 sb->size, sb->nr_disks, sb->raid_disks, sb->md_minor, in print_sb() 1591 data_disks = sb->raid_disks; in device_size_calculation() 1598 data_disks = sb->raid_disks-1; in device_size_calculation() 2159 SET_FROM_SB(raid_disks); in get_array_info() 2455 disk = mddev->sb->disks + mddev->sb->raid_disks; in hot_add_disk() 2456 for (i = mddev->sb->raid_disks; i < MD_SB_DISKS; i++) { in hot_add_disk() 2533 SET_SB(raid_disks); in set_array_info() 3615 if (sb->active_disks == sb->raid_disks) in md_do_recovery() [all …]
|
/linux-2.4.37.9/include/linux/raid/ |
D | multipath.h | 24 int raid_disks; member
|
D | raid1.h | 27 int raid_disks; member
|
D | raid5.h | 206 int raid_disks, working_disks, failed_disks; member
|
D | md_u.h | 64 int raid_disks; member
|
D | md_p.h | 113 __u32 raid_disks; /* 10 disks in a fully functional raid set */ member
|
/linux-2.4.37.9/drivers/ide/raid/ |
D | hptraid.h | 44 u_int8_t raid_disks; member
|
D | hptraid.c | 634 raid->disks = prom->raid_disks; in writeentry()
|