lkml.org 
[lkml]   [2009]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Patch 1/8] kexec: allow to shrink reserved memory
Eric W. Biederman wrote:
> Amerigo Wang <amwang@redhat.com> writes:
>
>
>> +
>> + start = roundup(start, PAGE_SIZE);
>> + end = roundup(start + new_size, PAGE_SIZE);
>> +
>> + for (addr = end; addr < crashk_res.end; addr += PAGE_SIZE) {
>> + ClearPageReserved(pfn_to_page(addr >> PAGE_SHIFT));
>> + init_page_count(pfn_to_page(addr >> PAGE_SHIFT));
>> + free_page((unsigned long)__va(addr));
>> + totalram_pages++;
>>
>
> Any chance we can move this inline snippet into a helper function in
> -mm. To expose what is happening here to the mm developers.
>
>

Yes, I believe so. In fact I also wanted to do this, but I forgot before
I sent these patches... Will do it in the next version.

Thanks.




\
 
 \ /
  Last update: 2009-08-24 04:03    [W:0.138 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site