nr_mirrors 85 drivers/md/dm-raid1.c unsigned nr_mirrors; nr_mirrors 190 drivers/md/dm-raid1.c for (m = ms->mirror; m < ms->mirror + ms->nr_mirrors; m++) nr_mirrors 270 drivers/md/dm-raid1.c for (i = 0, m = ms->mirror; i < ms->nr_mirrors; i++, m++) { nr_mirrors 277 drivers/md/dm-raid1.c dm_io(&io_req, ms->nr_mirrors, io, &error_bits); nr_mirrors 279 drivers/md/dm-raid1.c for (i = 0; i < ms->nr_mirrors; i++) nr_mirrors 316 drivers/md/dm-raid1.c for (m = 0; m < ms->nr_mirrors; m++) { nr_mirrors 354 drivers/md/dm-raid1.c for (i = 0, dest = to; i < ms->nr_mirrors; i++) { nr_mirrors 369 drivers/md/dm-raid1.c dm_kcopyd_copy(ms->kcopyd_client, &from, ms->nr_mirrors - 1, to, nr_mirrors 378 drivers/md/dm-raid1.c for (m = 0; m < ms->nr_mirrors; m++) { nr_mirrors 424 drivers/md/dm-raid1.c m += ms->nr_mirrors; nr_mirrors 628 drivers/md/dm-raid1.c for (i = 0; i < ms->nr_mirrors; i++) nr_mirrors 667 drivers/md/dm-raid1.c for (i = 0, m = ms->mirror; i < ms->nr_mirrors; i++, m++) nr_mirrors 676 drivers/md/dm-raid1.c BUG_ON(dm_io(&io_req, ms->nr_mirrors, io, NULL)); nr_mirrors 876 drivers/md/dm-raid1.c static struct mirror_set *alloc_context(unsigned int nr_mirrors, nr_mirrors 882 drivers/md/dm-raid1.c kzalloc(struct_size(ms, mirror, nr_mirrors), GFP_KERNEL); nr_mirrors 896 drivers/md/dm-raid1.c ms->nr_mirrors = nr_mirrors; nr_mirrors 1066 drivers/md/dm-raid1.c unsigned int nr_mirrors, m, args_used; nr_mirrors 1078 drivers/md/dm-raid1.c if (!argc || sscanf(argv[0], "%u%c", &nr_mirrors, &dummy) != 1 || nr_mirrors 1079 drivers/md/dm-raid1.c nr_mirrors < 2 || nr_mirrors > MAX_NR_MIRRORS) { nr_mirrors 1087 drivers/md/dm-raid1.c if (argc < nr_mirrors * 2) { nr_mirrors 1093 drivers/md/dm-raid1.c ms = alloc_context(nr_mirrors, dl->type->get_region_size(dl), ti, dl); nr_mirrors 1100 drivers/md/dm-raid1.c for (m = 0; m < nr_mirrors; m++) { nr_mirrors 1165 drivers/md/dm-raid1.c free_context(ms, ti, ms->nr_mirrors); nr_mirrors 1178 drivers/md/dm-raid1.c free_context(ms, ti, ms->nr_mirrors); nr_mirrors 1404 drivers/md/dm-raid1.c DMEMIT("%d ", ms->nr_mirrors); nr_mirrors 1405 drivers/md/dm-raid1.c for (m = 0; m < ms->nr_mirrors; m++) { nr_mirrors 1422 drivers/md/dm-raid1.c DMEMIT("%d", ms->nr_mirrors); nr_mirrors 1423 drivers/md/dm-raid1.c for (m = 0; m < ms->nr_mirrors; m++) nr_mirrors 1448 drivers/md/dm-raid1.c for (i = 0; !ret && i < ms->nr_mirrors; i++)