]> Git Repo - linux.git/commit - fs/xattr.c
kernfs: kvmalloc xattr value instead of kmalloc
authorDaniel Xu <[email protected]>
Thu, 12 Mar 2020 20:03:14 +0000 (13:03 -0700)
committerTejun Heo <[email protected]>
Mon, 16 Mar 2020 19:53:47 +0000 (15:53 -0400)
commitfdc85222d58eb6e19ac11181024ac766b19dc470
treef9ea506b4f94759dd3ceab39e8a3d25ed6689891
parente7b20d97967c2995700041f0348ea33047e5c942
kernfs: kvmalloc xattr value instead of kmalloc

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 <[email protected]>
Acked-by: Chris Down <[email protected]>
Reviewed-by: Andreas Dilger <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
fs/xattr.c
This page took 0.053305 seconds and 4 git commands to generate.