Message ID | 20241111215359.246937-5-shikemeng@huaweicloud.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 401C5D2E9E3 for <linux-mm@archiver.kernel.org>; Mon, 11 Nov 2024 12:55:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7926C6B007B; Mon, 11 Nov 2024 07:55:08 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 42E086B008A; Mon, 11 Nov 2024 07:55:08 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 25D906B0093; Mon, 11 Nov 2024 07:55:08 -0500 (EST) 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 CF1AC6B007B for <linux-mm@kvack.org>; Mon, 11 Nov 2024 07:55:07 -0500 (EST) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 61713161885 for <linux-mm@kvack.org>; Mon, 11 Nov 2024 12:55:07 +0000 (UTC) X-FDA: 82773808278.24.14E9696 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by imf06.hostedemail.com (Postfix) with ESMTP id 5FA69180008 for <linux-mm@kvack.org>; Mon, 11 Nov 2024 12:54:33 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=none; spf=pass (imf06.hostedemail.com: domain of shikemeng@huaweicloud.com designates 45.249.212.51 as permitted sender) smtp.mailfrom=shikemeng@huaweicloud.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731329514; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bxIw4umX4p8FjSyJOZOfGED/8t0TaNg5KTYmBw60MZs=; b=fyAjtHa5tzIplwsI0AAV9sICxj9T4KXNz7maKbEomGrNqz3Q4A2BUsI2CbW370OGrXLz4N CdSzFLB/Lofqo68mdJXF4/km/RDyvXZ1Ghuk3Q/Zedxj3819T+St7PrDqiaE1U/NkPH2Uf HresWY8wj9ywF+cjNHm/73aLBltVf8Q= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=none; spf=pass (imf06.hostedemail.com: domain of shikemeng@huaweicloud.com designates 45.249.212.51 as permitted sender) smtp.mailfrom=shikemeng@huaweicloud.com; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731329514; a=rsa-sha256; cv=none; b=ky1/SomWIDzel2JaOSzq2rVENPPpyRal67S7Hv8PfeMjjCEagwzY8vjpwBjSiB2aGNNT1n qponKVn5oixlS4Cbqj/lX/DbF2Hbvq1VC2iVFKBTD6S9P7wnzmuIVwSUhvDKOeAyY5qW/b ZyQMgGfrOHJKDi3xBboyOBaYk42E0Fc= Received: from mail.maildlp.com (unknown [172.19.163.216]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4Xn8dV1Jvnz4f3nbG for <linux-mm@kvack.org>; Mon, 11 Nov 2024 20:54:38 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.128]) by mail.maildlp.com (Postfix) with ESMTP id 39CCF1A018C for <linux-mm@kvack.org>; Mon, 11 Nov 2024 20:54:57 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.101.6]) by APP4 (Coremail) with SMTP id gCh0CgB3n4Oe_jFnllryBQ--.36628S6; Mon, 11 Nov 2024 20:54:57 +0800 (CST) From: Kemeng Shi <shikemeng@huaweicloud.com> To: akpm@linux-foundation.org, willy@infradead.org Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH RESEND V2 4/5] Xarray: remove repeat check in xas_squash_marks() Date: Tue, 12 Nov 2024 05:53:58 +0800 Message-Id: <20241111215359.246937-5-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20241111215359.246937-1-shikemeng@huaweicloud.com> References: <20241111215359.246937-1-shikemeng@huaweicloud.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: gCh0CgB3n4Oe_jFnllryBQ--.36628S6 X-Coremail-Antispam: 1UD129KBjvdXoWrtFWxKF1Dtr4kXFy7Xw4kCrg_yoWxtwb_Za 10yr1vyr1UCrn7XwsIkFs8tryjkryvqF9rKFW8Ja43ur10qry5WF4vqr15Aa4kZw4ayFy7 JF45Zr1Y9r15GjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbqkYFVCjjxCrM7AC8VAFwI0_Wr0E3s1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l87I20VAvwVAaII0Ic2I_JFv_Gryl82 xGYIkIc2x26280x7IE14v26r126s0DM28IrcIa0xkI8VCY1x0267AKxVW8JVW5JwA2ocxC 64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26F1j6w1UM2 8EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4UJVWxJr1l84ACjcxK6I8E87Iv67AKxVW0oVCq 3wA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8w Aqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE 14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY1x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gQxPIMmXIdmj/K7bf7DgRD30gjA19A3W//OaZjiQrIoGQp2X/lrPZG6BeJ65SKOguKDkW4Mh9AGuDY12zRQrYflvdFbNCjS3ece65q2PKIOmmhZJqmNHKQd8xz6lfJqSlsoEAsOFEERnx9cJwPY8QQlP1FPnFyYpS708sFVZlkO+2w74CW6SfR4F+JjlACdtgDiMprs3Sa2rMuxrzop4uQsKKZfGJ+Ns+cHJ5cmDypjQomiMHn9v5ikmkkPU4bw/pQ4a0/xWDccURLniWQ4q7dDnU5FLu+96aTNIx6G5EXMwo9mWoFKrkKqhGiGyFHmUG5Qi3I8ZSBTfj5I4RUxO5+injXLkJWRzprOLSlKulF0xtn0TCL4XfDWi1GFEK+zBXHcNf5PIAQ/ipWpR0c+MhrkhzuD8/cYvupuTwMxQnd+keJqbkj2IH wh+xVlJy LIHf+IXYr3tfarJszXMc0/qYGP2h3EArNyFIlSOBWcVZCYaFVOy6cEhj5GMnY7lnF9FQtZdfNS8haMgcrbY+Lx4D4f2N/UF+YMp/EkSwtx1SxJC+owRjaVB/lwehq3hj6zjpYrdGMI26VtT1Av3MXioaa5npyGUU7mHZZ6yIGaB8uiV5VeTBpeZLB6b2WOB5OyyKRV08k3ichafhXDfhpC/olmg== 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Fixes and cleanups to xarray
|
expand
|
diff --git a/lib/xarray.c b/lib/xarray.c index 3fac3f2cea9d..4231af284bd8 100644 --- a/lib/xarray.c +++ b/lib/xarray.c @@ -128,9 +128,6 @@ static void xas_squash_marks(const struct xa_state *xas) unsigned int mark = 0; unsigned int limit = xas->xa_offset + xas->xa_sibs + 1; - if (!xas->xa_sibs) - return; - do { unsigned long *marks = xas->xa_node->marks[mark]; if (find_next_bit(marks, limit, xas->xa_offset + 1) == limit)
Caller of xas_squash_marks() has ensured xas->xa_sibs is non-zero. Just remove repeat check of xas->xa_sibs in xas_squash_marks(). Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> --- lib/xarray.c | 3 --- 1 file changed, 3 deletions(-)