Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp405392ybv; Thu, 20 Feb 2020 00:20:26 -0800 (PST) X-Google-Smtp-Source: APXvYqyoHz6ogd0tMRJG/B41v8qqZSfiCAdR7vqgY8NMS/J3ipZbPg8VNH+9EbCDBKNcY4LJhEJ1 X-Received: by 2002:aca:fc0c:: with SMTP id a12mr1140613oii.118.1582186826145; Thu, 20 Feb 2020 00:20:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582186826; cv=none; d=google.com; s=arc-20160816; b=cM/WOeJ3QABRXqStaG68WHT45QYQhfQ61leUsJWkzoWv7KpnjnFFUOGstx2NLkt3Pj o2mF81Q3r9bTeT+TKSPJcYlJ/38z9bNDDJTlmm5s4ai4k2M/Zc7vETEuEPFrY9ZHyn4g ryYuaDP7bo706s4RETM52StioUAlbWSwfEgX+qDk5S4kyxajDO9/G261oo86nd7sIIGS pFlUmDXHj7psBgTQedot5VdB3pCzGr2mBqtvjBiylNpHKIf1nXqzI8Bw3xpq7q+q1xmk K6GciQ5RCR7yp26an9ZmCtiquw3OOM7MwymFNWdarZTQjFkd7Y0WOYDq8l6L+yXfitHV qnZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=o1Rvxz9FmdsyaEwnDtewzvd4IggcfdZDv8q7JXsc2K4=; b=PU2bFnglpPJaGzlufa6Cdtm0qjtinpT73R0paMIf5egDdwElTEGiCRWIBBkpbWGr1u Vt9WkhCoZr52XyzlKb6l7+GktAY5ULdNE0Gu8Q8OId0/yHzVCQ5k42PDMYeQZ2+vuS1w Hb2c5oumo7RkQc609pauBGtdGI+3dIYYsG0gVRgEW3PomYXFXkBHory3K1ijDfeX5ll0 qmeyasdrnYVAHgx7C+EqwkEIVTri8MkoQrLdo9DVcL0rJTOQ0wruG2GdbLmj2ZRdECP0 RoqvcOBSdUGMiHAxa0F7XpP8zUEt+S5lr7s43YVPR44i1DV8BkbfAKqYj2vwp+lNq4je qZng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h16si1354143otk.193.2020.02.20.00.20.13; Thu, 20 Feb 2020 00:20:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726813AbgBTIUD (ORCPT + 99 others); Thu, 20 Feb 2020 03:20:03 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:10658 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726766AbgBTIUD (ORCPT ); Thu, 20 Feb 2020 03:20:03 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 70D15595F2CA640EE134; Thu, 20 Feb 2020 16:20:00 +0800 (CST) Received: from [10.134.22.195] (10.134.22.195) by smtp.huawei.com (10.3.19.209) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 20 Feb 2020 16:19:50 +0800 Subject: Re: [PATCH v3] erofs: convert workstn to XArray To: Gao Xiang , CC: Matthew Wilcox , LKML , Miao Xie References: <20200220024642.91529-1-gaoxiang25@huawei.com> From: Chao Yu Message-ID: Date: Thu, 20 Feb 2020 16:19:50 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200220024642.91529-1-gaoxiang25@huawei.com> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.134.22.195] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/2/20 10:46, Gao Xiang wrote: > XArray has friendly APIs and it will replace the old radix > tree in the near future. > > This convert makes use of __xa_cmpxchg when inserting on > a just inserted item by other thread. In detail, instead > of totally looking up again as what we did for the old > radix tree, it will try to legitimize the current in-tree > item in the XArray therefore more effective. > > In addition, naming is rather a challenge for non-English > speaker like me. The basic idea of workstn is to provide > a runtime sparse array with items arranged in the physical > block number order. Such items (was called workgroup) can be > used to record compress clusters or for later new features. > > However, both workgroup and workstn seem not good names from > whatever point of view, so I'd like to rename them as pslot > and managed_pslots to stand for physical slots. This patch > handles the second as a part of the radix tree convert. > > Cc: Chao Yu > Cc: Matthew Wilcox > Signed-off-by: Gao Xiang Looks good to me. Reviewed-by: Chao Yu Thanks,