mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 02:20:59 +03:00
Bug fix in qat_compress.c for vmalloc addr check
Remove the unused vmalloc address check, and function mem_to_page will handle the non-vmalloc address when map it to a physical address. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Weigang Li <weigang.li@intel.com> Closes #7125
This commit is contained in:
parent
29b79dcfe9
commit
5f38142e7b
@ -364,10 +364,6 @@ qat_compress(qat_compress_dir_t dir, char *src, int src_len,
|
|||||||
Cpa32U dst_buffer_list_mem_size = sizeof (CpaBufferList) +
|
Cpa32U dst_buffer_list_mem_size = sizeof (CpaBufferList) +
|
||||||
(num_dst_buf * sizeof (CpaFlatBuffer));
|
(num_dst_buf * sizeof (CpaFlatBuffer));
|
||||||
|
|
||||||
if (!is_vmalloc_addr(src) || !is_vmalloc_addr(src + src_len - 1) ||
|
|
||||||
!is_vmalloc_addr(dst) || !is_vmalloc_addr(dst + dst_len - 1))
|
|
||||||
return (-1);
|
|
||||||
|
|
||||||
if (PHYS_CONTIG_ALLOC(&in_pages,
|
if (PHYS_CONTIG_ALLOC(&in_pages,
|
||||||
num_src_buf * sizeof (struct page *)) != CPA_STATUS_SUCCESS)
|
num_src_buf * sizeof (struct page *)) != CPA_STATUS_SUCCESS)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Loading…
Reference in New Issue
Block a user