Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4103372rwj; Tue, 20 Dec 2022 06:12:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXtMd2TnMWXxZh1EBYwITngRhZJ4a4qmFfDcLLUgol3oBofONjaP4qFKwpZhquI8Hhuf8P1N X-Received: by 2002:a17:907:d091:b0:838:9c66:cd30 with SMTP id vc17-20020a170907d09100b008389c66cd30mr1253416ejc.13.1671545520098; Tue, 20 Dec 2022 06:12:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671545520; cv=none; d=google.com; s=arc-20160816; b=pE/KaI4wrvaPLT59OyJ3qKMOsLa0PBv3iUbXuBlccM3ig5f9J467G1yw0JV+lEzTUa TmmINhaiBLG7HJEZ90lpWnsFdt/hyDdCFLrtPOv+KC8ea+lD+U0zXwKxcurXWHM+mh0W 38eqY5EmSSJPpsNORIF+ougMs3k1GD6MTE9+S0EsB+Y8ZYQoUBvluhzEJRvUwcKbv1G4 Jwv5F6JyBpwEKxJCTnA+PACpuI0r6nJkYSLuf3qpMiAIwAY9h3nshO80mH+PHpBwgggn iMlQrDFLMlSOLSnatVnxKE48MMD52jpGVVQ8CEIDqSJPIYogcswlYarZkduPWLLOKx7Q LESQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=5OVwEEkuPuBsngehdDVCzETTIsMI352trCxfsywSxsY=; b=xkx9rVflOEyMszqGQQVAPll51jRdQD9JN4qYSzobP+stk7KfQ8NFM978J1ckDBW2l5 oAl66p4xD/23wYNV0jvm6IiSUoQd2riWTpYWHwb0nMbU339Vg5T+cQzJHTnW4/6L+myE O1GtCmaGulnCiH1EZY8ZMRM5gQSmU3IEIkyAdBLGbSVH7goxqCBD+KPujQkXSkbirNAU gr7Xj0epEg7dp65ZOg/lhBMlcHaU34ddQ6adlg2vyhwBlw3DOPrsFi1GD/HkYqSvz6gP rLKha/0YQfvVBhRq5or6dTm91SpITsnQLj1+8EjfeftLFfo9wYqYPFi8eL2ema/tIQCq QAeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="gW/RBp2S"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb22-20020a170907961600b007c173f77500si11340651ejc.427.2022.12.20.06.11.43; Tue, 20 Dec 2022 06:12:00 -0800 (PST) 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=@gmail.com header.s=20210112 header.b="gW/RBp2S"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233672AbiLTOJS (ORCPT + 70 others); Tue, 20 Dec 2022 09:09:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233191AbiLTOJP (ORCPT ); Tue, 20 Dec 2022 09:09:15 -0500 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6393E1B1E8 for ; Tue, 20 Dec 2022 06:09:14 -0800 (PST) Received: by mail-pf1-x42c.google.com with SMTP id a14so8595719pfa.1 for ; Tue, 20 Dec 2022 06:09:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5OVwEEkuPuBsngehdDVCzETTIsMI352trCxfsywSxsY=; b=gW/RBp2SigLyvM5t4YXtjrPbAZeld2ZkK1oL4g2hfVzLrTh6vmRsI19iGkDC0YgZFn XEUHiDGq0AGeww3x20i8BRLQfMlVZR2pBn5TQjmbiL1PV+DCDkjz6zeJDLf2XF77SmPd 7ZLY3koftSueWSyCi/SmGUGg5N8Sz/S5DhlAcUyl4MQHIVFmG1q2iLyAoEfnFEvClPHF oE7IHv1m4mRHyrG736/4OTlNsio8uzulEV0ZCJua67QYZj736ROcF5qvB8n/Q5qTpye3 FqmVc2Sh+rkWph6dnLuv61aEbgVQJ7V068BSbj8ISvCS0QGagFyC33YtSZIMcW77A8PS Olmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5OVwEEkuPuBsngehdDVCzETTIsMI352trCxfsywSxsY=; b=IACEPWnXvkn7OcP9rcYCYkaqFr8gEQLT6lq0zq8FcSgGShGBK5+YHlfxyShGcT+aCp ItZPgpZkXlQoxtCp+cUfYL5FKFkl2WnbV/m8aHFHDxQKWH/uKX5m0m4hs+cKFCRHUJ2h mYrFPyk3xqqMHHqzDhvloSEWPjXnjvjuY8HIdbvGc5TW7b8clJkcbcaTL8u+z3cqHT1A kOvWd9heTwur88/WqduzqnbA/2IgSfIQ6spFxfirZOxk3qFJKm7UMycyQp4rIbk+tXvB 6W1MclKvPbe62kk24mfSBEWFDfbdTchgFLGjwOILg2usZBvksipdqFh018UNbnSx7xJO ldOA== X-Gm-Message-State: AFqh2kqpjSJ3eShhr/0Ap6bv4Litlm2yLf7ZVdrqnYcXr/zJXMNWl1xR caLVcSR2Fccy9BKRpKDzCidvd9J43AQVnRchdSU= X-Received: by 2002:a62:14c6:0:b0:57f:a19a:385a with SMTP id 189-20020a6214c6000000b0057fa19a385amr11716694pfu.13.1671545353914; Tue, 20 Dec 2022 06:09:13 -0800 (PST) Received: from vernon-pc.. ([114.231.52.81]) by smtp.gmail.com with ESMTPSA id 12-20020a62150c000000b00574f83c5d51sm8654864pfv.198.2022.12.20.06.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Dec 2022 06:09:13 -0800 (PST) From: Vernon Yang To: Liam.Howlett@oracle.com, akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Vernon Yang Subject: [PATCH 0/8] Clean up and refinement for maple tree Date: Tue, 20 Dec 2022 22:08:21 +0800 Message-Id: <20221220140829.1665432-1-vernon2gm@gmail.com> X-Mailer: git-send-email 2.34.1 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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Hello, This patchset clean up and refinement some maple tree code, a few small changes make the code easier to understand and for better readability. Vernon Yang (8): maple_tree: remove extra space and blank line maple_tree: remove extra return statement maple_tree: use mt_node_max() instead of direct operations mt_max[] maple_tree: use macro MA_ROOT_PARENT instead of number maple_tree: remove the redundant code maple_tree: change return type of mas_commit_b_node() maple_tree: refine ma_state init from mas_start() maple_tree: refine mab_calc_split function include/linux/maple_tree.h | 6 ------ lib/maple_tree.c | 41 ++++++++++++++------------------------ 2 files changed, 15 insertions(+), 32 deletions(-) -- 2.34.1