lkml.org 
[lkml]   [2009]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH 4/4] vmscan: vmscan don't use pcp list
On Fri, 27 Nov 2009, KOSAKI Motohiro wrote:

> patch series, but Christoph mentioned simple bypass pcp instead.
> I made it. I'd hear Christoph and Mel's mention.

Ah. good.

> + kmemcheck_free_shadow(page, 0);
> +
> + if (PageAnon(page))
> + page->mapping = NULL;
> + if (free_pages_check(page)) {
> + /* orphan this page. */
> + list_del(&page->lru);
> + continue;
> + }
> + if (!PageHighMem(page)) {
> + debug_check_no_locks_freed(page_address(page),
> + PAGE_SIZE);
> + debug_check_no_obj_freed(page_address(page), PAGE_SIZE);
> + }
> + arch_free_page(page, 0);
> + kernel_map_pages(page, 1, 0);
> +
> + local_irq_save(flags);
> + if (unlikely(wasMlocked))
> + free_page_mlock(page);
> + local_irq_restore(flags);

The above looks like it should be generic logic that is used elsewhere?
Create a common function?


Rest looks good to me...



\
 
 \ /
  Last update: 2009-11-27 20:27    [W:0.120 / U:41.592 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site