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".
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".