Message ID | 20241213122523.12764-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 0281EE7717F for <linux-mm@archiver.kernel.org>; Fri, 13 Dec 2024 03:27:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 35F3E6B0096; Thu, 12 Dec 2024 22:27:21 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DF7D46B0098; Thu, 12 Dec 2024 22:27:20 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C706B6B0096; Thu, 12 Dec 2024 22:27:20 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 00BF96B0096 for <linux-mm@kvack.org>; Thu, 12 Dec 2024 22:27:19 -0500 (EST) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 8C71680B10 for <linux-mm@kvack.org>; Fri, 13 Dec 2024 03:27:19 +0000 (UTC) X-FDA: 82888499022.19.02696DD Received: from dggsgout12.his.huawei.com (dggsgout12.his.huawei.com [45.249.212.56]) by imf03.hostedemail.com (Postfix) with ESMTP id F181D20011 for <linux-mm@kvack.org>; Fri, 13 Dec 2024 03:27:03 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf03.hostedemail.com: domain of shikemeng@huaweicloud.com designates 45.249.212.56 as permitted sender) smtp.mailfrom=shikemeng@huaweicloud.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1734060411; 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=DgWpRFPOUXpypNiiMJ+6V9H/eLigWcB0AC/9ewmZk0j5Pj6JjAg+jhP2ItvoGlp4/KpONw aJeBJHG3YHfijoIlqKZYoeLb0ADayk5uzJUi+oYeUKfIESYzMX7Sl1jXtgTBjp9fvGqVs9 WOqL26pd9SZly2QI3qztFkCHTUCBqFQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1734060411; a=rsa-sha256; cv=none; b=HKAkpjmyrXSJomSqOmDkYvFrSHlsWpE74Z1UMbNNIJSeZWvtHn8zjPOQzaZcSrtEas5WlP lMJWOMCm0m3dTHkKBRR6nt4mPbOwgjK4hscoK6cgH/0JAxdvpIvZwI+KZDxGOH6pyd5gHD CgSxQvIyvgZ+XHXzj+pChnMlI+94NpM= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf03.hostedemail.com: domain of shikemeng@huaweicloud.com designates 45.249.212.56 as permitted sender) smtp.mailfrom=shikemeng@huaweicloud.com Received: from mail.maildlp.com (unknown [172.19.93.142]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4Y8ZWb3bSQz4f3jdc for <linux-mm@kvack.org>; Fri, 13 Dec 2024 11:26:51 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.128]) by mail.maildlp.com (Postfix) with ESMTP id CDE0C1A018D for <linux-mm@kvack.org>; Fri, 13 Dec 2024 11:27:10 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.101.6]) by APP4 (Coremail) with SMTP id gCh0CgBHcISMqVtnfJ3KEQ--.55430S6; Fri, 13 Dec 2024 11:27:10 +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 v3 4/5] Xarray: remove repeat check in xas_squash_marks() Date: Fri, 13 Dec 2024 20:25:22 +0800 Message-Id: <20241213122523.12764-5-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20241213122523.12764-1-shikemeng@huaweicloud.com> References: <20241213122523.12764-1-shikemeng@huaweicloud.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: gCh0CgBHcISMqVtnfJ3KEQ--.55430S6 X-Coremail-Antispam: 1UD129KBjvdXoWrtFWxKF1Dtr4kXFy7Xw4kCrg_yoWxtwb_Za 10yr1vyr1UCrn7XwsIkFs8tryjkryvqF9rKFW8Ja43ur10qry5WF4vqr15Aa4kZw4ayFy7 JF45Zr1Y9r15GjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbqxYFVCjjxCrM7AC8VAFwI0_Wr0E3s1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l87I20VAvwVAaII0Ic2I_JFv_Gryl82 xGYIkIc2x26280x7IE14v26r126s0DM28IrcIa0xkI8VCY1x0267AKxVW8JVW5JwA2ocxC 64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM2 8EF7xvwVC0I7IYx2IY6xkF7I0E14v26F4j6r4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0D M28EF7xvwVC2z280aVCY1x0267AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc 02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAF wI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxkF7I0En4kS14 v26r126r1DMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8C rVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtw CIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x02 67AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr 0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IUnVw Z3UUUUU== X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-Rspamd-Queue-Id: F181D20011 X-Rspam-User: X-Rspamd-Server: rspam07 X-Stat-Signature: 43qpjgsfr56c96cngar9nkzd66rtupey X-HE-Tag: 1734060423-157365 X-HE-Meta: U2FsdGVkX19I/z+w4kD+kgkITMAir4Y9LRMjozJnTIPFapvnaUfiCHDPz1zHcpeezsmULUwdhAhJECnfO98mdS4gsVKFYWjOQfCKqxVLo0yMKVUgBMRrjQBAqCkfc/cWSfkIiNoxQQ+YdBqO2+tkPM3NALzpEOmd1PmGG4u0WGVp0wOdh6as1TZ35epmr4lJydMT7SwHo3UBWcQ8GkaZvojEmstGXJt9rMedzsjDtMRvbcZ5WScDFIXLo4/yXO7CLMDl0TbQFqEmF9Q69dBIbUi81vj9frasRlo5zjd9BS+TTAF49b45yvlKQTL4HwOnmjq9xaOUhUSvTFb//3Sxl2M8EU+BkYjTSXgI2UIAJZcMHWfqjEG8/GADyZY4fQ0uhBXn6NPD6PVRsdv//Qm3ln/khBS2gFveAfX9ZCsL46fFpeZL/hMI1GO8m2aPA9uOq7AgkqodH5UmCaZGc08UCP65+FiHoEv1FY+/vfQl6T7tREbEF9gzviBWR52CCiZ0Q+QRZAlY5J+OCXDKjIBerS5S498IlMWSkujnQyYBZGJqhhnR7/w5TF0YM1piakO7F6KM+KE0DZXtdrpyyplwxYiDLD1tzXRsEX75IIeqTbJRXf11Jbi6kxyXM+anjoGvlF9IZc+oyaKSpshLi5R7ckKemCKAQimDQmJA/bQeQ0H0qCYuVL1fJExZX2wAYxCbN6hxohPbqX6ktaNjSAxUeu8x8gH8rKGHCXBboat5hwDfvyUHHYZ08FYHjj0yJaNRGUud6aJIWXss8wRBoH4QkHH4meBbKiXKd4MKu25v2Od8RXZCL6weezcUEjHjWLsUgJTtpCyBwbHlamZPq2S1ApyAOoWBCnzqP1FUGrStdhXMWkXAIRWauOScG8WOIJV77tz4dxP2/itF2AtHIPB+qO9TZFLSiXwVSA4RNg0mom8svOVPedSmdL2xylwy9X1sZ8z5uaKdonzF8TfhpO2 i0esZzHn ZjDbUVwpRiV+MnJl8X7R1FNoltoQsYcRUIgf8QRTs7/Lj8DYQSJJQNcr7T2H14S2GX4N2gKqi83aGm/88L6VuSFxz0EQhFpSPg5jrgMYofjK7AMfoOCuPGwYvrlgWunbhQ+E/M4ZGCZYXeBfrerx05256OqAZS32jYf0XB2EusLhWPEyLhaxlfQu9KyJFcTaBLu9ig1XrRtPaR2ERsS2M/B+F6Q== 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(-)