Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/md/
Draid0.c678 int chunksect; in raid0_takeover_raid1() local
693 chunksect = 64 * 2; /* 64K by default */ in raid0_takeover_raid1()
696 while (chunksect && (mddev->array_sectors & (chunksect - 1))) in raid0_takeover_raid1()
697 chunksect >>= 1; in raid0_takeover_raid1()
699 if ((chunksect << 9) < PAGE_SIZE) in raid0_takeover_raid1()
706 mddev->new_chunk_sectors = chunksect; in raid0_takeover_raid1()
707 mddev->chunk_sectors = chunksect; in raid0_takeover_raid1()
Draid5.c8475 int chunksect; in raid5_takeover_raid1() local
8484 chunksect = 64*2; /* 64K by default */ in raid5_takeover_raid1()
8487 while (chunksect && (mddev->array_sectors & (chunksect-1))) in raid5_takeover_raid1()
8488 chunksect >>= 1; in raid5_takeover_raid1()
8490 if ((chunksect<<9) < RAID5_STRIPE_SIZE((struct r5conf *)mddev->private)) in raid5_takeover_raid1()
8496 mddev->new_chunk_sectors = chunksect; in raid5_takeover_raid1()