• Home
  • Raw
  • Download

Lines Matching refs:mddev

62 	struct mddev md;
203 rs->dev[i].rdev.mddev = &rs->md; in dev_parms()
618 static void super_sync(struct mddev *mddev, struct md_rdev *rdev) in super_sync() argument
627 rdev_for_each(r, mddev) in super_sync()
636 sb->num_devices = cpu_to_le32(mddev->raid_disks); in super_sync()
639 sb->events = cpu_to_le64(mddev->events); in super_sync()
643 sb->array_resync_offset = cpu_to_le64(mddev->recovery_cp); in super_sync()
645 sb->level = cpu_to_le32(mddev->level); in super_sync()
646 sb->layout = cpu_to_le32(mddev->layout); in super_sync()
647 sb->stripe_sectors = cpu_to_le32(mddev->chunk_sectors); in super_sync()
681 super_sync(rdev->mddev, rdev); in super_load()
686 set_bit(MD_CHANGE_DEVS, &rdev->mddev->flags); in super_load()
703 static int super_init_validation(struct mddev *mddev, struct md_rdev *rdev) in super_init_validation() argument
706 struct raid_set *rs = container_of(mddev, struct raid_set, md); in super_init_validation()
722 mddev->events = events_sb ? : 1; in super_init_validation()
727 if ((le32_to_cpu(sb->level) != mddev->level) || in super_init_validation()
728 (le32_to_cpu(sb->layout) != mddev->layout) || in super_init_validation()
729 (le32_to_cpu(sb->stripe_sectors) != mddev->chunk_sectors)) { in super_init_validation()
736 (le32_to_cpu(sb->num_devices) != mddev->raid_disks)) { in super_init_validation()
742 mddev->recovery_cp = le64_to_cpu(sb->array_resync_offset); in super_init_validation()
755 rdev_for_each(r, mddev) { in super_init_validation()
765 if (new_devs == mddev->raid_disks) { in super_init_validation()
767 set_bit(MD_ARRAY_FIRST_USE, &mddev->flags); in super_init_validation()
778 } else if (mddev->recovery_cp != MaxSector) { in super_init_validation()
787 rdev_for_each(r, mddev) { in super_init_validation()
820 static int super_validate(struct mddev *mddev, struct md_rdev *rdev) in super_validate() argument
828 if (!mddev->events && super_init_validation(mddev, rdev)) in super_validate()
831 mddev->bitmap_info.offset = 4096 >> 9; /* Enable bitmap creation */ in super_validate()
832 rdev->mddev->bitmap_info.default_offset = 4096 >> 9; in super_validate()
863 struct mddev *mddev = &rs->md; in analyse_superblocks() local
880 rdev_for_each_safe(rdev, tmp, mddev) { in analyse_superblocks()
937 if (super_validate(mddev, freshest)) in analyse_superblocks()
940 rdev_for_each(rdev, mddev) in analyse_superblocks()
941 if ((rdev != freshest) && super_validate(mddev, rdev)) in analyse_superblocks()
1063 struct mddev *mddev = &rs->md; in raid_map() local
1065 mddev->pers->make_request(mddev, bio); in raid_map()