Received: by 2002:ac0:c50a:0:0:0:0:0 with SMTP id y10csp1321156imi; Fri, 1 Jul 2022 07:26:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vcD0dZxXU1/pHdnP5WXEA0EdETtd8ZOje3F1WQhGEk6BPASnDf+YWh5ODj02BaZA/vgUHn X-Received: by 2002:a05:6a00:1253:b0:525:886a:37df with SMTP id u19-20020a056a00125300b00525886a37dfmr21553378pfi.85.1656685609681; Fri, 01 Jul 2022 07:26:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656685609; cv=none; d=google.com; s=arc-20160816; b=cJMqw22xNXkChBX2KFEUbHgO/0KaKXEdsaKy4ogy5BsYRqkvlMD+6CBszO2uPzwhVt /VOI0VGLM+V9fQMs2ilsx0VBwElbnaGS91sfBCGlOZOvKjjyUpCOR0fBYmXSuSzDM7yb J4xgFU54rzvlFggzYoBlXrRQPisYllVlBOw5wIA7FkQ9jwZfKgnux1FQDapD1r5KcIS+ I94P3lPW/HHUeWv2D5FGCekzMKEvSQDMmaZA66bD6s5hnB3lAatWVrwDD01nCFl3q/Il wYqRPGt+a/0L0Cyjjc354+pZj00vaQg0z+Z1qIMKeXFkIOFYtLfEwwzuoBSzTewGK49f adfQ== 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=AkHvx6ZxtZ0IjsJvZfH9AmZNAyLy9uG4lwf6iPpek9Y=; b=xjeITa6l9Upyn0D0mo3Jtx/ALbA35hWB5fzMSqt7Z9Q/YxqYPtFhwPlL05BJRuUus/ aYKWgyzIR6W9EbRjh8CI24nOrhPw1fLukRgcYlRfMtL1DPkw4gs3wz8G3B/6pQgu7B8o cJaxhgIxGllrXyl/EFHO2Ldyba2w3+jtAt/tweFR5FmKOUN5ClToIHLrER+d+t8U9hFj mVI0Q1xONzQo3coXcez9R1ZWxeAYLZc9TYFgSqh5L5hA1+dMvTIE/kfgew6f8yvUXh4U AaJpj4O19FvR1UVodhoPx8p/HQ6ej2EeACReAtfDtADgFoV8BOInAqYYkrnoga8hzTqo e5Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=rHudIZCM; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nu4-20020a17090b1b0400b001ec6f04d9ccsi6202107pjb.174.2022.07.01.07.26.38; Fri, 01 Jul 2022 07:26:49 -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; dkim=pass header.i=@google.com header.s=20210112 header.b=rHudIZCM; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232377AbiGAOY6 (ORCPT + 99 others); Fri, 1 Jul 2022 10:24:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230526AbiGAOYN (ORCPT ); Fri, 1 Jul 2022 10:24:13 -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 6BA0C3C730 for ; Fri, 1 Jul 2022 07:23:45 -0700 (PDT) Received: by mail-ed1-x54a.google.com with SMTP id i9-20020a05640242c900b004373cd1c4d5so1893113edc.2 for ; Fri, 01 Jul 2022 07:23:45 -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=AkHvx6ZxtZ0IjsJvZfH9AmZNAyLy9uG4lwf6iPpek9Y=; b=rHudIZCMEvVcL0J/tpORMCU1TSzScrZ6kJnwi8au7+a6JF30h8PGv5ybkos7NSpKVF l8ItJ4ldc7rg9EUkrGxk8hBljzCbzYjQgUwA1nGDUYpjSYBpSv1cZheZLHTOEc3UGcpz GN3MhPn5PyMEGYWYnmCKoNlKEkO4c/obwSOro9mv0hP92gHSxiMzcqtoWoMzuEAzed2q wII50gyDZqPcOzaGsoh2O4Imju9tw8/pg9ZgJAzo8hKdBhlLYoNWrG5KLaa/L/jFhzEF QS0SOmwTV1hAlRt1ITxae7Jk30DIUPW7GuCpXSA6Yvjsk9qUvcwrEZ8Tfb30DarFex/+ W40w== 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=AkHvx6ZxtZ0IjsJvZfH9AmZNAyLy9uG4lwf6iPpek9Y=; b=z6mvWZ5FRadseeMygAFLzQ9rt7k8CNiD5R+FF98CWb2dM79zWrllI9e/p4hkrmQERr 1lVByEcZDmkBbohAHOnjsdhS1VUlRN5kTWBCbv0gmdeF0Zsc1E8R8Q4HTVaLSYxkycH9 EieOnRCw+EvK9MT/FEUfL9cZOqEgPhAb36o4Fimc0D96SMzvhNVU1P4ljl2XApHvdjMr xO/jF6FsL/xrDN3IwPcChJQe95eHkNjDIVMqpIBWzDOt+PXEuK/+R8LshD5L8CQiT/rT SANzofLUnYWkL8vwwQ7r3h1fTRV6YDTdP3PRqeKY3I6m4SsyE+zPsL6d4Lft3x1MDLnR I/DA== X-Gm-Message-State: AJIora97I17BL/ql9J6fM1bm0dWuOynvy3Hz4qFNf5RVon6rJ5DYOUeD BoapzhPphYFlKgnpRsv6sM3oG1izhqk= X-Received: from glider.muc.corp.google.com ([2a00:79e0:9c:201:a6f5:f713:759c:abb6]) (user=glider job=sendgmr) by 2002:a50:fe83:0:b0:437:9c60:12f3 with SMTP id d3-20020a50fe83000000b004379c6012f3mr19071968edt.120.1656685423650; Fri, 01 Jul 2022 07:23:43 -0700 (PDT) Date: Fri, 1 Jul 2022 16:22:35 +0200 In-Reply-To: <20220701142310.2188015-1-glider@google.com> Message-Id: <20220701142310.2188015-11-glider@google.com> Mime-Version: 1.0 References: <20220701142310.2188015-1-glider@google.com> X-Mailer: git-send-email 2.37.0.rc0.161.g10f37bed90-goog Subject: [PATCH v4 10/45] libnvdimm/pfn_dev: increase MAX_STRUCT_PAGE_SIZE From: Alexander Potapenko To: glider@google.com Cc: Alexander Viro , Alexei Starovoitov , 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.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL 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 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 0e92ab4b32833..61af072ac98f9 100644 --- a/drivers/nvdimm/pfn_devs.c +++ b/drivers/nvdimm/pfn_devs.c @@ -787,7 +787,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.37.0.rc0.161.g10f37bed90-goog