From patchwork Mon Nov 11 21:53:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kemeng Shi X-Patchwork-Id: 13870697 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 B632CD2E9E4 for ; Mon, 11 Nov 2024 12:55:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0FBBB6B0083; Mon, 11 Nov 2024 07:55:08 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id EDF3F6B0092; Mon, 11 Nov 2024 07:55:07 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C6DEC6B0088; Mon, 11 Nov 2024 07:55:07 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id A3BFE6B0085 for ; Mon, 11 Nov 2024 07:55:07 -0500 (EST) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 568761218B1 for ; Mon, 11 Nov 2024 12:55:07 +0000 (UTC) X-FDA: 82773809034.28.9323FB1 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by imf15.hostedemail.com (Postfix) with ESMTP id 2E45BA0039 for ; Mon, 11 Nov 2024 12:54:20 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=none; spf=pass (imf15.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=1731329474; 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:references; bh=kDAHiFeFOjKIDcNB6l95i3wv5GQ+gr32bq6JKvScj/I=; b=JeXrS4Xvtn7ndR4zTumaWy8vP3mwvbosn38z8bilxqce4fX2+CMHoujPpjiw5HKO/O3HEj o3S8XlEmaV4ArojzXtVmJJ8xH5CqFfb5gnSzSH5kYLZ6FP/iaLZfZQ5tmIWCkuC2Qpot4G ffIaKTxSdFvujquaNDeBJ2g0/c1mGyg= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=none; spf=pass (imf15.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=1731329474; a=rsa-sha256; cv=none; b=KgKxWIEdN1ohl79bX8nEVOULZdEB/kfhr0mrr3EOBviIm4+3rxuodDFANQuEGgnqiPVCW3 WqWviUyrv2qylar3OMjj4MOtqx/GTTf4LeehhtnEL4ReBXQYvbsZ8M0SLrY8a9JMC9bVy7 ayAeSBEUhHDI5d1Gl+b8gWLt37rPqYw= Received: from mail.maildlp.com (unknown [172.19.93.142]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4Xn8dZ72gKz4f3kk6 for ; Mon, 11 Nov 2024 20:54:42 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.128]) by mail.maildlp.com (Postfix) with ESMTP id 137C11A018D for ; Mon, 11 Nov 2024 20:54:56 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.101.6]) by APP4 (Coremail) with SMTP id gCh0CgB3n4Oe_jFnllryBQ--.36628S2; Mon, 11 Nov 2024 20:54:55 +0800 (CST) From: Kemeng Shi 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 0/5] Fixes and cleanups to xarray Date: Tue, 12 Nov 2024 05:53:54 +0800 Message-Id: <20241111215359.246937-1-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-CM-TRANSID: gCh0CgB3n4Oe_jFnllryBQ--.36628S2 X-Coremail-Antispam: 1UD129KBjvdXoW7Xr4xur45Cw43AF1kKF4rXwb_yoW3Krg_ua 4vkF9rtr4UAFWUJa429Fn8t3yrAr48Gr1jqFyYgr43ZFyUXrZxJr4kCr45XrnrWFyaya4D XrW5ZryFkw17KjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbxAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l87I20VAvwVAaII0Ic2I_JFv_Gryl8c AvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW7JVWD JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_Gc CE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxI r21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87 Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lc7CjxVAa w2AFwI0_JF0_Jw1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxV Aqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r12 6r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6x kF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AK xVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07 jSYL9UUUUU= X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 2E45BA0039 X-Stat-Signature: ihdt3obshncb6r8gc7sed58jre6soeu8 X-Rspam-User: X-HE-Tag: 1731329660-514540 X-HE-Meta: U2FsdGVkX19a1Lsgo2zyPBZoKhhJ2XrJKHm52WZErO3yIsT5cUMbC91CLD0+WSA86PVkpDmMkpu0C0qCqfkKExAvgCz0cde97jv+Z+AXOMzFlSlAbTQIFts436szn032InmGOsZrUgy2QkiY2xYcF5uS3aMvCvojTkWiNXH8NJVABrDB3+aTgx0G2cTNHfqZcnFbdsNhJLBVL0tkTMasBWa9Ut4KPGVde5kYMng3fO0wj/EIPdjbpsHoikXR7fy2HlKMzURDe8QSluiq3rDMUBw3aPNlUjVk9kV5CTa61IJoJSRy2a3EfWmOmMeCixB2spjxtFa5H9lpn5mHfDZpBbji2zlV/cwRdoi8T+DsXIgEwpIs8/syVVQNoV/7LyBNfWAD4MHhYKFm8EezwEy0yQ2UlVFzZ7469HgPNhN1A1tfd6HhHwTRtAX3b86kS8iUSJYf8zmyf7kDxefttRHXVEnTiQT2YyND1CcD2l0LSK6yoJsucwrO9xa7arS0QXdiWhUtutPhH26lHtdl+y3UWIYRW/i79UhZGqEmlOMIEgGW0Iq5PN/l+dYzM7GDwEX398CM+EXhZg28k0fcneJX+IFly4p6L2v3Z/aGYPvq3NTXRpAMcbG9BUx+E3p8+NpSDzIuLvM6CkoPpwwrxR+Dgh9BL1ZxdRYodLE/8m1NkdrqOOzFzPL6uIl/rNJcl0d7meJP91oAlYiviX7tw3cuLXMp6CLBUewd0vZRSciH1rW4h5ybkUSfhhtdmMSMhHzDSKHbc2plav/ev8f6S5k620BZGFo6d2D0Vgk7FqiP2JVD34e75qjPnxHyhgGHBMiKfzDtWPtAG5KZP/7p10f2RFq+YGY8fC78jLMFmlqqqXVMm1wpGWJ0JtyEYl1b+T0LmUO9/xeKcuzsV+llNAkOFy7ZSqXUYL8OOuITyztK18BprWuvHoTW80IxDJztfzuSf7zzetKf5wzGwuut2Wo xnuiThWS f6QGhLwD+SksBcKX1+ObbydwQopSo8elntvFwpx50MI4LXCHnEXHFY3Q+w5DCiQjzzNLN17RRsOIPTOU3miUYBqy2inqaqRj7Hx3Nb+syQpDGiwhzoacwtaddbWqQUJPk1j9MP996S6OUIoU= 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: resend: -also cc linux-mm v1->v2: -Drop patch "Xarray: skip unneeded xas_store() and xas_clear_mark() in __xa_alloc()" This series contains some random fixes and cleanups to xarray. Patch 1-3 are fixes and patch 4-5 are cleanups. More details can be found in respective patches. Thanks! Kemeng Shi (5): Xarray: Do not return sibling entries from xas_find_marked() Xarray: distinguish large entries correctly in xas_split_alloc() Xarray: move forward index correctly in xas_pause() Xarray: remove repeat check in xas_squash_marks() Xarray: use xa_mark_t in xas_squash_marks() to keep code consistent lib/test_xarray.c | 35 +++++++++++++++++++++++++++ lib/xarray.c | 26 +++++++++++--------- tools/testing/radix-tree/multiorder.c | 4 +++ 3 files changed, 54 insertions(+), 11 deletions(-)