Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp136518rwe; Wed, 31 Aug 2022 18:08:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR55Z2WdBvTg7gIL8d6e2dpgGnGLqC5Fz+KWXhQ57yb0e9uitds7QTg0AWKnfeh5dMsioWDR X-Received: by 2002:a17:907:d08:b0:72f:b107:c07a with SMTP id gn8-20020a1709070d0800b0072fb107c07amr22187926ejc.340.1661994505043; Wed, 31 Aug 2022 18:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661994505; cv=none; d=google.com; s=arc-20160816; b=XItua/RsRZUGBE1GyFctmUBi1O6Y2Awei8fuSSVKp1Mf74rsyqUSHgJc5r1wo9sNN7 /ngIvrOHk7PG64N3KCMe/fzFeM81el/urkadL3pNdNSGdWaSdQdTR7D17iC68qv7Vo2n Xrqj2tWSgEvM0tAEIPGk82/MRkGC7rQJM2+Z28ROhrQ7Bd90QzPJFUD0bGZqLnIzlmkr HTQZddRSHPBh1TfjuZ9bC8johpOqrD/bS2umguMBFGJDd6r0PLpf/CQDFlmiQLXNvRS7 5Pf6RUTWzLaKmBB9fr1wYqPre7i+Opq7PzE+XpSPigSY83DyBNFG0OqPFlHLTKhW1Dqk SYcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=8TtrzEUYcTXrbSMvbPpUN1sNEwmJ5oI3rmo8szseH7Y=; b=gkDbUGtQjwnr6eXBekHE7l7nZNIDdibrixrFyH91zZwHy6GKYztJobLwCJuFOMeHGf 2BrwUP4+rzGTTtfE1KpA5q99VQ80+/kIsEadWOmbXW30BWOtpKmwg9I4GK7xjfY1uPrr eKTFEDm+tnHV7z0yOt4XE420wmfXEEfIwVqxjwFrJrSafxQONLg65zl2Asss2O5p8G7V gFg/OAkoxt3F/it1KMk5H5064u9NEHOlr6V+vuDcxjWXL8gCAMjDXUJ9Y8qN8d6acopj tg3W9oro6XveRP7gc0B2v+nHiQayTlRvR9hE7y35e8GexLJDb4W0rquKeSK/F/Se8wwD UrSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eZ5bBQmn; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l12-20020a056402254c00b004464a7ae588si549272edb.411.2022.08.31.18.08.00; Wed, 31 Aug 2022 18:08:25 -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=@kernel.org header.s=k20201202 header.b=eZ5bBQmn; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231359AbiIAArx (ORCPT + 99 others); Wed, 31 Aug 2022 20:47:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229638AbiIAArv (ORCPT ); Wed, 31 Aug 2022 20:47:51 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 231BFEA88B for ; Wed, 31 Aug 2022 17:47:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DEAA1B82149 for ; Thu, 1 Sep 2022 00:47:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66A12C4347C for ; Thu, 1 Sep 2022 00:47:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661993267; bh=8TtrzEUYcTXrbSMvbPpUN1sNEwmJ5oI3rmo8szseH7Y=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=eZ5bBQmnf/WjM7gj2RIm0Qga7vpv4b793kawGgvIV/q+W4A0RSY6pXWBBmUskCOc7 rmjd2PmdIjreon3nshdFG24v3AWm7AEbznGmYIPm//h1+1Ffk6TYeLixGPkdyCfv0N LR6QRUHOAA45vtUYd76PEVjj1Gof9ILK0ID3GtaT8jkQvRwP/5xfVRL4cGSk+mla/a vlgauD/UgTAtz8c+eA0APimpOn31kufY0PDnNnuhQmQrst0OoP6N/yPGdjNiu4N18h 333TUkpwoK+W6EwnlAPbDQjfQiqgwmGwLcCEtkI1wulrrwc5EekCRY9zhYOqiUjDJM YiRq7NMfdm/XQ== Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-3376851fe13so322772017b3.6 for ; Wed, 31 Aug 2022 17:47:47 -0700 (PDT) X-Gm-Message-State: ACgBeo3qkSya8c/CyiNPiwj7xahCaTJnH3vETzA9cfIjhxPQtnvpbugn O4SRWX3S7pbFJAbwygJL+3Z7Z+FlSBA48w9izJU= X-Received: by 2002:a81:7489:0:b0:33e:dca7:9750 with SMTP id p131-20020a817489000000b0033edca79750mr20866790ywc.73.1661993266323; Wed, 31 Aug 2022 17:47:46 -0700 (PDT) MIME-Version: 1.0 References: <20220831052734.3423079-1-song@kernel.org> <20220831160111.a6e7d17785ca21ce7c43981c@linux-foundation.org> In-Reply-To: <20220831160111.a6e7d17785ca21ce7c43981c@linux-foundation.org> From: Song Liu Date: Wed, 31 Aug 2022 17:47:35 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] mm/vmalloc: Extend find_vmap_lowest_match_check with extra arguments To: Andrew Morton Cc: Linux-MM , open list , Song Liu , Uladzislau Rezki , Baoquan He Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Wed, Aug 31, 2022 at 4:01 PM Andrew Morton wrote: > > On Tue, 30 Aug 2022 22:27:34 -0700 Song Liu wrote: > > > find_vmap_lowest_match() is now able to handle different roots. Make > > similar changes to find_vmap_lowest_match_check() and > > find_vmap_lowest_linear_match() to handle different trees. > > What are the runtime effects of this change? The code is gated by DEBUG_AUGMENT_LOWEST_MATCH_CHECK. It is only compiled when the developer enables it explicitly. Therefore, there isn't any runtime effect. Thanks, Song