Messages in this thread | | | Date | Tue, 21 Apr 2020 15:57:07 +0000 (UTC) | From | Christopher Lameter <> | Subject | Re:Re:Re: [PATCH] kmalloc_index optimization(add kmalloc max size check) |
| |
On Tue, 21 Apr 2020, 赵军奎 wrote:
> >You could modify that to check for KMALLOC_MAX_SIZE with some more > >conditionals but then kmalloc_index) is written so that the compiler gets > >constant folding right. > For this point, I am afraid i didn`t catch your idea. > I am not sure how to modify it.... > Is there some similar code implementation in the kernel?
No. That is where you creativity and ingenuity come in. Otherwise you need to leave it alone.
| |