lkml.org 
[lkml]   [2008]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH 4/5] memory_pressure_notify() caller
On Tue, 15 Jan 2008 10:02:30 +0900
KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> wrote:

> +
> + notify_threshold = (zone->pages_high +
> + zone->lowmem_reserve[MAX_NR_ZONES-1]) * 2;
> +
Why MAX_NR_ZONES-1 ?


> + if (unlikely((prev_free <= notify_threshold) &&
> + (zone_page_state(zone, NR_FREE_PAGES) > notify_threshold)))
> + memory_pressure_notify(zone, 0);
> }

How about this
==
if (unlikely(zone->mem_notify_status && ...)


Thanks,
-Kame



\
 
 \ /
  Last update: 2008-01-15 03:05    [W:0.170 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site