Home
last modified time | relevance | path

Searched refs:chunksect (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/md/
Draid0.c718 int chunksect; in raid0_takeover_raid1() local
733 chunksect = 64 * 2; /* 64K by default */ in raid0_takeover_raid1()
736 while (chunksect && (mddev->array_sectors & (chunksect - 1))) in raid0_takeover_raid1()
737 chunksect >>= 1; in raid0_takeover_raid1()
739 if ((chunksect << 9) < PAGE_SIZE) in raid0_takeover_raid1()
746 mddev->new_chunk_sectors = chunksect; in raid0_takeover_raid1()
747 mddev->chunk_sectors = chunksect; in raid0_takeover_raid1()
Draid5.c8664 int chunksect; in raid5_takeover_raid1() local
8673 chunksect = 64*2; /* 64K by default */ in raid5_takeover_raid1()
8676 while (chunksect && (mddev->array_sectors & (chunksect-1))) in raid5_takeover_raid1()
8677 chunksect >>= 1; in raid5_takeover_raid1()
8679 if ((chunksect<<9) < RAID5_STRIPE_SIZE((struct r5conf *)mddev->private)) in raid5_takeover_raid1()
8685 mddev->new_chunk_sectors = chunksect; in raid5_takeover_raid1()