lkml.org 
[lkml]   [2008]   [Feb]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [patch 17/21] non-reclaimable mlocked pages
From
Date
On Fri, 2008-02-29 at 13:55 +0900, minchan Kim wrote:
> Index: linux-2.6.25-rc2-mm1/mm/page_alloc.c
> ===================================================================
> --- linux-2.6.25-rc2-mm1.orig/mm/page_alloc.c 2008-02-28
> 12:47:36.000000000 -0500
> +++ linux-2.6.25-rc2-mm1/mm/page_alloc.c 2008-02-28
> 12:49:02.000000000 -0500
> @@ -257,6 +257,7 @@ static void bad_page(struct page *page)
> 1 << PG_swapcache |
> 1 << PG_writeback |
> 1 << PG_swapbacked |
> + 1 << PG_mlocked |
> 1 << PG_buddy );
> set_page_count(page, 0);
> reset_page_mapcount(page);
>
> It would be compile error unless CONFIG_NORECLAIM_MLOCK is defined.
>
>
>
> @@ -656,7 +662,9 @@ static int prep_new_page(struct page *pa
>
> page->flags &= ~(1 << PG_uptodate | 1 << PG_error | 1
> << PG_readahead |
> 1 << PG_referenced | 1 << PG_arch_1 |
> - 1 << PG_owner_priv_1 | 1 <<
> PG_mappedtodisk);
> + 1 << PG_owner_priv_1 | 1 <<
> PG_mappedtodisk |
> +//TODO take care of it here, for now.
> + 1 << PG_mlocked );
> set_page_private(page, 0);
> set_page_refcounted(page);
>
> ditto

Well, it will be a compile error for 32-bit systems, so we need to fix
it. PG_mlocked is unconditionally defined/reserved when (BITS_PER_LONG
> 32).

Thanks,
Lee
>



\
 
 \ /
  Last update: 2008-02-29 15:51    [W:0.264 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site