Home
last modified time | relevance | path

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

/openbmc/linux/drivers/md/
H A Draid0.c722 int chunksect; in raid0_takeover_raid1() local
737 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()
H A Draid5.c8770 int chunksect; in raid5_takeover_raid1() local
8779 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()