Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2493675rwd; Sun, 21 May 2023 22:51:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ697u/1EebCKAb9/CpeSvir4fD12eVtyIFtw4CzHDSNoQ+ODSND+wx4hLGNVw+5WZ1zOw8R X-Received: by 2002:a17:902:e547:b0:1ad:df75:45e0 with SMTP id n7-20020a170902e54700b001addf7545e0mr11631473plf.39.1684734710379; Sun, 21 May 2023 22:51:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684734710; cv=none; d=google.com; s=arc-20160816; b=RFOn1BKLi8i7pHASzwyw3fNieqqO1EnUymtNDwOKDlMehuHC+3/a+ziHK/QJForamV 0jAeyXf6pHBc2uL67Env/6W6gWKIpxyoMu6zIDuQpWWTpMdIW5wloRW5ibv8oG2lX2Vs nrOujkMdghhMu9ZwwzTapNoxNTfNeAijHARDhGhuc/vcXXwF64+kszVRNyhyu8TBLa29 +jppbOr02M0EO+ccmkWCOqgiOxmJIH94wv03LVfV4Hq4wmjCSWnN3Qfi23erR6BIVtbG pck9XIUghQmAR6qvoJGqGra5L73+bYo2IDWKGKgUloVJGpMQSSSkC03IWfOIbfhctELk MS+Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4yOLk/7tHD7/ODqSb7roZU5d9FbnbbLKf36QePLl4Fs=; b=krh2ZCdd67AlJuToJDHhuYPZXjp04A1o9NkrgaPY/bdqlDNYoXRE8Ql6OSF987wS9+ xx1MQmn/zA1FtgUM/NU0NFoBySKMicmgxZpvsc/oKFodqflM51aQaty+KC1ylUyfPI2l NfV/g7OTSIfXA0f1UkGqesQFBTy3QXYxMy6KgRSicsFTNQMrOztZ9Engs2eNQQa5sElR a3KLekmdkQcs6AkRMFFq/y8WksuuAvC2ZRbR98ZULI9EOj4Au0YshB9o5wu10lPAEeLk gqQs0+FPPF6kJVwmH8Hds3xZbrzXHA3Km6zqDF/PpMWptOa5oHMnveQI1R8Cz82evznd 9Wmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=AzHzNd0m; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iz11-20020a170902ef8b00b001a980a2b405si3867521plb.471.2023.05.21.22.51.34; Sun, 21 May 2023 22:51:50 -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=@bytedance.com header.s=google header.b=AzHzNd0m; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231781AbjEVFIo (ORCPT + 99 others); Mon, 22 May 2023 01:08:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231790AbjEVFIT (ORCPT ); Mon, 22 May 2023 01:08:19 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E551129 for ; Sun, 21 May 2023 22:07:48 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-64d2e8a842cso2299179b3a.3 for ; Sun, 21 May 2023 22:07:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1684732068; x=1687324068; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4yOLk/7tHD7/ODqSb7roZU5d9FbnbbLKf36QePLl4Fs=; b=AzHzNd0mvm+jLZUdv/e7B4MQC3FEjUAXCF3VVAaoRyZSNx71MXEV51MxVvMQPGTRnL beZ/HAieLZVm6erPnazYr8lxJ/KMnHLGwVLS9rpwqD4TZwtSOLNIx2ilFdPluS8Fo5wH aulAdvKjGbORvC5pYRoimAsxCsbmmub7MiwaCjUVNgDxrPoNguk1B2QxFs2f/4u0BDxC ghdjhr9rKY4kS7OZrxzDsus7afl7TirEZO6XG2XE9PaDtCnJIS3J6uHgXmphvXYrsd64 V0VVSCQSKamOqt+7V9vZLiSj9VDqYA4y4mi6VfOkA+OqJDHu8LZDsc5yOBZRw9CnQDtp /E8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684732068; x=1687324068; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4yOLk/7tHD7/ODqSb7roZU5d9FbnbbLKf36QePLl4Fs=; b=WnSaeAIFmoE/m2FY+BtcXD2W1LoABJuUPgL9tyw/mh0hKJ9U5noLlmHlDXVuTrFeHg 39yhXHAP6bJP7OmGyTQttoZB0fGcEDfHiBEIyzAac7JZUEuFNf6aIcSR7x5qslRW9uQp v06y/9KIVLOw4uKI3htAfVHgT7tu2TRXjYtGEwC1e3toV+yjn0nE/sGMdwRXxPSmhGmn b2JZniDDbhzg51iyEUl5HUTaLyfbqQmch8pP6OjTSfVrmjNLtJ5atlAgQKbkrUtuzZpC lJm2pKUNbC/pMggJKNL/rK23fZ0jhXE7+URypIJDLOiS98WPUZ12fQN0fyIAeWhGawXa 7OrA== X-Gm-Message-State: AC+VfDw3YGC4kcpSHg7qzsidFWJXxMaSr4j1ZztI12qNb1sdhUI5QzvI 0jNXg/TgSFciFbxm2KSNeH043A== X-Received: by 2002:a05:6a00:c8d:b0:644:c365:50d5 with SMTP id a13-20020a056a000c8d00b00644c36550d5mr11924837pfv.6.1684732067735; Sun, 21 May 2023 22:07:47 -0700 (PDT) Received: from GL4FX4PXWL.bytedance.net ([139.177.225.249]) by smtp.gmail.com with ESMTPSA id t10-20020a62ea0a000000b0063b5776b073sm3247519pfh.117.2023.05.21.22.07.45 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 21 May 2023 22:07:47 -0700 (PDT) From: Peng Zhang To: Liam.Howlett@oracle.com Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, maple-tree@lists.infradead.org, Peng Zhang Subject: [PATCH v3 10/10] maple_tree: Relocate the declaration of mas_empty_area_rev(). Date: Mon, 22 May 2023 13:06:56 +0800 Message-Id: <20230522050656.96215-11-zhangpeng.00@bytedance.com> X-Mailer: git-send-email 2.37.0 (Apple Git-136) In-Reply-To: <20230522050656.96215-1-zhangpeng.00@bytedance.com> References: <20230522050656.96215-1-zhangpeng.00@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 Relocate the declaration of mas_empty_area_rev() so that mas_empty_area() and mas_empty_area_rev() are together. Signed-off-by: Peng Zhang --- include/linux/maple_tree.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/linux/maple_tree.h b/include/linux/maple_tree.h index 85559a34a098..c4681cb8414f 100644 --- a/include/linux/maple_tree.h +++ b/include/linux/maple_tree.h @@ -474,6 +474,12 @@ void *mas_next_range(struct ma_state *mas, unsigned long max); int mas_empty_area(struct ma_state *mas, unsigned long min, unsigned long max, unsigned long size); +/* + * This finds an empty area from the highest address to the lowest. + * AKA "Topdown" version, + */ +int mas_empty_area_rev(struct ma_state *mas, unsigned long min, + unsigned long max, unsigned long size); static inline void mas_init(struct ma_state *mas, struct maple_tree *tree, unsigned long addr) @@ -497,12 +503,6 @@ static inline bool mas_is_paused(const struct ma_state *mas) return mas->node == MAS_PAUSE; } -/* - * This finds an empty area from the highest address to the lowest. - * AKA "Topdown" version, - */ -int mas_empty_area_rev(struct ma_state *mas, unsigned long min, - unsigned long max, unsigned long size); /** * mas_reset() - Reset a Maple Tree operation state. * @mas: Maple Tree operation state. -- 2.20.1