Changeset ca212a51 in mainline for uspace/srv/bd/hr/raid5.c


Ignore:
Timestamp:
2025-07-11T20:13:38Z (9 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
a0abd46
Parents:
b127da2f
Message:

hr: RAID 0, 5: init strip size to closest (down) pow of 2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/hr/raid5.c

    rb127da2f rca212a51  
    131131        vol->data_blkno = single_sz * (vol->extent_no - 1);
    132132
    133         vol->strip_size = HR_STRIP_SIZE;
     133        vol->strip_size = hr_closest_pow2(HR_STRIP_SIZE / (vol->extent_no - 1));
    134134
    135135        if (vol->level == HR_LVL_4)
Note: See TracChangeset for help on using the changeset viewer.