Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4432114ioa; Wed, 27 Apr 2022 03:51:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySd+v59T7rpKclEQWkBrwYWnlR03B2KatY6ihtUADJTRjef3j+MKdXON3EO/FlbPHFqXVj X-Received: by 2002:a65:4206:0:b0:3aa:4b01:c98 with SMTP id c6-20020a654206000000b003aa4b010c98mr23927612pgq.320.1651056716863; Wed, 27 Apr 2022 03:51:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651056716; cv=none; d=google.com; s=arc-20160816; b=SuXJkxymehhhwLXff6RwJMuh8UYTTkugFTWfeQKQD/xZPxzvrDaSoZCuJp+AqGy7wp ZIrDvnZ0bONYWG9IGKW4arDW1pOjPOsP47ksod+f0/XvxjCCZAQlt/itkz6CffxIXGQQ oVuZJp8OoT3f4PUtfyDOftnbk05PEh+qRrPXUtAMBH7Dd8g7EQ3UJTxA1dffcH+apivA USC+8N6uJ+bCZdwpU1HQntMfPqXRbt9ICVI6yEZzPao6FSNzg3EJiaIZA+ZcVdmWefgg itj+3ssbB+356xbuetBXmJ3z1K1fuY+yh4ZodoL4G3hLeU0b8rjdIsPoPMK7XwNp88qt So1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=SEm8RFoD3mzqXjcHWM9Z/XfNnVTnRxEBaTJIwFUC6FI=; b=uVEh8KOCFofEKdLy0Xu7P20C7s/ZcegNRXaa9cmOZO1P7gHh7AqvmJmYAzEjbxaoWa JUGVVPka9Aual1S2HC71yYRVq2CupOfOf/xoJNxAVblGtQokZQEKB0Cs/ZbtonJt4F/S 8oalITn/WejileSCdqF+nYZiBWpYbrKB1daM2OJK0Esl41FuCuDNnDbSO0oxnaxF0C7R aqeFl8KNQonZpd7iD0mV3QCYmSWciZc6vnh+He7aIhi+6cBU8CYBgBFLTfKhiMTEyqCI QomuyaBZHSfC8c/pnMSyGCm6PSTw9OECjsIj2gbHmfnUFjTj2fygWmtf8s48VAvhcdQg 6BEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=V1UPpoK1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f10-20020a63f10a000000b003a27ebd2526si1152472pgi.306.2022.04.27.03.51.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 03:51:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=V1UPpoK1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 627EE5C76E; Wed, 27 Apr 2022 02:57:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353222AbiDZQsr (ORCPT + 99 others); Tue, 26 Apr 2022 12:48:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353186AbiDZQs2 (ORCPT ); Tue, 26 Apr 2022 12:48:28 -0400 Received: from mail-ed1-x54a.google.com (mail-ed1-x54a.google.com [IPv6:2a00:1450:4864:20::54a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 420FA1942EB for ; Tue, 26 Apr 2022 09:44:50 -0700 (PDT) Received: by mail-ed1-x54a.google.com with SMTP id c23-20020a50d657000000b00425d5162a0dso4685761edj.16 for ; Tue, 26 Apr 2022 09:44:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=SEm8RFoD3mzqXjcHWM9Z/XfNnVTnRxEBaTJIwFUC6FI=; b=V1UPpoK10uyPLSVeGxmKmWLpz7MVRMo+4uiBOQTE+btQjeiF7bX14i8xIN4hWxvfsI BKp6ezW66yD/fgl4XMpuBdON6QxtTZCTto768iFnXFc2LH7l5QwZpTox8pUyK0cZZMcU 9diZqYTWDNczn8waY+ysJcw4lWMp4tfA90aPMraK8ja0L3fYlvQlBZsap+cS3cIoYkUy i+K1sOjum2D1Snfi9ezBpkT3FqJQbpZ1ZkJb010JMdv/VFlzNAOneWXO4NmYGXJdCYB8 LxjKRUcmGqytLknAlHvn7Ijdu7TEekTSbAaIp3JV0enFaH8f7pcQ4jDbiUGAEReAXkN8 4fmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=SEm8RFoD3mzqXjcHWM9Z/XfNnVTnRxEBaTJIwFUC6FI=; b=3pnjIM053WohXYjmIU1aiXyXsXwFy8FYg2tlMI4ozvSKzEACB6wV+ccUBZKCx3TOFc sFa7Ek65Exvuhm8jtu9Jnn1I1hr6LPIw4TJ12ptQkww3cVaRNIWe3NqXUicuAtunFeIo Co5dHGpG4Q9OCHWWrvzo7N0ecqBLd94i2TUVGnEJBj6Ikh5VHqgPrAp+gOhpdnidILka L1Ja68pH4NZfeG1XTYDuCLvCGwClLmG3P8Sfjt+TdabZtYVATHfisebxH42ajjEsxoW4 Rg2U5bJfUZtqL/Le93hjlkefmDrPSd6VMp0ShCdU2zUQWAh3hsLx8WB4CDnajQ0+8SSL UHbw== X-Gm-Message-State: AOAM532Y64kaRlPHLT+21H2V83QcdLxfxUv3MYMyou6OP1cVJ1Izq+Uq Hzvm3b0S7wk08t12TPIvzI/bfOIVbBo= X-Received: from glider.muc.corp.google.com ([2a00:79e0:15:13:d580:abeb:bf6d:5726]) (user=glider job=sendgmr) by 2002:a05:6402:35d2:b0:424:1eb0:45c2 with SMTP id z18-20020a05640235d200b004241eb045c2mr25704880edc.152.1650991488637; Tue, 26 Apr 2022 09:44:48 -0700 (PDT) Date: Tue, 26 Apr 2022 18:42:40 +0200 In-Reply-To: <20220426164315.625149-1-glider@google.com> Message-Id: <20220426164315.625149-12-glider@google.com> Mime-Version: 1.0 References: <20220426164315.625149-1-glider@google.com> X-Mailer: git-send-email 2.36.0.rc2.479.g8af0fa9b8e-goog Subject: [PATCH v3 11/46] libnvdimm/pfn_dev: increase MAX_STRUCT_PAGE_SIZE From: Alexander Potapenko To: glider@google.com Cc: Alexander Viro , Andrew Morton , Andrey Konovalov , Andy Lutomirski , Arnd Bergmann , Borislav Petkov , Christoph Hellwig , Christoph Lameter , David Rientjes , Dmitry Vyukov , Eric Dumazet , Greg Kroah-Hartman , Herbert Xu , Ilya Leoshkevich , Ingo Molnar , Jens Axboe , Joonsoo Kim , Kees Cook , Marco Elver , Mark Rutland , Matthew Wilcox , "Michael S. Tsirkin" , Pekka Enberg , Peter Zijlstra , Petr Mladek , Steven Rostedt , Thomas Gleixner , Vasily Gorbik , Vegard Nossum , Vlastimil Babka , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,USER_IN_DEF_DKIM_WL autolearn=no 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 KMSAN adds extra metadata fields to struct page, so it does not fit into 64 bytes anymore. Signed-off-by: Alexander Potapenko --- Link: https://linux-review.googlesource.com/id/I353796acc6a850bfd7bb342aa1b63e616fc614f1 --- drivers/nvdimm/nd.h | 2 +- drivers/nvdimm/pfn_devs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/nvdimm/nd.h b/drivers/nvdimm/nd.h index ec5219680092d..85ca5b4da3cf3 100644 --- a/drivers/nvdimm/nd.h +++ b/drivers/nvdimm/nd.h @@ -652,7 +652,7 @@ void devm_namespace_disable(struct device *dev, struct nd_namespace_common *ndns); #if IS_ENABLED(CONFIG_ND_CLAIM) /* max struct page size independent of kernel config */ -#define MAX_STRUCT_PAGE_SIZE 64 +#define MAX_STRUCT_PAGE_SIZE 128 int nvdimm_setup_pfn(struct nd_pfn *nd_pfn, struct dev_pagemap *pgmap); #else static inline int nvdimm_setup_pfn(struct nd_pfn *nd_pfn, diff --git a/drivers/nvdimm/pfn_devs.c b/drivers/nvdimm/pfn_devs.c index c31e184bfa45e..d51a3cd6581b1 100644 --- a/drivers/nvdimm/pfn_devs.c +++ b/drivers/nvdimm/pfn_devs.c @@ -784,7 +784,7 @@ static int nd_pfn_init(struct nd_pfn *nd_pfn) * when populating the vmemmap. This *should* be equal to * PMD_SIZE for most architectures. * - * Also make sure size of struct page is less than 64. We + * Also make sure size of struct page is less than 128. We * want to make sure we use large enough size here so that * we don't have a dynamic reserve space depending on * struct page size. But we also want to make sure we notice -- 2.36.0.rc2.479.g8af0fa9b8e-goog