From patchwork Tue Nov 8 18:43:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 13036714 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9EE89C4332F for ; Tue, 8 Nov 2022 18:44:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EC2728E0001; Tue, 8 Nov 2022 13:44:22 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E71696B0078; Tue, 8 Nov 2022 13:44:22 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D39178E0001; Tue, 8 Nov 2022 13:44:22 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id C02126B0075 for ; Tue, 8 Nov 2022 13:44:22 -0500 (EST) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 8FD521A06CB for ; Tue, 8 Nov 2022 18:44:22 +0000 (UTC) X-FDA: 80111150364.27.D9956B6 Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by imf03.hostedemail.com (Postfix) with ESMTP id 4220120002 for ; Tue, 8 Nov 2022 18:44:22 +0000 (UTC) Received: by mail-pf1-f179.google.com with SMTP id y203so14585396pfb.4 for ; Tue, 08 Nov 2022 10:44:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=JH2QhHpqacgVEtOu6V/3tcH+ucME36GLS7VYH7bPh2s=; b=gfgIf/HAVM/kaYeBJhJkJ8cAIt9JH8FVUt8AbdjcL2gtn5i2PkRUCbfffZxgLEJQda Op9+9xqJl1ZSfgbDb+QoJ31XG+Y7SoFu3phXGIBD/BAi48blSD4Cy/m5cY1F0tBCCosf sqct8v5HRhlNHTPkORouibJhLs16Y7nwqpA3GX3imljNb0GU6S/UFK+giUcl8+WjhnN5 Jhgs1R1yrL0LPw2NKGkTs68Wa7hEfQkcCL9yNDgDFKkiTiH5RLEcLhiNglxXwAeW8Uzo UcsL257ewqmAUoHotpTt0ChgTn0CRmrq9BUeYpjYOqjLQQOFJ/8Bt0RwKzS6v/mY7Jl5 SKoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JH2QhHpqacgVEtOu6V/3tcH+ucME36GLS7VYH7bPh2s=; b=4yJB9TqvC7YzGqc/hSKaFJT9UjJL4XDOTtFSn0i47u2A1XSKxSMGuAOov8Mkw1PCEI oTYxbUK2DZL0kga61W31hcPO8At5kB7OpIijBVr/MtqErmj7cmK1zbez04CZZqxfLhqA 4frtwYXyJQaZBfmmX9kEdJb3gb0P1OIk7VrwpUZiXDrZrCyTP3UeKt/mlmjIXqfgmVqB tonZf/RaC3YQRkccb+1PSuke/t8nd7EgQ+tRHMPzgSoiLm0mCgU0tNcjBHzTUW6vWXWG r8CdaLvAYvB8hpcvNVAx7dq9Xo2wcyilMRPsHtch8vHXTUPLZIrQMPo3A7+g3jK5zCWM Eppg== X-Gm-Message-State: ACrzQf2C2CiNuWJr+ifoHFB1nUzItTSIeIrF0zle7sSXipaq97NpdScr mKBMe6jzyZUHgC1aZAw+qvM= X-Google-Smtp-Source: AMsMyM4PVPwARffTYpnfKIvuWpr70fVa/7XOUmPKj6m5uJOzRmuzpTdhkZzWLkvkEwznfbYUe1f4vw== X-Received: by 2002:a63:1652:0:b0:470:4524:dc9e with SMTP id 18-20020a631652000000b004704524dc9emr18476984pgw.402.1667933061111; Tue, 08 Nov 2022 10:44:21 -0800 (PST) Received: from localhost.localdomain (c-67-174-241-145.hsd1.ca.comcast.net. [67.174.241.145]) by smtp.gmail.com with ESMTPSA id ij22-20020a170902ab5600b0017f36638010sm7210438plb.276.2022.11.08.10.44.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Nov 2022 10:44:19 -0800 (PST) From: Yang Shi To: zokeefe@google.com, mhocko@suse.com, akpm@linux-foundation.org Cc: shy828301@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [mm-unstable v3 PATCH 1/3] Revert "mm: don't warn if the node is offlined" Date: Tue, 8 Nov 2022 10:43:55 -0800 Message-Id: <20221108184357.55614-1-shy828301@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1667933062; a=rsa-sha256; cv=none; b=1penASs0awptps8gwzgRHEdTj7qVR/TrvO6eq8HGYaQlqGDTNWxNbJalra/A64PF3W1lWO +PTGGa+0eYTnBkxpaU/ApKJqHJO3mY8vqlqzn5SsywgR8B6wZ5I/p0Dl+nLIRdAnUwLWqB q7eQmgLxkIiEhOdam9DvSCFa57/Y14c= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="gfgIf/HA"; spf=pass (imf03.hostedemail.com: domain of shy828301@gmail.com designates 209.85.210.179 as permitted sender) smtp.mailfrom=shy828301@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1667933062; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=JH2QhHpqacgVEtOu6V/3tcH+ucME36GLS7VYH7bPh2s=; b=oNNRHDF2M8SB/xoQW/crRLco5klB6We2MuMhaJKzHtIG8Hhz4XroVO5mobzk2jVS1OZRNb XjEphjJBML+KofXmfvn9ErWsZV1osfLeT07hgZiSgJoTe7g7OoD5X6O5d40hA1HEq9nLhi Sm6oJyjWQFDuBIyrnwcQKzAC6rQkF/Q= X-Stat-Signature: dar6o1jdmug7ub8ohtohdiupakepb6x6 X-Rspamd-Queue-Id: 4220120002 Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="gfgIf/HA"; spf=pass (imf03.hostedemail.com: domain of shy828301@gmail.com designates 209.85.210.179 as permitted sender) smtp.mailfrom=shy828301@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspam-User: X-Rspamd-Server: rspam11 X-HE-Tag: 1667933062-867087 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This reverts commit 6baf85a005ad36dd8586e5c3de598f8c3059dc91. --- include/linux/gfp.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/gfp.h b/include/linux/gfp.h index 594d6dee5646..ef4aea3b356e 100644 --- a/include/linux/gfp.h +++ b/include/linux/gfp.h @@ -218,6 +218,7 @@ static inline struct page * __alloc_pages_node(int nid, gfp_t gfp_mask, unsigned int order) { VM_BUG_ON(nid < 0 || nid >= MAX_NUMNODES); + VM_WARN_ON((gfp_mask & __GFP_THISNODE) && !node_online(nid)); return __alloc_pages(gfp_mask, order, nid, NULL); } @@ -226,6 +227,7 @@ static inline struct folio *__folio_alloc_node(gfp_t gfp, unsigned int order, int nid) { VM_BUG_ON(nid < 0 || nid >= MAX_NUMNODES); + VM_WARN_ON((gfp & __GFP_THISNODE) && !node_online(nid)); return __folio_alloc(gfp, order, nid, NULL); }