Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3203460iob; Fri, 6 May 2022 22:27:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3rscR74GphxlkqsYx3Kq71WDyFCTz9k8daFyL42iY6murkvaLE822h4MUGVDPSRE6SOMD X-Received: by 2002:a05:6808:1202:b0:2f9:c7b4:fd56 with SMTP id a2-20020a056808120200b002f9c7b4fd56mr3079139oil.55.1651901227822; Fri, 06 May 2022 22:27:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651901227; cv=none; d=google.com; s=arc-20160816; b=JrrscxoUYCuGqn/mumzY6fC0/aGaVNg6YULFmZjf2jqjKQic7QHCiQfLsp+Jin5Hki uZZI4dfrgqq111ghw/9R5iW9NbWIeND6vtY3VB2tV9LnXTjFjSmbdADs1hdBcxMqVqU6 pIXpEzaGGiDqpfTgBi0uGbGzBDz03VlacwCjSLBRSGdvfFNbEOfx+DLnm/15kcOY/KI7 9dSHXxF+TOFBaTPviDvVPiGN+lyXnO+7KWFYOh29mBUtC+FNtze5PyYhGkA3nokdgZ2z +3qkD+45rw39O0aZceNUACyUnjFjFEGotaapjQPCg5y+AlHgjSTl4STFAOLWm4gFl+Wz 60CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=oGXEXxnmPm1jJwgtoUfPee73/dkiwrLZl3gf5tfnQ/8=; b=HkVwAvTgDpMTCVdGa9qTcGiSFRXY6frrWHw+VTxcchN3MJlxrS6X+5qGamGPvg3bSh wRDgMmT4642lMU71ptroBKj/QggrePIuoj5ZWCG6zYOXGBDjWJO43+yHdl+fxtRrfbBN ZBocN+A/rYh0r1iuyVXMpIdv2zQz0KK7GK7v+8anHmphnm4R4LZUfaeJpHYYmOc8PiJL D6gSsxZU+BqOo1L7FpZSpYy4sxKch7k8/UOoE9dtd+Zb7rrJ5j7u+KtSDsQRkHPrQjhR oAuEb8I+dIJfPQh3+1QqVqAo3vjiiSOkZjXMJ7V972Iq+BO2ZPmo0QvfPE/wAssrjW+m Eh0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r185-20020aca5dc2000000b002ef0c347585si4523856oib.5.2022.05.06.22.26.53; Fri, 06 May 2022 22:27:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1388190AbiEFBpv (ORCPT + 99 others); Thu, 5 May 2022 21:45:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1388101AbiEFBpL (ORCPT ); Thu, 5 May 2022 21:45:11 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66AAF62129; Thu, 5 May 2022 18:41:27 -0700 (PDT) Received: from kwepemi100025.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KvYB84Mk6zGpVF; Fri, 6 May 2022 09:38:40 +0800 (CST) Received: from kwepemm600017.china.huawei.com (7.193.23.234) by kwepemi100025.china.huawei.com (7.221.188.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 6 May 2022 09:41:24 +0800 Received: from localhost.localdomain (10.175.112.125) by kwepemm600017.china.huawei.com (7.193.23.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 6 May 2022 09:41:22 +0800 From: Peng Liu To: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH 0/2] null_blk: fix wrong use of nr_online_nodes Date: Fri, 6 May 2022 01:57:59 +0000 Message-ID: <20220506015801.757918-1-liupeng256@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemm600017.china.huawei.com (7.193.23.234) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Helper node_available is introduced to judge whether a node can be used, and it is used to fix the wrong use of nr_online_nodes when numa node is sparse. Peng Liu (2): include/linux/nodemask.h: create node_available() helper null_blk: fix wrong use of nr_online_nodes arch/ia64/hp/common/sba_iommu.c | 2 +- arch/x86/pci/acpi.c | 2 +- drivers/acpi/arm64/iort.c | 2 +- drivers/block/null_blk/main.c | 45 ++++++++++++++++++++------------- drivers/pci/pci-sysfs.c | 2 +- include/linux/nodemask.h | 3 +++ mm/mempolicy.c | 2 +- 7 files changed, 36 insertions(+), 22 deletions(-) -- 2.25.1