Messages in this thread | | | Date | Thu, 1 Nov 2018 11:27:34 +0100 | From | Michal Hocko <> | Subject | Re: [PATCH v3] mm/page_owner: use kvmalloc instead of kmalloc |
| |
On Thu 01-11-18 18:00:12, Miles Chen wrote: [...] > I did a test today, the only code changed is to clamp to read count to > PAGE_SIZE and it worked well. Maybe we can solve this issue by just > clamping the read count. > > count = count > PAGE_SIZE ? PAGE_SIZE : count;
This i what Matthew was proposing AFAIR. At least as a stop gap solution. Maybe we want to extend this to a more standard implementation later on (e.g. seq_file). -- Michal Hocko SUSE Labs
| |