diff options
author | Daniel Xu <dxu@dxuuu.xyz> | 2020-03-12 13:03:14 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2020-03-16 15:53:47 -0400 |
commit | fdc85222d58eb6e19ac11181024ac766b19dc470 (patch) | |
tree | f9ea506b4f94759dd3ceab39e8a3d25ed6689891 /mm/shmem.c | |
parent | e7b20d97967c2995700041f0348ea33047e5c942 (diff) | |
download | lwn-fdc85222d58eb6e19ac11181024ac766b19dc470.tar.gz lwn-fdc85222d58eb6e19ac11181024ac766b19dc470.zip |
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 <dxu@dxuuu.xyz>
Acked-by: Chris Down <chris@chrisdown.name>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'mm/shmem.c')
0 files changed, 0 insertions, 0 deletions