Re: [PATCH v3 1/4] kernfs: kvmalloc xattr value instead of kmalloc

From: Shakeel Butt
Date: Thu Mar 12 2020 - 17:03:59 EST


On Thu, Mar 12, 2020 at 1:03 PM Daniel Xu <dxu@xxxxxxxxx> wrote:
>
> xattr values have a 64k maximum size. This can result in an order 4
> kmalloc request which can be difficult to fulfill. Since xattrs do not
> need physically contiguous memory, we can switch to kvmalloc and not
> have to worry about higher order allocations failing.
>
> Signed-off-by: Daniel Xu <dxu@xxxxxxxxx>

Reviewed-by: Shakeel Butt <shakeelb@xxxxxxxxxx>