4 Oct 2004 08:58
Re: [RFC] memory defragmentation to satisfy high order allocations
Hiroyuki KAMEZAWA <kamezawa.hiroyu <at> jp.fujitsu.com>
2004-10-04 06:58:11 GMT
2004-10-04 06:58:11 GMT
Hi,
Marcelo Tosatti wrote:
> +int can_move_page(struct page *page)
> +{
<snip>
> + if (page_count(page) == 0)
> + return 1;
I think there are 3 cases when page_count(page) == 0.
1. a page is free and in the buddy allocator.
2. a page is free and in per-cpu-pages list.
3. a page is in pagevec .
I think only case 1 pages meet your requirements.
I used PG_private flag for distinguishing case 1 from 2 and 3
in my no-bitmap buddy allocator posted before.
I added PG_private flag to a page which is in buddy allocator's free_list.
Regards
-- Kame
<kamezawa.hiroyu <at> jp.fujitsu.com>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo <at> kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart <at> kvack.org"> aart <at> kvack.org </a>
RSS Feed