Linus Torvalds writes: (Summary) On Thu, May 24, 2018 at 2:28 PM Davidlohr Bueso <dave@stgolabs.net> wrote:
For example, bucket_table_alloc() does that
[...]
10 files changed, 79 insertions(+), 86 deletions(-) I certainly can't complain about this small code removal, but I think if we did the kvmalloc_node() cleanup, we'd be able to get rid of even more. For example, bucket_table_alloc() does thatFor example, bucket_table_alloc() does that
if (gfp != GFP_KERNEL) tbl = kzalloc(size, gfp | Wouldn't it be nice to just write it as tbl = kvzalloc(size, gfp);