Searched refs:chunksect (Results 1 – 2 of 2) sorted by relevance
722 int chunksect; in raid0_takeover_raid1() local737 chunksect = 64 * 2; /* 64K by default */ in raid0_takeover_raid1()740 while (chunksect && (mddev->array_sectors & (chunksect - 1))) in raid0_takeover_raid1()741 chunksect >>= 1; in raid0_takeover_raid1()743 if ((chunksect << 9) < PAGE_SIZE) in raid0_takeover_raid1()750 mddev->new_chunk_sectors = chunksect; in raid0_takeover_raid1()751 mddev->chunk_sectors = chunksect; in raid0_takeover_raid1()
8770 int chunksect; in raid5_takeover_raid1() local8779 chunksect = 64*2; /* 64K by default */ in raid5_takeover_raid1()8782 while (chunksect && (mddev->array_sectors & (chunksect-1))) in raid5_takeover_raid1()8783 chunksect >>= 1; in raid5_takeover_raid1()8785 if ((chunksect<<9) < RAID5_STRIPE_SIZE((struct r5conf *)mddev->private)) in raid5_takeover_raid1()8791 mddev->new_chunk_sectors = chunksect; in raid5_takeover_raid1()