[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181113131841.z5t7uckslfjq2mwe@master>
Date: Tue, 13 Nov 2018 13:18:41 +0000
From: Wei Yang <richard.weiyang@...il.com>
To: Matthew Wilcox <willy@...radead.org>
Cc: Wei Yang <richard.weiyang@...il.com>, akpm@...ux-foundation.org,
mgorman@...hsingularity.net, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim()
when CONFIG_NUMA is n
On Tue, Nov 13, 2018 at 05:04:20AM -0800, Matthew Wilcox wrote:
>On Tue, Nov 13, 2018 at 04:04:36PM +0800, Wei Yang wrote:
>> Commit fa5e084e43eb ("vmscan: do not unconditionally treat zones that
>> fail zone_reclaim() as full") changed the return value of node_reclaim().
>> The original return value 0 means NODE_RECLAIM_SOME after this commit.
>>
>> While the return value of node_reclaim() when CONFIG_NUMA is n is not
>> changed. This will leads to call zone_watermark_ok() again.
>>
>> This patch fix the return value by adjusting to NODE_RECLAIM_NOSCAN. Since
>> node_reclaim() is only called in page_alloc.c, move it to mm/internal.h.
>>
>> Signed-off-by: Wei Yang <richard.weiyang@...il.com>
>
>Reviewed-by: Matthew Wilcox <willy@...radead.org>
Thanks
--
Wei Yang
Help you, Help me
Powered by blists - more mailing lists