From patchwork Tue Oct 15 23:39:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 13837425 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F7ADD20682 for ; Tue, 15 Oct 2024 23:39:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0D7E96B007B; Tue, 15 Oct 2024 19:39:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 089226B0082; Tue, 15 Oct 2024 19:39:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E91846B0083; Tue, 15 Oct 2024 19:39:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id CEC0D6B007B for ; Tue, 15 Oct 2024 19:39:30 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 333F5161930 for ; Tue, 15 Oct 2024 23:39:20 +0000 (UTC) X-FDA: 82677455532.11.51CA94E Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) by imf08.hostedemail.com (Postfix) with ESMTP id 5E0B0160005 for ; Tue, 15 Oct 2024 23:39:23 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=AJVtK6Vz; spf=pass (imf08.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.41 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1729035424; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references:dkim-signature; bh=ZB7K+Vb/OVfrbp1TeWPdP7BEqh12cdob6UpwQv77BHg=; b=eCIn1WeQP3x7reiIHIO0fTmahZGydhFhWNn6shxJyhYOKoyZ3j1752e+ijG+z5VRfLPg4x ktRdubRX8BlKskXOqbijzrXkghDEY0AvK0bB/71tD4HR8sDmf6I0oRR9WkiN2Pbvd2fV5p vJH1hw5Hl0+h9bMrGn8wqcjNFGhfdmE= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1729035424; a=rsa-sha256; cv=none; b=LAPUvq4g5zpfNKs4MIjT7e1WMLNtKO2refKAZ3ySK2AjEgsWoReZyh+KPynXogwgIYcuig N73yu8qP065Xg8Rg4QONLtJPhsBrmLq8QnJMltsQK3mb9nFNhQZiKupUNi0FS7q4KOZWjk 1SkXdF61K3BOBrnXmpTJa2jZNctWsO8= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=AJVtK6Vz; spf=pass (imf08.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.41 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-5c9625cfe4dso5626099a12.0 for ; Tue, 15 Oct 2024 16:39:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729035567; x=1729640367; darn=kvack.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZB7K+Vb/OVfrbp1TeWPdP7BEqh12cdob6UpwQv77BHg=; b=AJVtK6VzcHjSrrrFUmKqw9QSVCx3MM0NuRsQ0+hZzAQ6TlTxcfUccDzT6LbDotuTq4 NWmGRLyeN8u0s/Qhn7r1GdE0HoSgIXBeRCYNCpGpfO19vhKxQHM9AxejgNY9I9+u7z8M dInp72DoVU6wVm+52JONALDUQJD21qGHiu0BcCvnihOi6bVvIb8+9YG9f0VvkHkebfuk /1VGZorpaHST1pd4u1Ju9Aatv2bT2+PVn9zK/2FndXjyMew+P4LB9RJw1hft+AMqKxE0 JpE2GjcRBSTCtWv9LyyLgCZsm9d0GFr68Jm3t9d7nrk1HN2P3FcyDnzmuLyunn6eEG1r n4pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729035567; x=1729640367; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZB7K+Vb/OVfrbp1TeWPdP7BEqh12cdob6UpwQv77BHg=; b=BkhhC4ymA39jim/HLpfDX7c8pUtVgFTaQ0xr9K5dp5xxxOfGnEYnF6BdGZ09JpN6wb uDeXyrOl9nyb1TY+uT0RGPrmZDgER56rxO2ZqRMAOWvd6hQV+1v0v4yLK83qU7a84XC3 Xex5oQ67S+Wjwy7TX8yGlZ3HsBweKq+fQcS9bXJWIXfgeClQU/MpUnlaxWUkl7WuWCGU XxE8bySmzc8et/NaxrRzaLHqfObtZN9tth/a+AwmzwBW+DhDe9iPCloTIoARdOl0ZUXu RcDET+hrngKKak7v9Evf9RtWjFshRmPFHwjIhYKRtfHpnBm8XXpSW37SkS4aQiXQL0Eb ehpg== X-Forwarded-Encrypted: i=1; AJvYcCVmEduWpzQgChX0MfcQt+GLAr1gN6PxE25OOSDa3gtQPYtwvwRRgvtxau+9a/FyoymyrnWQjPZqnA==@kvack.org X-Gm-Message-State: AOJu0YzkdnlheR6rKwpSbrSCMqXszDU82OoeQTgfMgRMDIYl+HwulY68 AuF3SxmhyEEE8NDxuvx5NxdyfGIuku2AMrjweggVW2ER29JgPkv5 X-Google-Smtp-Source: AGHT+IEnOpY9dlns4SzP8TAzeurfDOV/fHKiJsUNWSKHpzKo8otUYw1L97rh/FS72uysB0GOJCWehw== X-Received: by 2002:a05:6402:401e:b0:5c8:8db1:1d55 with SMTP id 4fb4d7f45d1cf-5c95ac0d44amr12283365a12.10.1729035567218; Tue, 15 Oct 2024 16:39:27 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c98d4d6049sm1128426a12.8.2024.10.15.16.39.24 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Oct 2024 16:39:25 -0700 (PDT) From: Wei Yang To: Liam.Howlett@oracle.com, akpm@linux-foundation.org Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, Wei Yang Subject: [PATCH 0/2] fix mas_new_root() Date: Tue, 15 Oct 2024 23:39:07 +0000 Message-Id: <20241015233909.23592-1-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 X-Stat-Signature: dxnohudmczqes5szsn9669jerjsgbqd5 X-Rspamd-Queue-Id: 5E0B0160005 X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1729035563-122544 X-HE-Meta: U2FsdGVkX19CuykGEenq8m38CAjgTBMxHPPV+gZUsT2RlOLFC4Yf1zJO79/JRAa9ztoEVXPhKGs14Jj64Khlpwj7hNwZt2Pl/1e3l+M1u+7Qq2c7tkjm/kdNCeup41HI8SlXEmUX9O+cB3OfjEnLhQt5izBX9I+ThuejElaRhZjhWIGjtHc9VqqafkWEFrwiKgGPGqV7JE9hjFkrT1lwQcDYkB+Jn99zY8Y3rUgWGLOeVjvpw23IqTMZ8KC7MDliPoE2Cy0FIJSizlbjXZ0FwMVMrlbKItdDwI+BRAb3rglBB7Bl5EV+LwQfppLLDc2+M4u4mujfV9VF6iWIfXGhX2DMExTe/t0DZ6nJPU32+Fsum3ET/ypiIU1fKnPhUXuAHGTCP0D4PLaGD6J7xiJ1nMawqYnZum5pcGoXzceQfzBOea4ipM1Mej25bTubD2CW1jyHdlAzcKOR64rmKogYNhHtkzKk+4ryVNf/0Y7lHc+602dyMlDXQtn4+SH42fhn+pFgd49OHnMSM86w7fsq5OQ8aX0JsnwYiFOdviAjFs1dO2f2gXjYRxT6j3zDJVkyjX4Di8DgSQ4pUPrA42vn5D/XYmjh82Xz4xgah6kVW9u22uT1zMx+BwR7rcT9nPes5b6mY+wZrNqVQJcAaPUlz0wrlfqEUMeP7X3UPrGxXL3iBw6cZ6dwJk2GWWf2RGwvDg+pfZ75BqtciRD3bqzwFyYuPT2P3YJvCcKu6Dv3EakZiwDw0t1pgSpZXc2w85fozfhvh88R3sNs7UbRmujnSxfV1COuO6ljSr5MvhTHo7md4NNf7RUIjEbufHlPoGL1Z0wRi54IH3hBLJ4GJhPoNZg0tDi0yTJ6Jy6Ex1NvLkVCgfGuLoHBoyc2bBy0JXodhVBeVe7jr7HIIdSQexTh3IgLWa1AzDsRH1EzkRNANc0a6TGAF19X3sqtfNPAZgTl90Y1PE/qD5znDLMmLvO NiaCkLnv 3ZernG9aMDw3b1FTZIG4v7YHjXqdYfdfrVoIKivFSbIiKNQT3LPpunVRN9sMWFCFVCHMK0jQnf5GtX/PDV9mUHb0kHaJi3YE/07aGS4GwmbD5FpC0pJci5ldBBLyWMWz1GdnzO/TLG73szMFGhwtvwyOg0vqimJYZyAiWhTS6S1VsbogupIbe6maZC6FkDBfzQUA7YaLkHxAAZoJWKSivWf+tvU0FVqSgQPK8fV7pw+l3Mqj4twr/Yn+j5QZIFUGxAC5rIQw0DP7cMGD8Lj7Tdmzt4yrKIIK79czlV3PKemAatRM+uI8DaNkaEm8ERn/txEORcxBseOB+WlU+HZHkhe88TqXa6r81dQmw4BTwkht9XpK4M7ipr609dJEMvewtZSOXaY4gXAbRcuT5/ztG4lFdATB9q27mL4LxEpt+0RBEEmCW3rDm52ZXUI0K27UkbcsriZ4rzZzK+ZM= X-Bogosity: Ham, tests=bogofilter, spamicity=0.121564, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: When overwriting the whole range with NULL, current behavior is not correct. Wei Yang (2): maple_tree: not necessary to check index/last again maple_tree: one single entry couldn't represent the whole range lib/maple_tree.c | 9 --------- 1 file changed, 9 deletions(-)