Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp216736imm; Wed, 29 Aug 2018 18:56:53 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbZasvRbYz16hDuOzH/HZRHB97rqrwc5Pn2PJve/0WV6iM0rziiUEUvxaJ2TtSCHYMsR4bB X-Received: by 2002:a17:902:1d4a:: with SMTP id u10-v6mr8198498plu.267.1535594213059; Wed, 29 Aug 2018 18:56:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535594213; cv=none; d=google.com; s=arc-20160816; b=XdJzy86ivqAk+M0D5Z6DjY9mbK/AoyY0OObowl3yet/tv85yY/mDjs8WjKgm7Wk21F Emh2gqr9fxjz14xvpijc6F0CrHgAeDm+oR8k0d6xD9ZuIYBbyBsy5UZPMT6ZNWzuWZ/F TZt5fTntVvU9bHCBNNQvu7oJMwDMYrL0lx9cJcG/IqngvU56dfI/pYJ04r3sWLwIRqtv IVgN+oI3RN6NC/ZKPh4PloNNkj+wNHlMJ7jGpDosDP7EiPZryAmoL1Kqt15An0xCiHT/ NxcbtmL0i42tXffoR11sLPKssco5EHYc6+ZzM4fulPTQinNFuDIDMjulLQVjFE+Rd7Bk AemQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=GAi743Ni7lIFsx++56BMALKliF6yzls6n4xIsRmV5Uw=; b=ErK9Eu9wKs6XPicVI/eJ+4Bi+Y0oJCkeVfkSUBPOAlB7Bqul4vBpJChu919AIatYpj ZyNNsZze6FJ4K3RArK3pp1MW1fvLk4njJf/hqiCG+7+OtB2r9hPBabW0T+mcuwEgGruj UsMcSgeG7QlbS6sSiDCAN44NFfl16ZonoWblFQ1w0/vWhfeHMKyd4+kCQCTcJLI8Bdmu DA30g6UjtmnGlXy70eGFUyWzgEW7zYYV7P299G8cFa9vX8uvClNaMytzsISJKN04tLm/ I6t2p7a3oCNYHeOX9Gcelk4gyQJ7E/RRzoG5Rw7RHlvFfVwiUCx7VCDl1quJ4dcr80Lj mZnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Mern0D4W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 184-v6si5289858pgj.421.2018.08.29.18.56.37; Wed, 29 Aug 2018 18:56:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Mern0D4W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727125AbeH3FzP (ORCPT + 99 others); Thu, 30 Aug 2018 01:55:15 -0400 Received: from mail-sn1nam02on0121.outbound.protection.outlook.com ([104.47.36.121]:15712 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726169AbeH3FzP (ORCPT ); Thu, 30 Aug 2018 01:55:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GAi743Ni7lIFsx++56BMALKliF6yzls6n4xIsRmV5Uw=; b=Mern0D4W3bk+za2YOcNCqkFNzIv5hds4Og8tL8FllpM/HoH7bifG2i3keJWITzAy4JRA/K6kynuwtjg4VuKyKTeZmJYscfnB0yVf510zLjKDpAxsKeVqlKre9Eznr4eqO3sglrZOPhrdtBWCJz4CviMWaVtMYQlAbtSBSIbpJck= Received: from DM5PR21MB0508.namprd21.prod.outlook.com (10.172.91.142) by DM5PR21MB0475.namprd21.prod.outlook.com (10.172.92.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.1; Thu, 30 Aug 2018 01:55:30 +0000 Received: from DM5PR21MB0508.namprd21.prod.outlook.com ([fe80::65dd:b17f:eb0d:2eee]) by DM5PR21MB0508.namprd21.prod.outlook.com ([fe80::65dd:b17f:eb0d:2eee%8]) with mapi id 15.20.1122.009; Thu, 30 Aug 2018 01:55:29 +0000 From: Pasha Tatashin To: Oscar Salvador , "akpm@linux-foundation.org" CC: "mhocko@suse.com" , "vbabka@suse.cz" , "sfr@canb.auug.org.au" , "iamjoonsoo.kim@lge.com" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Oscar Salvador Subject: Re: [PATCH] mm/page_alloc: Clean up check_for_memory Thread-Topic: [PATCH] mm/page_alloc: Clean up check_for_memory Thread-Index: AQHUPxJkr6MHAJjlhEm5lgIiZ1w8R6TXiugA Date: Thu, 30 Aug 2018 01:55:29 +0000 Message-ID: <332d9ea1-cdd0-6bb6-8e83-28af25096637@microsoft.com> References: <20180828210158.4617-1-osalvador@techadventures.net> In-Reply-To: <20180828210158.4617-1-osalvador@techadventures.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [137.117.57.82] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR21MB0475;6:EM6XUxXZAaj5UYodN1V/Ar28vScTgP1F8Hz6+NyFHPEAc9EhQDDfgfqaAjmv+Qg81CWlMLVowcf+fGE8q97LhmmhWvZ9IBcGqhf28lAF34IvXssJV+bWXp60kdqAvBGysAWWmtxgq/E2I+FifPCONFb3kBNSDWTMvD3HDjNkiGc+ecQ9YRm90dHvbuP83IPETfXhnBkH/BGwGNCdo8C8CO9kqIVgauQHNT4I15tFoxOoBM2D7XyxifGZvmqevS7pQEg5VwrLvmdLNidxpN6USAN66LT69rwLn4eVtZYmmU3WP68sMAy1j5Kwmaf/abOM3jgv32gzbxGJp2qSXJMr/LSe64hBR2pL/Vz6Pqz4CgnkNuKI7aCOyeqcCfQrh7gmbpGPdiKWTvTa0AFLOdGkXHPjmNKqKm+uTGN1JXyk3Rqdw8dmhmK4e1eR2ChgXGjUkrQCdqRwx42oAZp1u7fn+g==;5:MaOXfzKFfA1qddAcYbOTqeDJHyp2oKOvXVnP2pN+BcxouCTdQc3Qbk6sAxMzXNvt5SGYQzNehol/5MYUtsN/RKx6M9xYsVwWE6yDYrPsUSnxdNzlIjWXksEsAC3B81vsKCn/Ew/yn3QpxejqZbUphV/mdkzT2YqMERISHqPT7KI=;7:cbIOIB2WVhcravdPZ3TFRzrqpMcYboZZISlMs4NrAPl2D7vdflxUZyXBa7zh9dL1bzJzPK/b791WlnL7BTJWve296NpPde7sBrnsQvlc/RxYEaw9B4D0sPuHwJEePWtrHeh0Yp/u4Of6mci6/3hYzRd7IqTxF2oyPVJU9PTaNZCdf+ioEcCXirM+80MlACheDbsulKM3uNwSMYTQTL8GKXCOBkeoozPVERybmOcIbHw4JfgYCyUPTPxfmnmTavNQ x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 895ded1c-1493-4031-80f0-08d60e1baa11 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989150)(4534165)(4627221)(201703031133081)(201702281549075)(8990150)(5600074)(711020)(4618075)(2017052603328)(7193020);SRVR:DM5PR21MB0475; x-ms-traffictypediagnostic: DM5PR21MB0475: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Pavel.Tatashin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231340)(944501410)(52105095)(2018427008)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699049)(76991033);SRVR:DM5PR21MB0475;BCL:0;PCL:0;RULEID:;SRVR:DM5PR21MB0475; x-forefront-prvs: 07807C55DC x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(396003)(39860400002)(136003)(346002)(366004)(51444003)(199004)(189003)(6486002)(6436002)(106356001)(105586002)(6246003)(31686004)(8936002)(14454004)(6512007)(81166006)(81156014)(229853002)(256004)(4326008)(2501003)(5250100002)(25786009)(53936002)(68736007)(2616005)(8676002)(36756003)(76176011)(2900100001)(446003)(110136005)(11346002)(486006)(476003)(10090500001)(97736004)(5660300001)(99286004)(72206003)(6506007)(316002)(54906003)(478600001)(186003)(102836004)(10290500003)(53546011)(22452003)(26005)(2906002)(66066001)(6116002)(575784001)(305945005)(31696002)(86612001)(86362001)(7736002)(3846002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR21MB0475;H:DM5PR21MB0508.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: JNauyoHKf9jKr54Lpc4qt/qmNreEc/Wc9MJ1rFnQnrUMdMFLvBE0eHiusao/BHCfrxp0W0qYgH/2L3Ud+s2AOKKhmHBLrWbcl+WZuYYrMGsS/dEP8QAxFsqy3RDcbszqT1bP/8A24vxdG3sF0FyeDTDKo4jS0KzzW0KKv1OL3q3Ew9R0Y4WnP8YTR9JW8r5DDB0lC09KaZd15jF3AiY73hdWLrelD6Kghs2TGF0b+KbObQbh2r3Bbts5ZsUOjJy5pki/G5t9JapnvbW13bArFiaOry6XtH73PLD39QH4AyT/Dwf4oAMV6K5fdBeGTduPu7652MjhlTXrjLfDBR4noiEIMBD0NNkl7UhbHY5GgZc= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 895ded1c-1493-4031-80f0-08d60e1baa11 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Aug 2018 01:55:29.8112 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR21MB0475 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDgvMjgvMTggNTowMSBQTSwgT3NjYXIgU2FsdmFkb3Igd3JvdGU6DQo+IEZyb206IE9z Y2FyIFNhbHZhZG9yIDxvc2FsdmFkb3JAc3VzZS5kZT4NCj4gDQo+IGNoZWNrX2Zvcl9tZW1vcnkg bG9va3MgYSBiaXQgY29uZnVzaW5nLg0KPiBGaXJzdCBvZiBhbGwsIHdlIGhhdmUgdGhpczoNCj4g DQo+IGlmIChOX01FTU9SWSA9PSBOX05PUk1BTF9NRU1PUlkpDQo+IAlyZXR1cm47DQo+IA0KPiBD aGVja2luZyB0aGUgRU5VTSBkZWNsYXJhdGlvbiwgbG9va3MgbGlrZSBOX01FTU9SWSBjYW5vdCBi ZSBlcXVhbCB0bw0KPiBOX05PUk1BTF9NRU1PUlkuDQo+IEkgY291bGQgbm90IGZpbmQgd2hlcmUg Tl9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