Changeset 9c3369b in mainline for uspace/srv/bd


Ignore:
Timestamp:
2025-07-09T09:04:58Z (2 weeks ago)
Author:
Miroslav Cimerman <mc@…>
Children:
b127da2f
Parents:
c5c367a
Message:

hr: raid5.c: remove unused rebuild bufs

File:
1 edited

Legend:

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

    rc5c367a r9c3369b  
    707707        errno_t rc = EOK;
    708708        size_t rebuild_idx;
    709         void *buf = NULL, *xorbuf = NULL;
    710709
    711710        if (vol->vflags & HR_VOL_FLAG_READ_ONLY)
     
    721720        uint64_t left =
    722721            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);
    725722
    726723        uint64_t strip_size = vol->strip_size / vol->bsize; /* in blocks */
     
    855852
    856853        hr_destroy_stripes(stripe, 1);
    857         free(buf);
    858         free(xorbuf);
    859854
    860855        return rc;
Note: See TracChangeset for help on using the changeset viewer.