Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1719521rwr; Fri, 5 May 2023 20:19:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4GSs2JNOTpTwGJJwfl3xr3ANe/sw6gGXWJsBRTzzSQrnSjDK5+yp9RxdBH2VGd/RqyNUOZ X-Received: by 2002:a05:6a00:198a:b0:641:39cb:1716 with SMTP id d10-20020a056a00198a00b0064139cb1716mr4783526pfl.20.1683343158132; Fri, 05 May 2023 20:19:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683343158; cv=none; d=google.com; s=arc-20160816; b=BXmcx8n7kClqprKi2EbJej7cohlP22f1JK9L7SkOAg9A8B08XPpxB07tgWkxTZSsU1 oNHDxJ9c0lFQEIcrCUQSBo14v4WfSqffaaBBc2f3MNuM0W4KD2wIVG3iEbfwGE6bV/7y by9c0mfuOxWKgvUw3r9/UT48v5Rly4G43jhedZTOINzKfVYMG+zfFehf/iP596uRZapv aXZWnk0cAIR9mjo6liCAcyoeBbhkKOPFY6lIp0FBWEDNkSRexahwkvjbyf8KPpF4YTKc TyvlZi4oMaOnHoBmk9Q8TzTEGcOZpoi1YiDW8kAsmgbKS+4QF6LLD/JFbKU26r0QRx8L uIgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DhRc7hxJK3NflZ5uLGJt/010eV74i1aoQ3Uj4u0l88w=; b=rUiI5E72JnSJC/NHEGKdsWQM6QjuUZLbvmeoweDInajHaN5TzfqbLdUtY0CvEZgGfM EPT0FbBAakhWEpq+Hamx5Z8HKzlG237lCNhJnxiq5YCCVUQQ4r9gyQlEOz+PjxQ1dU+x Vq5H9yIJy2GkVYApPRYEvkGSw7kmr4WFAgb8SpjAWmZv4Z6A1L658xH2ek3BxInJenj0 /c+y3mr1CQ055AmkX/C0zrETJtEsCrimfOB2U3Ils2D355mCkr3eXsW65bWLWJCkU0DM S7+7lxT1pchYnBFfahNCTBPQ4no70OpWnrhBDrMBSn/7JmDtapdz3QwGW1TDV4960Z9Z 7Ftg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eyXNX2kQ; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z15-20020aa79e4f000000b00643b1616d74si1463226pfq.68.2023.05.05.20.19.05; Fri, 05 May 2023 20:19:18 -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=@chromium.org header.s=google header.b=eyXNX2kQ; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230299AbjEFCrV (ORCPT + 99 others); Fri, 5 May 2023 22:47:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbjEFCrT (ORCPT ); Fri, 5 May 2023 22:47:19 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3367D421D for ; Fri, 5 May 2023 19:47:19 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1aaf2ede38fso24050435ad.2 for ; Fri, 05 May 2023 19:47:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1683341238; x=1685933238; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=DhRc7hxJK3NflZ5uLGJt/010eV74i1aoQ3Uj4u0l88w=; b=eyXNX2kQL11K66q87Ej5uZ7syf6xfwhRO+NdWSA/RSRGtqxYTZV9sAsfmHEp8Cgin9 1OjAfa0OFgoFgNVkgrATzij4T/zNAPj5LXI9WgUgpDnhgrIwn+d9E64L47HQMul/xpfp 9SdBXScQ8LoEd+91R1Mcpvd/V/oIS8LHFgTBU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683341238; x=1685933238; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=DhRc7hxJK3NflZ5uLGJt/010eV74i1aoQ3Uj4u0l88w=; b=kHAz5byHzpCNJNSopJjr3LBE75oNs6SXNZwVx5h1s7/t8UCv+L/UnscI8moK8req4s u1/gO3Ync4rLS+BWD9e0yWYA76gbj+d0fl7ul3aKIGP9kbYVBAXN1oTih99JpO7rDaNS jvq5RvSF1KKCVvdhxSDaCvjCCRNIas11IsHOpYx80rq60F3SKekrQS4y7K91Q4kSk3FH /WQ66hhBssapsnkrqG4Zmcblm75VfIjFq37dOuOsqWPDa89e1G7IoJWGKste3q4VU7W0 PMJ2BWKV7voj+dBpbs9XU/rZjHrTqBhtGq2tt9ttCMDQ1iWoDGpPxk38v2ZFMZVTkMIZ G67w== X-Gm-Message-State: AC+VfDzZi5lCieABq2LBj9M6XV7HOPHcEY4cE8OAVmiW4/tCX9orDrRd OH4txOQKUPMu88BiyxT1WZfFwg== X-Received: by 2002:a17:903:244c:b0:1a1:bf22:2b6e with SMTP id l12-20020a170903244c00b001a1bf222b6emr4446652pls.43.1683341238689; Fri, 05 May 2023 19:47:18 -0700 (PDT) Received: from google.com (KD124209188001.ppp-bb.dion.ne.jp. [124.209.188.1]) by smtp.gmail.com with ESMTPSA id y14-20020a1709029b8e00b001a687c505e6sm2420783plp.232.2023.05.05.19.47.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 19:47:18 -0700 (PDT) Date: Sat, 6 May 2023 11:47:13 +0900 From: Sergey Senozhatsky To: "Liam R. Howlett" Cc: Andrew Morton , maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Sergey Senozhatsky Subject: Re: [PATCH v2 18/36] mm: Update vma_iter_store() to use MAS_WARN_ON() Message-ID: <20230506024713.GB3281499@google.com> References: <20230505174204.2665599-1-Liam.Howlett@oracle.com> <20230505174204.2665599-19-Liam.Howlett@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230505174204.2665599-19-Liam.Howlett@oracle.com> X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On (23/05/05 13:41), Liam R. Howlett wrote: > #if defined(CONFIG_DEBUG_VM_MAPLE_TREE) > - if (WARN_ON(vmi->mas.node != MAS_START && vmi->mas.index > vma->vm_start)) { > - printk("%lu > %lu\n", vmi->mas.index, vma->vm_start); > - printk("store of vma %lu-%lu", vma->vm_start, vma->vm_end); > - printk("into slot %lu-%lu", vmi->mas.index, vmi->mas.last); > - vma_iter_dump_tree(vmi); > + if (MAS_WARN_ON(&vmi->mas, vmi->mas.node != MAS_START && > + vmi->mas.index > vma->vm_start)) { > + pr_warn("%lx > %lx\n" > + "store of vma %lx-%lx\n" > + "into slot %lx-%lx\n", A minor side note: we usually prefer to avoid breaking printk() format strings because it makes grep-ing difficult. But in this particular case it's fine, since all the format sub-strings end with a new line character.