qd_idx 931 drivers/md/raid5-cache.c if (i == sh->pd_idx || i == sh->qd_idx) qd_idx 951 drivers/md/raid5-cache.c sh->dev[sh->qd_idx].log_checksum, true); qd_idx 953 drivers/md/raid5-cache.c r5l_append_payload_page(log, sh->dev[sh->qd_idx].page); qd_idx 1032 drivers/md/raid5-cache.c parity_pages = 1 + !!(sh->qd_idx >= 0); qd_idx 1849 drivers/md/raid5-cache.c if (sh->qd_idx >= 0) { qd_idx 1851 drivers/md/raid5-cache.c log, ctx, sh->dev[sh->qd_idx].page, qd_idx 1853 drivers/md/raid5-cache.c sh->dev[sh->qd_idx].log_checksum = qd_idx 1855 drivers/md/raid5-cache.c set_bit(R5_Wantwrite, &sh->dev[sh->qd_idx].flags); qd_idx 1882 drivers/md/raid5-cache.c if (disk_index == sh->qd_idx || disk_index == sh->pd_idx) qd_idx 118 drivers/md/raid5.c if (sh->qd_idx == sh->disks - 1) qd_idx 121 drivers/md/raid5.c return sh->qd_idx + 1; qd_idx 143 drivers/md/raid5.c if (idx == sh->qd_idx) qd_idx 793 drivers/md/raid5.c while (dd_idx == sh->pd_idx || dd_idx == sh->qd_idx) qd_idx 1467 drivers/md/raid5.c if (i == sh->qd_idx || i == sh->pd_idx || qd_idx 1492 drivers/md/raid5.c int qd_idx = sh->qd_idx; qd_idx 1518 drivers/md/raid5.c if (target == qd_idx) { qd_idx 1530 drivers/md/raid5.c if (i == target || i == qd_idx) qd_idx 1605 drivers/md/raid5.c int qd_idx = sh->qd_idx; qd_idx 1608 drivers/md/raid5.c if (target == qd_idx) qd_idx 1615 drivers/md/raid5.c if (i == data_target || i == qd_idx) qd_idx 1795 drivers/md/raid5.c int qd_idx = sh->qd_idx; qd_idx 1811 drivers/md/raid5.c if (dev->written || i == pd_idx || i == qd_idx) { qd_idx 1939 drivers/md/raid5.c if (sh->pd_idx == i || sh->qd_idx == i) qd_idx 1947 drivers/md/raid5.c set_bit(R5_Discard, &sh->dev[sh->qd_idx].flags); qd_idx 2000 drivers/md/raid5.c int qd_idx = sh->qd_idx; qd_idx 2016 drivers/md/raid5.c if (i == pd_idx || i == qd_idx) qd_idx 2568 drivers/md/raid5.c if (sh->qd_idx >= 0 && sh->pd_idx == i) qd_idx 2720 drivers/md/raid5.c int pd_idx, qd_idx; qd_idx 2748 drivers/md/raid5.c pd_idx = qd_idx = -1; qd_idx 2789 drivers/md/raid5.c qd_idx = pd_idx + 1; qd_idx 2792 drivers/md/raid5.c qd_idx = 0; qd_idx 2798 drivers/md/raid5.c qd_idx = pd_idx + 1; qd_idx 2801 drivers/md/raid5.c qd_idx = 0; qd_idx 2807 drivers/md/raid5.c qd_idx = (pd_idx + 1) % raid_disks; qd_idx 2812 drivers/md/raid5.c qd_idx = (pd_idx + 1) % raid_disks; qd_idx 2818 drivers/md/raid5.c qd_idx = 1; qd_idx 2823 drivers/md/raid5.c qd_idx = data_disks + 1; qd_idx 2831 drivers/md/raid5.c qd_idx = pd_idx + 1; qd_idx 2834 drivers/md/raid5.c qd_idx = 0; qd_idx 2847 drivers/md/raid5.c qd_idx = pd_idx + 1; qd_idx 2850 drivers/md/raid5.c qd_idx = 0; qd_idx 2859 drivers/md/raid5.c qd_idx = (pd_idx + raid_disks - 1) % raid_disks; qd_idx 2869 drivers/md/raid5.c qd_idx = raid_disks - 1; qd_idx 2876 drivers/md/raid5.c qd_idx = raid_disks - 1; qd_idx 2882 drivers/md/raid5.c qd_idx = raid_disks - 1; qd_idx 2888 drivers/md/raid5.c qd_idx = raid_disks - 1; qd_idx 2894 drivers/md/raid5.c qd_idx = raid_disks - 1; qd_idx 2905 drivers/md/raid5.c sh->qd_idx = qd_idx; qd_idx 2962 drivers/md/raid5.c if (i == sh->qd_idx) qd_idx 3027 drivers/md/raid5.c || sh2.qd_idx != sh->qd_idx) { qd_idx 3095 drivers/md/raid5.c int i, pd_idx = sh->pd_idx, qd_idx = sh->qd_idx, disks = sh->disks; qd_idx 3144 drivers/md/raid5.c (!(test_bit(R5_UPTODATE, &sh->dev[qd_idx].flags) || qd_idx 3145 drivers/md/raid5.c test_bit(R5_Wantcompute, &sh->dev[qd_idx].flags)))); qd_idx 3149 drivers/md/raid5.c if (i == pd_idx || i == qd_idx) qd_idx 3181 drivers/md/raid5.c int qd_idx = sh->qd_idx; qd_idx 3182 drivers/md/raid5.c struct r5dev *dev = &sh->dev[qd_idx]; qd_idx 3608 drivers/md/raid5.c s->failed_num[i] != sh->qd_idx && qd_idx 3647 drivers/md/raid5.c ((sh->qd_idx >= 0 && sh->pd_idx == disk_idx) || qd_idx 3813 drivers/md/raid5.c if (sh->qd_idx >= 0) { qd_idx 3814 drivers/md/raid5.c clear_bit(R5_Discard, &sh->dev[sh->qd_idx].flags); qd_idx 3815 drivers/md/raid5.c clear_bit(R5_UPTODATE, &sh->dev[sh->qd_idx].flags); qd_idx 3894 drivers/md/raid5.c i == sh->pd_idx || i == sh->qd_idx || qd_idx 3906 drivers/md/raid5.c i != sh->pd_idx && i != sh->qd_idx && qd_idx 3959 drivers/md/raid5.c i == sh->pd_idx || i == sh->qd_idx || qd_idx 3986 drivers/md/raid5.c i != sh->pd_idx && i != sh->qd_idx && qd_idx 4131 drivers/md/raid5.c int qd_idx = sh->qd_idx; qd_idx 4215 drivers/md/raid5.c dev = &sh->dev[qd_idx]; qd_idx 4286 drivers/md/raid5.c &sh->dev[qd_idx].flags); qd_idx 4287 drivers/md/raid5.c *target = qd_idx; qd_idx 4314 drivers/md/raid5.c if (i != sh->pd_idx && i != sh->qd_idx) { qd_idx 4346 drivers/md/raid5.c j != sh2->qd_idx && qd_idx 4714 drivers/md/raid5.c atomic_read(&sh->count), sh->pd_idx, sh->qd_idx, qd_idx 4781 drivers/md/raid5.c BUG_ON(sh->qd_idx >= 0 && qd_idx 4782 drivers/md/raid5.c !test_bit(R5_UPTODATE, &sh->dev[sh->qd_idx].flags) && qd_idx 4783 drivers/md/raid5.c !test_bit(R5_Discard, &sh->dev[sh->qd_idx].flags)); qd_idx 4787 drivers/md/raid5.c (i == sh->pd_idx || i == sh->qd_idx || qd_idx 4797 drivers/md/raid5.c ((i == sh->pd_idx || i == sh->qd_idx) && qd_idx 4813 drivers/md/raid5.c qdev = &sh->dev[sh->qd_idx]; qd_idx 4814 drivers/md/raid5.c s.q_failed = (s.failed >= 1 && s.failed_num[0] == sh->qd_idx) qd_idx 4815 drivers/md/raid5.c || (s.failed >= 2 && s.failed_num[1] == sh->qd_idx) qd_idx 5532 drivers/md/raid5.c if (d == sh->pd_idx || d == sh->qd_idx) qd_idx 5546 drivers/md/raid5.c if (d == sh->pd_idx || d == sh->qd_idx) qd_idx 5927 drivers/md/raid5.c j == sh->qd_idx) qd_idx 207 drivers/md/raid5.h short qd_idx; /* 'Q' disk index for raid6 */