[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4A91F4A0.2040009@redhat.com>
Date: Mon, 24 Aug 2009 10:02:08 +0800
From: Amerigo Wang <amwang@...hat.com>
To: "Eric W. Biederman" <ebiederm@...ssion.com>
CC: linux-kernel@...r.kernel.org, tony.luck@...el.com,
linux-ia64@...r.kernel.org, Neil Horman <nhorman@...hat.com>,
Andi Kleen <andi@...stfloor.org>, Ingo Molnar <mingo@...e.hu>,
akpm@...ux-foundation.org, bernhard.walle@....de,
Fenghua Yu <fenghua.yu@...el.com>,
kamezawa.hiroyu@...fujitsu.com,
Anton Vorontsov <avorontsov@...mvista.com>
Subject: Re: [Patch 1/8] kexec: allow to shrink reserved memory
Eric W. Biederman wrote:
> Amerigo Wang <amwang@...hat.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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists