From patchwork Wed Oct 16 00:22:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 13837475 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 EFB8DD20682 for ; Wed, 16 Oct 2024 00:22:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 035446B007B; Tue, 15 Oct 2024 20:22:45 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F27BD6B0082; Tue, 15 Oct 2024 20:22:44 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E158D6B0083; Tue, 15 Oct 2024 20:22:44 -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 C2F326B007B for ; Tue, 15 Oct 2024 20:22:44 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id ABC2E1A19AD for ; Wed, 16 Oct 2024 00:22:27 +0000 (UTC) X-FDA: 82677564480.16.4E5A6CD Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) by imf17.hostedemail.com (Postfix) with ESMTP id 4A42040005 for ; Wed, 16 Oct 2024 00:22:35 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=S3GTWJLq; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf17.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.182 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1729038045; a=rsa-sha256; cv=none; b=SfQTONWOb9ebIYfVMLYQhpg/4PAlzE/deWMrPs3nPHJ0mZhuo5+JhgcwWEzdCdljwC1tG3 gsFh4fabiNCzqsU+WmdfaQ1ZdGPlAv2IvIvM8fS+2S5Wy+QbyE+B6kMqocUz/1g/FUUq5L m9y08oiRJ+dnsd9cw8G4UqF1pLZiroY= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=S3GTWJLq; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf17.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.182 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1729038045; 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=KepIBd+1t8K0HhUdp0+YicRMGma+I/LEozYCL/6JX9I=; b=lBKLjxuUq9i8jHdAOf7VMH9dCO+LVbEKRlZsbsJwa/7qATaVuTbeV60YiquqQ61p/XcpIU MeH1cq91avFJS1n6eE1oFknPeSUgTShyaRLvIBNs/5AJiMEC0FUjrxS3nSKiJkQ8wKLREM CmNd2VoY94pNeLFRTX9QOqITSMBcOyM= Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2fb51e00c05so36781771fa.0 for ; Tue, 15 Oct 2024 17:22:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729038161; x=1729642961; darn=kvack.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KepIBd+1t8K0HhUdp0+YicRMGma+I/LEozYCL/6JX9I=; b=S3GTWJLqKCLYAb0aoyLb0xmeMGZhna9hCvKffUIsdKVDDa4EFoDnfvPUVz+AEhIDqW 4aT/kcfAghQyIIHksoUU0RVfyTOksvxNpBNgJ0KBoqcyw7+hswnzpa0c+HoDR5QhwoRp dD1lV8HZl5J4qYLS2YRtm52qtf9iQE0lVetfw3ao5FCZSqPyZMYV7NXRrmlqhxBQE6sW +FiY2mcmaDpmYQ5b6HlN3xtuw2/2tqGayspTEQ1WTiPyIDg1BxNffCELy6kj4XfJ4C+o MdraOxlgVNrENBs6CHca8pAID7QibacWuiJeRVaXs/OqaLNfjo65w0IZNYTlioKWrget Z9Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729038161; x=1729642961; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KepIBd+1t8K0HhUdp0+YicRMGma+I/LEozYCL/6JX9I=; b=uen2eVr/9wfiKy+zl2hG+Hg90NzW5a0JgxH8Y7f5eZ4fHYyIvswYBeIYXOlmqRsFzq flI3+tw8o7jB9BFZUmZjEmdaMBKgYX8SutWeFwNs2xdfUCZg2sNHyDUUlonuwXcFNtMJ kKbn7/E29587JqywMycJF9YzFQ/LFdnxhtbyhQvajtuvf3y5bqOEUARZPRlDf8ckzSnt 6yMl9ZxRstqT65WeX2k6qn/TlWokheS+l/WeHXbRQSTXxBizY5HUiP8KjBoJPYNF1z78 Jsj5vWUvbApP+4Jj3roR8N7+FjX8H4014Yu7Nsy17BWLkFjg7lwir9jfEP3qHC5j1SUY ZX/g== X-Forwarded-Encrypted: i=1; AJvYcCVzxAUb3OkeLSqco+HjtuWi1GZicAJy8uMIwk/7XLIu7tRuJLvhQMJSKAb//HQYupfUN7NBm72vUg==@kvack.org X-Gm-Message-State: AOJu0Yw0OcHH9L9USSbzqSsumuUNkLVJB5w5GhtSK3jmjkFmFWVmha2o k+xe9SIJ8WD347r71/s9nKvx5H3D//IEXoBQUZsj9VOIdNKuuw4e X-Google-Smtp-Source: AGHT+IH7UPeyhW0cc6JveocvS61CnNGm5l4v+nzRw/cNXWtuk3rlE8EAp6Dxjh7eTbXveyqkQ7NQvA== X-Received: by 2002:a05:651c:1506:b0:2fb:62ad:89fa with SMTP id 38308e7fff4ca-2fb62ad8e1dmr13645241fa.45.1729038160372; Tue, 15 Oct 2024 17:22:40 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c98d4f85b4sm1152322a12.25.2024.10.15.17.22.38 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Oct 2024 17:22:38 -0700 (PDT) From: Wei Yang To: akpm@linux-foundation.org, Liam.Howlett@oracle.com Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, Wei Yang Subject: [PATCH 0/2] Following cleanup after introduce mas_wr_store_type() Date: Wed, 16 Oct 2024 00:22:19 +0000 Message-Id: <20241016002221.32428-1-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 4A42040005 X-Stat-Signature: 71twkj8a8gee73uxw3xc314i8go4cum8 X-Rspam-User: X-HE-Tag: 1729038155-293333 X-HE-Meta: U2FsdGVkX19mQECoglivBdPRgjD5BvvEOAjeRQbBtt/cTJ7JWGmb+WvapCKak59F5aWpDmzNwt26jes/MMhMYHe/dQZsh4dfx8UCbv/gIrcCaYu8/zNY9pRYGfLEE65KOvypuQMYokef/kqnka5RHfDjCD+zvKA8iaaBsoHjYI/vNNBkSTDcxGDcUgeaYrE5KiXp+txlqy95j76p5gZ9Y+mZQyjpk7noP56maI+fhMbYvdDm+7zpMCBJ+89ezvpoKk3k2sZrVhuJX+0Q8bW25BC0II01ePI/kzuiAesBTpJ06cW7v2nVa65YmwfXsOT2EG3xpN4DlcBuTS88ZtWrSN8Lgk55CYTpjNXTTC6dDuuet3yiV9DF2s2+1S4nMTXpU9Exb8x0QyvnTn1hfclm0hw1S3UCuw03NBeVo+ZsDjfWQQHWBbSiqYbY6IbDshC8poAex2afS8UxfrGqFvG0MxG0PmV7hlsmLtuwar/dMKBJ/fP957/8lxBvG4nNoyUiZtYVr+jqyFt7M33NPqoNyBBLD1MrZCV1FO00hGtoEoM8W1VITq7XxtmUrGwTXzYoYBy34JtXBJf94e9mTERcrEpAMdYymDezzvddle+imP1LQ3DqQ5jc+R1t+/YlFY6Y2S7xl2LHfBeKQXlmv2cJYNngPSylgu+21xL93WwfMY7l9JhjIs7WX9xc3OnT9PcnOQ/8kmGT8WzY8LqH72qaynoKEUFi6SKyse8sMww/JLalqZEcESV0sJpBlQpHDTJ3GnRCTBESVIS1WoGlqSqLKfjhwt0zzhc37XNzI8ujkI2UJ2yuNmowMceqCZ6SEiYo8OC+imExzJG/mAxcD1lmJ8xb74QgtChvGR5T7w1Ap+8HZdDLC/ulRoZvjjziWfjlFKN15zWhVBEC0buwDNuAXfZ9Yx2citOc/B4cnW7YLwm3UuhBs7PX4FdUTtqmkXsMNteJaVETnWlw6joiDxA 4mF5r2ov Og9VjvehfUtF0qIgvnjjDPtdJByMoAigxpXGG3pO1hFibxGnE+LzpjPEFycB0YKvtD/bVdGtvhGqehjKo/PK37RDo0R3FHwhsbus1Zn7J+bbKfWIP2v0nT+SikLfzrmUCFRLL/HiZxppl6qNHa5eN1HBELsKqK5FPkL1O+xdkhbDIlz48+S8N50GfXM5D9twmpDAs2BH/k+8Y1lFIbhZEf+GN2CetGDasCmlpzI2I39Ft6zedDmAQYxsmc7eQII6qusQa/l3cckC7+VD+QWEaBA3tMZE9HS42QFYl98YC5X+m9CxUk1NYomQyxH6imARgfszxRO9lDrOyTWVlthgCmW9S9nkmLs1q3zv+IBek0JbbwjvGs5g95Rx4ljRXHXKYCNXzPpX0H3GRgc9F0eKxFm2Bf71cQSOitMNcBFKWPoT/Cthv+AZAehABC7e1VHjYH/ydFKZS6PWF9mc= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000756, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Here is two cleanup after introduction of mas_wr_store_type(). Patch 1 postpone new_end calculation when needed. Patch 2 remove a unnecessary sanity check in mas_wr_slot_store(). Wei Yang (2): maple_tree: calculate new_end when needed maple_tree: remove sanity check from mas_wr_slot_store() lib/maple_tree.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)