Re: [PATCH v3 1/4] kernfs: kvmalloc xattr value instead of kmalloc
From: Shakeel Butt <hidden>
Date: 2020-03-12 21:04:02
Also in:
linux-fsdevel, lkml
From: Shakeel Butt <hidden>
Date: 2020-03-12 21:04:02
Also in:
linux-fsdevel, lkml
On Thu, Mar 12, 2020 at 1:03 PM Daniel Xu [off-list ref] 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 <redacted>
Reviewed-by: Shakeel Butt <redacted>