Changeset 9c3369b in mainline for uspace/srv/bd
- Timestamp:
- 2025-07-09T09:04:58Z (2 weeks ago)
- Children:
- b127da2f
- Parents:
- c5c367a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/raid5.c
rc5c367a r9c3369b 707 707 errno_t rc = EOK; 708 708 size_t rebuild_idx; 709 void *buf = NULL, *xorbuf = NULL;710 709 711 710 if (vol->vflags & HR_VOL_FLAG_READ_ONLY) … … 721 720 uint64_t left = 722 721 vol->data_blkno / (vol->extent_no - 1) - vol->rebuild_blk; 723 buf = hr_malloc_waitok(max_blks * vol->bsize);724 xorbuf = hr_malloc_waitok(max_blks * vol->bsize);725 722 726 723 uint64_t strip_size = vol->strip_size / vol->bsize; /* in blocks */ … … 855 852 856 853 hr_destroy_stripes(stripe, 1); 857 free(buf);858 free(xorbuf);859 854 860 855 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.