mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Restore part of r274628, reverted at r286776.
Submitted by: avg
This commit is contained in:
parent
d3fdd08cf3
commit
602015fd15
1 changed files with 2 additions and 1 deletions
|
|
@ -6509,7 +6509,8 @@ l2arc_compress_buf(arc_buf_hdr_t *hdr)
|
|||
csize = zio_compress_data(ZIO_COMPRESS_LZ4, hdr->b_l1hdr.b_tmp_cdata,
|
||||
cdata, l2hdr->b_asize);
|
||||
|
||||
rounded = P2ROUNDUP(csize, (size_t)SPA_MINBLOCKSIZE);
|
||||
rounded = P2ROUNDUP(csize,
|
||||
(size_t)1 << l2hdr->b_dev->l2ad_vdev->vdev_ashift);
|
||||
if (rounded > csize) {
|
||||
bzero((char *)cdata + csize, rounded - csize);
|
||||
csize = rounded;
|
||||
|
|
|
|||
Loading…
Reference in a new issue