From patchwork Sun Sep 8 14:05:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 13795493 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 AE21ACD4F4C for ; Sun, 8 Sep 2024 14:06:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E6C4B6B00A5; Sun, 8 Sep 2024 10:06:15 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E1CA76B00CD; Sun, 8 Sep 2024 10:06:15 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CE5076B00CE; Sun, 8 Sep 2024 10:06:15 -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 ADC3C6B00A5 for ; Sun, 8 Sep 2024 10:06:15 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 6CB76A1AE0 for ; Sun, 8 Sep 2024 14:06:15 +0000 (UTC) X-FDA: 82541745510.30.458EEB5 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) by imf05.hostedemail.com (Postfix) with ESMTP id 8D7B3100018 for ; Sun, 8 Sep 2024 14:06:13 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=ZrALq5km; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf05.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.54 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=1725804261; 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:in-reply-to: references:references:dkim-signature; bh=urKSu062/ZI3Gei+tWS0YZoIydBePxyB6FQbwXL3y3c=; b=B3xH0wO6tOHXIvALpZLsvEk7bkUTMspZQsPUNqhdk0O8YGbIm8AV16qtIqdme1vQhIu9QH /TgXWOyY022YiLbzep45pgcqLKtGuSDQX6bN5DDT4fAYT5nzwPZljgFfn8e5c4RTETaMlm sMjGTK/MwVhyhHxmZU6JkHs2JwcoqlA= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1725804261; a=rsa-sha256; cv=none; b=Hfn5e1MxrwmUtOmjgEhSf4uDqatnCVH/BBDMEu6VYQhdv508gB+EdBKksb/rOlofxlHWhb g787pcfhQGDauiTruFR8OHmSJ8IdVxqar7uvutRMtwsD7P6dKHlVyqC/aVGBAtxF77lSh2 bnLbzm/udSTKu7/VrG8P5H3UApreqZQ= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=ZrALq5km; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf05.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.54 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a8d4093722bso119590866b.0 for ; Sun, 08 Sep 2024 07:06:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725804372; x=1726409172; darn=kvack.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=urKSu062/ZI3Gei+tWS0YZoIydBePxyB6FQbwXL3y3c=; b=ZrALq5kmSII5cjVANwgZHKCAEIs/9+MJDExQyOHdIjRlAa84kONRfBdhXW+m3a7cNC VAzRsCqbx9f6LVyG6f0NCMpHj/o32hoDyywAURuFcl2NQf94JUU+obn1PnAJL3dDbGLf e5BHIYt665ffKIzLESSREAHCMX8Z1QRCDvsJ9gZxuuEiyL+VrlcOR32XVLz8EOhfxpjU OByGPR78nmK6XTClRxANjoCHZmeRxBeQkbpiuE3GkUcEhEbp2mKuT2VNWnJH02oJdW8x pRlGUAbUHR6KBaKROJd7I16RJICJXvklqEGz+drYwVAeAa9TQ8eq2YJfOjTEQT4FQmK1 cKmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725804372; x=1726409172; h=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=urKSu062/ZI3Gei+tWS0YZoIydBePxyB6FQbwXL3y3c=; b=efnUFdGPzYb485q5LXj2gcuuaS81VtrkdylqcAL9Kerjw5L+WdpXoWKSbKz14EQrwW oONr6FF//b0QTyvSjwIZryWkueKkJ/Ijgi9EgqlKJ6U6zY0j+8O7A5yOhl+TFAmpbuS2 8V0phud4gMaqxq0x/7Q2JY2vZsvb4l0MfXuyQEPgHjQKSbKjCa5sx3mH71vMb4DB78LX JmbA+gmOsMiEG4lwv0UKm6Do2rcDV5/3ee2Y1Baiu2BILTBw08dkkoNwTcWA/xL++HW7 2BtFQ90Um9vpczTI3VRHai0mYqcR4a2yjazsp0AIqmtDrnTKFK6Qw8uoHEfq8VSutyLn FbFg== X-Forwarded-Encrypted: i=1; AJvYcCWYSvYkFfcZN9tjXt98Bm48dhmRJ5J/hSyTwP+j+c1GcJXpaTbfYZYom70zDRKoRH2mjmDmTw1WZA==@kvack.org X-Gm-Message-State: AOJu0YwLbc/csYoIjUwh6Aqg4NKPXeJsOf6n6P4TCt5o7vqKacByBajv 3yJcJ+MIT0DJ1n1GJjTKjwVQG2LrkIgGGdtUV7gC+C/lMMV9z0E/ X-Google-Smtp-Source: AGHT+IHJIyN7ZjYqcRFzW57OQaEQsdBWl25WOWmwnRwLSqRy+NHyv+bgFmOMpXJZSCCgUERcY/bfGQ== X-Received: by 2002:a17:907:72c7:b0:a7a:a0c2:8be9 with SMTP id a640c23a62f3a-a8d1bfcb437mr679413166b.18.1725804371825; Sun, 08 Sep 2024 07:06:11 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8d25d65cf6sm206137466b.222.2024.09.08.07.06.11 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 08 Sep 2024 07:06:11 -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 , "Liam R . Howlett" Subject: [PATCH v2 1/2] maple_tree: remove maple_big_node.parent Date: Sun, 8 Sep 2024 14:05:53 +0000 Message-Id: <20240908140554.20378-2-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20240908140554.20378-1-richard.weiyang@gmail.com> References: <20240908140554.20378-1-richard.weiyang@gmail.com> X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 8D7B3100018 X-Stat-Signature: jksr4tj5m4bffprjmfq65pkrs55eojxj X-Rspam-User: X-HE-Tag: 1725804373-152882 X-HE-Meta: U2FsdGVkX1/2fTxfPTX/nU42CgnQ71363iyVAcYJVzJM6klRjtP8ZAqot4i0N8doJpSXeDsEV7ofufYrZ9Ivnm3b1+ThUmNh1JLaMYHrA8q6DA5khUrpTZ+v8rdA8nzFG8XWgk+68m4627aY1a9p11Gz51NLWsRP9YZjee2+YFrKaszpvn3dsEtr3lDPiM8Tz2Ohepe2dJnRzVop9n1RhrLMfmvkDHU9lkXuvOxLo31FK3YWSt5aARGiLqzAtX06J4p4FtwOkO3uOozLHUWMzomCcrXhb4XSd/SSC6khq4DVrVU5BNZRBa0ImEcwAupFSR34ddGKIhgM4smpFBSSwjj9j1t4EZ3cg2EERWlg6Uf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EhyE8e1HBXiQVgh5wbAre9I0wUFiV4kBANLuJaONpilLoP0U4DH74McEtyG/dKZbm3seiSkPeiyW X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: The member parent of maple_big_node is never used. Let's remove it which could reduce the number of space to be cleared on memset. Signed-off-by: Wei Yang CC: Liam R. Howlett Reviewed-by: Liam R. Howlett --- lib/maple_tree.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 4e08dd5e391b..c3370c7449c2 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -120,7 +120,6 @@ static const unsigned char mt_min_slots[] = { #define MAPLE_BIG_NODE_GAPS (MAPLE_ARANGE64_SLOTS * 2 + 1) struct maple_big_node { - struct maple_pnode *parent; unsigned long pivot[MAPLE_BIG_NODE_SLOTS - 1]; union { struct maple_enode *slot[MAPLE_BIG_NODE_SLOTS];