Quantcast
Channel: lkml.org : Keith Whitwell
Viewing all articles
Browse latest Browse all 924

Re: [PATCH 2/2] mm: Add kvmalloc_ab_c and kvzalloc_struct

$
0
0
Linus Torvalds writes: (Summary) We should not do a stupid divide, because we damn well know that it is NOT VALID to allocate arrays that have hundreds of fthousands of elements, or where the size of one element is very big.
very big.
So get rid of the stupid divide, and make the limits be much stricter. Like saying "the array element size had better be smaller than one page" (because honestly, bigger elements are not valid in the kernel), and "the size of the array cannot be more than "pick-some-number-out-of-your-ass".

Viewing all articles
Browse latest Browse all 924

Trending Articles