[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5140AD9B.1030509@gmail.com>
Date: Thu, 14 Mar 2013 00:47:23 +0800
From: Jiang Liu <liuj97@...il.com>
To: Andrew Morton <akpm@...ux-foundation.org>
CC: David Rientjes <rientjes@...gle.com>,
Jiang Liu <jiang.liu@...wei.com>,
Wen Congyang <wency@...fujitsu.com>,
Mel Gorman <mgorman@...e.de>, Minchan Kim <minchan@...nel.org>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>,
Michal Hocko <mhocko@...e.cz>,
Jianguo Wu <wujianguo@...wei.com>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org,
"David S. Miller" <davem@...emloft.net>,
Sam Ravnborg <sam@...nborg.org>, sparclinux@...r.kernel.org
Subject: Re: [PATCH v2, part2 08/10] mm/SPARC: use free_highmem_page() to
free highmem pages into buddy system
On 03/13/2013 05:42 AM, Andrew Morton wrote:
> On Sun, 10 Mar 2013 16:01:08 +0800 Jiang Liu <liuj97@...il.com> wrote:
>
>> Use helper function free_highmem_page() to free highmem pages into
>> the buddy system.
>>
>> ...
>>
>> --- a/arch/sparc/mm/init_32.c
>> +++ b/arch/sparc/mm/init_32.c
>> @@ -282,14 +282,8 @@ static void map_high_region(unsigned long start_pfn, unsigned long end_pfn)
>> printk("mapping high region %08lx - %08lx\n", start_pfn, end_pfn);
>> #endif
>>
>> - for (tmp = start_pfn; tmp < end_pfn; tmp++) {
>> - struct page *page = pfn_to_page(tmp);
>> -
>> - ClearPageReserved(page);
>> - init_page_count(page);
>> - __free_page(page);
>> - totalhigh_pages++;
>> - }
>> + for (tmp = start_pfn; tmp < end_pfn; tmp++)
>> + free_higmem_page(pfn_to_page(tmp));
>> }
>
> This code isn't inside #ifdef CONFIG_HIGHMEM, but afaict that's OK
> because CONFIG_HIGHMEM=n isn't possible on sparc32.
>
> This patch and one other mistyped "free_highmem_page". I got lazy and
> edited those patches in-place.
>
Hi Andrew,
Great thanks for fixing them!
Gerry
--
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