Re: [PATCH v11 12/14] btrfs: send: allocate send buffer with alloc_page() and vmap() for v2

Nikolay Borisov
2021-10-18T11:10:07Z

On 1.09.21 г. 20:01, Omar Sandoval wrote:
> From: Omar Sandoval <osandov@fb.com>
>
> For encoded writes, we need the raw pages for reading compressed data
> directly via a bio. So, replace kvmalloc() with vmap() so we have access
> to the raw pages. 144k is large enough that it usually gets allocated
> with vmalloc(), anyways.
>
> Signed-off-by: Omar Sandoval <osandov@fb.com>

Reviewed-by: Nikolay Borisov <nborisov@suse.com>