Message ID | 20241127012753.3393-5-richard.weiyang@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 2E891D66BA3 for <linux-mm@archiver.kernel.org>; Wed, 27 Nov 2024 01:28:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AAC536B0093; Tue, 26 Nov 2024 20:28:41 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A366B6B0095; Tue, 26 Nov 2024 20:28:41 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 888096B0098; Tue, 26 Nov 2024 20:28:41 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 60B2F6B0093 for <linux-mm@kvack.org>; Tue, 26 Nov 2024 20:28:41 -0500 (EST) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 12E0D16171A for <linux-mm@kvack.org>; Wed, 27 Nov 2024 01:28:41 +0000 (UTC) X-FDA: 82830140274.30.2BE10A3 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) by imf12.hostedemail.com (Postfix) with ESMTP id 0981F40010 for <linux-mm@kvack.org>; Wed, 27 Nov 2024 01:28:36 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=WXfoTe6a; spf=pass (imf12.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.50 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1732670914; a=rsa-sha256; cv=none; b=ooQgqrb4ysP5d2JKWwsDjVlkDvdVEMLd/5v33WkDVjWMELJRT8Cbazgzy1reViPuam7cHx p+iJHK1V/LUC+Dvas+jvS/mZn1mRElF/MpBJDmAtR8QIchiZZC/ne5M1UnBXeXpmQPJD1c mqu11GvR/EYRek+mvxCG4TdB4z6/x1E= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=WXfoTe6a; spf=pass (imf12.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.50 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=1732670914; 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=IBNmmh4B4M0TQ+/dAhcgCtTY7fB/1UIx9y0TOFR25/k=; b=gx7R13mtBejxZuc3v5EAgovzp0hx9lQ9IKKnqSkFKrrIdb7fhj39H3iqtZXfLNcGxCZCLP 4o+dosgWIiIgxAt1Pof8P5dGAc2l4QwiVKYbujkfFpcEV6w1/o2G7THsDMk2j2rZG0JKvD eJY17tLVXFBmJpJ0kHXR9YdkUJMkuOE= Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-aa520699becso687483966b.1 for <linux-mm@kvack.org>; Tue, 26 Nov 2024 17:28:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732670918; x=1733275718; 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=IBNmmh4B4M0TQ+/dAhcgCtTY7fB/1UIx9y0TOFR25/k=; b=WXfoTe6a5V6TrXlx3iqOryVKnf8rZcbAKg5Q/Kt5Qs3NLs/Sgt2i+w8N0ctJGeZ72b Kqnnb16wZO1sJFFjnd2p6LerV/q/JbVDPrGJlMxNoknNnFtjZlxhaS6h8KFSBq55dhFN Xxf7NtvBQrce/2WvCRbd/s03sb7FIpitHjepDZJXHNRIWbN7qlDA8MHPfChmjomQYAUf jPn7dX1R03XdjCysI8coLQZ9avqm342LfqvK+8AVKkRROEGrrmEin4g9mPTO1RmrlaNJ vbCV95IgPhFov9sOs8myZ18SWzzxMEGAyCcmIc96pPrFMj1M9525RofgvlPtIK2NpVLn bHOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732670918; x=1733275718; 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=IBNmmh4B4M0TQ+/dAhcgCtTY7fB/1UIx9y0TOFR25/k=; b=EgleRyWURWifqKmaStqoJViBCg2sRZyiPpDnd0yNbq1ulHfWozwacHSDuFIeXT3YJ+ mw/O6Fk0FXZ0tELqUbx/3G57sRmz50Bybw+RcpwT1CCEJdn2mDsTFeLVelIy4Yq8XXYv KGgZ5epsQXT6nqp+xQgZr2KNRZhUeze5xomy53tbK6wCtCfymxaatSZE4+v0t8NFCad9 F18AXTcFmOrn9EpoWRg5+aKhYX1CJOqBCvIh3Jm68Z39sUB+G9Z4TFLhmaGScc06X4pG iRkp1iMK+o4nLpt291BJaIqYqbwcY+mryAmHWJ2E5kGgYTLsgysvs7N1itdS4PQe6Mhj NIlQ== X-Forwarded-Encrypted: i=1; AJvYcCUw3ihCf3Jpk8X28t0oIMMcdPWgksuIVg7y8AT1mWaVokkJ/Ty7ujJZXF9ynAxKspLZvdE6J4+OZA==@kvack.org X-Gm-Message-State: AOJu0Ywv3UkKscSO5Ae8+8MTvi0+cflTtBumH9nvKFaxMFovg6jBfW+B AgnO8bO9RlJ6PgpN5xTznOIaHT3VxRubM0mefwrafg1bRIRr7Udf X-Gm-Gg: ASbGncutx8l0T/MgihcF7vEy8Sg7NLV8noiL/1rJ76HcSg0uSJUVlNzkh5sMo4uFD6W BWYnQ7d0CstOnU/Y9uqCqdYLWdml8LB+hYCEUejuv/SQcXz+AijZfkaX2dirb7Gmj/xqmrRYidO aS15i55KsCzb8AkUsM8s0qe7bCbHYvN8Snj2MbttGD1M32VGDe/VBpTYAa57cY3nM8n7ItrhRNl oTjp4TGjqGPneA3y41+Ra4cln+g1BT3DHLM51NwAtcyVMBtMA== X-Google-Smtp-Source: AGHT+IHTuJZn8AR6pQBytzVE8FdAHzby8W6a6IeAit27qZQcFvDnSoDUm94nILXUSw7zLA5Z1hfpyQ== X-Received: by 2002:a17:906:3199:b0:aa5:226a:658f with SMTP id a640c23a62f3a-aa580ecf6bfmr69350866b.2.1732670917698; Tue, 26 Nov 2024 17:28:37 -0800 (PST) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aa50c305f56sm652882766b.181.2024.11.26.17.28.34 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Nov 2024 17:28:36 -0800 (PST) From: Wei Yang <richard.weiyang@gmail.com> To: akpm@linux-foundation.org, Liam.Howlett@oracle.com Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, Wei Yang <richard.weiyang@gmail.com>, "Liam R . Howlett" <Liam.Howlett@Oracle.com>, Sidhartha Kumar <sidhartha.kumar@oracle.com>, Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Subject: [PATCH 4/7] maple_tree: the return value of mast_spanning_rebalance() is not used Date: Wed, 27 Nov 2024 01:27:50 +0000 Message-Id: <20241127012753.3393-5-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20241127012753.3393-1-richard.weiyang@gmail.com> References: <20241127012753.3393-1-richard.weiyang@gmail.com> X-Rspamd-Queue-Id: 0981F40010 X-Stat-Signature: h6jyn5jcpapwgsmy7co5o75uaowd91m6 X-Rspam-User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lB5/Lr499T0gOtaSk11hljQg7Epphuc1VLtWV4J6X3LgYx3PsKnHY9yfyZIe93q14g6Da1yIDoX5o5OXd7Ohnn08rYMxLvxMeqJDcCValMpn+st7QbyzgkOLqwGyu77911s4W/uJ+9Xd7HA9PMsJKkyG+F5drIulC4LXe+mGr35bRL64flt/9cHnIWW3+RDxFN1n40daShzBhRgoy6JN16O4oV+cs6P/o3PhL0lJqTaRjPzrCPg0fELp86cYmlSTs6bpsKzIZ/SCu5EDO2iHilgqVv2Bh1mh3XLDZKH5+DgXL1IzS1fHcrLEuI+CetjzKJWdnqOuL5othpbjbfoLUWKfid2hcmOVo8Kkm3yN4SotHrqAcKOK32vdAdrVKaNKCkO2UP59bc3h5vAIyTWvwuTIPG0LK8nmFULJxXHUrPRW9VInve/eRSq93l3IZYtmLc0mGn1GXi82antSF3EbGD/RihD2a9Cereq+DOO+NYY7m+UqLL3Uo4Kc4V73ouRP3r8wI78Aw17yo/5yKLpioDaEWriygWc9RB8lP1hywQDg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000007, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
spanning write related cleanup
|
expand
|
diff --git a/lib/maple_tree.c b/lib/maple_tree.c index f5606b4d0dba..6cabee1371ec 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -2265,7 +2265,7 @@ static inline void mast_rebalance_prev(struct maple_subtree_state *mast) * @mast: The maple_subtree_state. */ static inline -bool mast_spanning_rebalance(struct maple_subtree_state *mast) +void mast_spanning_rebalance(struct maple_subtree_state *mast) { struct ma_state r_tmp = *mast->orig_r; struct ma_state l_tmp = *mast->orig_l; @@ -2284,7 +2284,7 @@ bool mast_spanning_rebalance(struct maple_subtree_state *mast) mast_rebalance_next(mast); *mast->orig_l = l_tmp; - return true; + return; } else if (mast->orig_l->offset != 0) { mast->orig_l->offset--; do { @@ -2295,13 +2295,13 @@ bool mast_spanning_rebalance(struct maple_subtree_state *mast) mast_rebalance_prev(mast); *mast->orig_r = r_tmp; - return true; + return; } } while (!mte_is_root(mast->orig_r->node)); *mast->orig_r = r_tmp; *mast->orig_l = l_tmp; - return false; + return; } /*
The return value is not used, change it to a void function. Signed-off-by: Wei Yang <richard.weiyang@gmail.com> CC: Liam R. Howlett <Liam.Howlett@Oracle.com> CC: Sidhartha Kumar <sidhartha.kumar@oracle.com> CC: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> --- lib/maple_tree.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)