Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31711230rwd; Fri, 7 Jul 2023 03:24:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlFjRjRWlzTeCwJ69PjZzqjdoAR22nKXU8V802oZywX3d58CKUeIWGmo2vlnC4NmpqJYSogX X-Received: by 2002:a17:903:482:b0:1b8:76d1:f1e8 with SMTP id jj2-20020a170903048200b001b876d1f1e8mr5741817plb.28.1688725443790; Fri, 07 Jul 2023 03:24:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688725443; cv=none; d=google.com; s=arc-20160816; b=S31YsYvrHU6zBPwXCSjlRKuASx1WKsMPlIBotTFaBe7of1lLYEpHGHACX7G0j1HtkL eq+brB4oXchHRHjNym9w7eASWgRAwt+raKrw2MN+GoyGXWmvjgaDJqZPMJ8HfAjYxjLJ slf5DVK326Z7CVeZy9Xmn+vyaxCAw8Bq4Aj/nOxwi07228umxRRWfFRizGwE3jpntOcJ 29y4QAZPoULnwqsgOZ2mBR03hAramqpDzzDAx2ltWP5y4waau+ZZajgtdsL4sYTNFlta kIeS0lfvgJWY+IU6SAtCFBTrlQvuv9zBN8vilIJJFY1RK1wSdRGGA5vjEeV8J1qziptr TnbA== 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=aXvs5CAjk5TQfpxZcN1SVUwEQr5thYQQkIy4eu1cKz0=; fh=U74fmUEemPw7sqchHJfHUOA5IBfFk+e2fZn/jtR8IqU=; b=xBFojtNLj5T18zIJ6/I78PxOxoxvbkeoxffySIlpnbZcvbQxfafZw453996LcZaSsn bPuwkMjuQinKFACTuxlOIedpP8sHAzi6XddcwbagYFdxZJSa1rPW8O6alu5Ks34cQ5R/ IOHookNk4aW+md76hrvs51y24fFslur/s1ZAn89KlbFIR+gcGg8m8snXnuMhEeEBkoXZ j7w+iT2nEbGp7rsqtrvVDs1bpUTob4vWn3RuRTTLaRavQzc3TI20ytfCVQUhAF+cklt6 0ndMNgTgDr+blS7gknT8pPpyS8p5YgoOl8mpLqgdc1C3Jc7HPELB/miy3sWy2833I73m 5agA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=PqZrukRk; 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 u11-20020a170903124b00b001b8866a4abfsi3624611plh.82.2023.07.07.03.23.50; Fri, 07 Jul 2023 03:24:03 -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=PqZrukRk; 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 S232314AbjGGKLR (ORCPT + 99 others); Fri, 7 Jul 2023 06:11:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231972AbjGGKLP (ORCPT ); Fri, 7 Jul 2023 06:11:15 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BA8990 for ; Fri, 7 Jul 2023 03:11:12 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-666edfc50deso1192147b3a.0 for ; Fri, 07 Jul 2023 03:11:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1688724672; x=1691316672; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=aXvs5CAjk5TQfpxZcN1SVUwEQr5thYQQkIy4eu1cKz0=; b=PqZrukRkPbofvCLqz24T770w20wVKpkEsIWTbhQDDqOjHUGtBYQDjPP6xk2HOnHZVd LMKNzLx9MNB26CX95gIivk7G/zRK8A0pl4oKcLdXviu3xBkcMe1UnU78fxX5w3X/07rv XOcIGC2ti+Y8iZLEtOKZMDlNqdvxe6z2vpcNszwBqmhKTLb2nIeMUGtkBw2hFsiFSHEa 72KpTKCLDplSFRQmhK7CIdz3v81tIu2l4yMuvs244q6BAnty+HpHubpry3yU01YjCeTJ Zn3wWWlTnKjjes0796atLGv9mWQalUSZOuEZ7BNXeFEhaIOTOrO0oJFOtV68ZkXEmz/R XRDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688724672; x=1691316672; 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=aXvs5CAjk5TQfpxZcN1SVUwEQr5thYQQkIy4eu1cKz0=; b=IRvt23VenNF2PlhzROsvdFQHGtdwelO/k72wsHaH1Rqnv8XNe2fS6UY8QldJV10JPk 5KtY8MpoOhLRuaUHfzr03wlTw36FurYdWiznhvf0yyiQgWcjqtZi5g/wBuYBcx6DhodD WAwtXLBpS2KD36b1fZO9258m3NhywkNQKUqsmsNNxlUytV1EdOkQdJd0oQl4+XDrtV7h WVpJykt0BQ+DR6seml3roT4C77Ml7AhtJlxDEs8p6SORHTryEgnTqbkBRGMmuKsepbPm X0z6Dl0ETCxHs6I47EoePLIHzE1t5wejJuuv/c1Das0XkA1hfIqC1jkgf0RCG8Rh2w8Y 3fPw== X-Gm-Message-State: ABy/qLZOga9CZ8M6nWKacq2vyqBqxT3QbsFiCg7QMPQZD7svv9/8+5HX pPg0W27kFig4lJtVeDOBmVyfwjB6/ENFCnqUb3o= X-Received: by 2002:a05:6a00:39a9:b0:67b:77e7:f467 with SMTP id fi41-20020a056a0039a900b0067b77e7f467mr13447624pfb.16.1688724671876; Fri, 07 Jul 2023 03:11:11 -0700 (PDT) Received: from GL4FX4PXWL.bytedance.net ([203.208.167.147]) by smtp.gmail.com with ESMTPSA id x11-20020a056a00270b00b0068288aaf23esm2602549pfv.100.2023.07.07.03.11.09 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 07 Jul 2023 03:11:11 -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: [RESEND PATCH 0/8] Improve the validation for maple tree and some cleanup Date: Fri, 7 Jul 2023 18:10:49 +0800 Message-Id: <20230707101057.29326-1-zhangpeng.00@bytedance.com> X-Mailer: git-send-email 2.37.0 (Apple Git-136) 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,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 These patches do the following: 001 - 002: Small cleanup to maple tree. 003 - 006: Improve the validation for maple tree. 007 - 008: Drop some functions that will no longer be used. Peng Zhang (8): maple_tree: set the node limit when creating a new root node maple_tree: don't use MAPLE_ARANGE64_META_MAX to indicate no gap maple_tree: make mas_validate_gaps() to check metadata maple_tree: fix mas_validate_child_slot() to check last missed slot maple_tree: make mas_validate_limits() check root node and node limit maple_tree: update mt_validate() maple_tree: replace mas_logical_pivot() with mas_safe_pivot() maple_tree: drop mas_first_entry() include/linux/maple_tree.h | 2 - lib/maple_tree.c | 246 +++++++++++-------------------------- 2 files changed, 69 insertions(+), 179 deletions(-) -- 2.20.1