Quantcast
Channel: lkml.org : Shesha Sreenivasamurthy
Viewing all articles
Browse latest Browse all 1267

Re: [PATCH -next 0/6] rhashtable: guarantee first allocation

$
0
0
Linus Torvalds writes: (Summary) On Thu, May 24, 2018 at 2:28 PM Davidlohr Bueso <dave@stgolabs.net> wrote:

[...]

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 that
For 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);

Viewing all articles
Browse latest Browse all 1267

Trending Articles