From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753384AbcGDKIu (ORCPT ); Mon, 4 Jul 2016 06:08:50 -0400 Received: from out4133-50.mail.aliyun.com ([42.120.133.50]:14378 "EHLO out4133-50.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750895AbcGDKIs (ORCPT ); Mon, 4 Jul 2016 06:08:48 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R701e4;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01l10435;MF=hillf.zj@alibaba-inc.com;NM=1;PH=DS;RN=3;SR=0;TI=SMTPD_----5-Hq88c_1467626907; Reply-To: "Hillf Danton" From: "Hillf Danton" To: "Mel Gorman" Cc: "linux-kernel" , References: <009e01d1d5d8$fcf06440$f6d12cc0$@alibaba-inc.com> In-Reply-To: <009e01d1d5d8$fcf06440$f6d12cc0$@alibaba-inc.com> Subject: Re: [PATCH 04/31] mm, vmscan: begin reclaiming pages on a per-node basis Date: Mon, 04 Jul 2016 18:08:27 +0800 Message-ID: <00a301d1d5dc$02643ca0$072cb5e0$@alibaba-inc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQF3o7OgTsZWr4z3FEXFg0OQNUxUhKC8bdTA Content-Language: zh-cn Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > @@ -2561,17 +2580,23 @@ static void shrink_zones(struct zonelist *zonelist, struct scan_control *sc) > * highmem pages could be pinning lowmem pages storing buffer_heads > */ > orig_mask = sc->gfp_mask; > - if (buffer_heads_over_limit) > + if (buffer_heads_over_limit) { > sc->gfp_mask |= __GFP_HIGHMEM; > + sc->reclaim_idx = classzone_idx = gfp_zone(sc->gfp_mask); > + } > We need to push/pop ->reclaim_idx as ->gfp_mask handled? thanks Hillf From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f70.google.com (mail-oi0-f70.google.com [209.85.218.70]) by kanga.kvack.org (Postfix) with ESMTP id B8C4A6B0005 for ; Mon, 4 Jul 2016 06:08:44 -0400 (EDT) Received: by mail-oi0-f70.google.com with SMTP id x6so244599699oif.1 for ; Mon, 04 Jul 2016 03:08:44 -0700 (PDT) Received: from out4435.biz.mail.alibaba.com (out4435.biz.mail.alibaba.com. [47.88.44.35]) by mx.google.com with ESMTP id w64si774064iof.8.2016.07.04.03.08.42 for ; Mon, 04 Jul 2016 03:08:44 -0700 (PDT) Reply-To: "Hillf Danton" From: "Hillf Danton" References: <009e01d1d5d8$fcf06440$f6d12cc0$@alibaba-inc.com> In-Reply-To: <009e01d1d5d8$fcf06440$f6d12cc0$@alibaba-inc.com> Subject: Re: [PATCH 04/31] mm, vmscan: begin reclaiming pages on a per-node basis Date: Mon, 04 Jul 2016 18:08:27 +0800 Message-ID: <00a301d1d5dc$02643ca0$072cb5e0$@alibaba-inc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Language: zh-cn Sender: owner-linux-mm@kvack.org List-ID: To: Mel Gorman Cc: linux-kernel , linux-mm@kvack.org > @@ -2561,17 +2580,23 @@ static void shrink_zones(struct zonelist *zonelist, struct scan_control *sc) > * highmem pages could be pinning lowmem pages storing buffer_heads > */ > orig_mask = sc->gfp_mask; > - if (buffer_heads_over_limit) > + if (buffer_heads_over_limit) { > sc->gfp_mask |= __GFP_HIGHMEM; > + sc->reclaim_idx = classzone_idx = gfp_zone(sc->gfp_mask); > + } > We need to push/pop ->reclaim_idx as ->gfp_mask handled? thanks Hillf -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org