Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5620783rwd; Mon, 12 Jun 2023 07:33:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6pCc18ZuwzIqmxkhYQQKnI4snQMEdwb4kfKDhxXZuTNpZS0IcncMRhUiM95w2Kl9E2ddmy X-Received: by 2002:aa7:c2d7:0:b0:518:6c09:847f with SMTP id m23-20020aa7c2d7000000b005186c09847fmr223308edp.6.1686580392231; Mon, 12 Jun 2023 07:33:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686580392; cv=none; d=google.com; s=arc-20160816; b=vh4kwfqFCBrDoY0L4bW7L1JY6GlctHsJa6K/AaRCa0auPLtdU4Mn0X0mxrM9gR70wd 2hP4zamyTMGhl9uB26AshA4Wa8dcC8toZPoT+l+muMg7w5Vx9fpDMm2DUaDO5jPZ6dku 4sF+TVdiqtru4gU89hkIg2RR5oiKLuh/rqUAGvmW8TRG8WDpbjunvzm4ZPxdZDOFHu1X b0O2WC9a5rr8CGwH4RJEMJU8BS+JUXmi1eYX8T8VAt/ZfrvSQLVwMI5eNV40kW7MoNrG nFWO60t2/lreWuwR7iND9cVu7iQ1v4HXnE9EZDUEJWCT4e2c/CazOVL78Jh5dpuirtap UJiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=rTKrf5Vq3pLPWgGgL0MxYqLHxkbCaGdA+DOsYcfDbxo=; b=mC21ihjYPnpfwOhJUV2ewHyUOgHg0L1sxUpHmQnwrix/Ncwcl34X9GWnYHRAlBAThX uDpsbeLl0zMRn1Dwx5oRJKdsB5QwhVu2Ri400M9LUFWhxWHzyAKdCCi7gG329lAG1oYU 7Dsn3bzuK0N95cvxozXHLFxFcte+2yxdFOdpCQ34MPnbkn7haEaUOEpp2G7sHQwY9Y0Q N1SeGCZX24J/LiARADLduk4RQwFJ4f+d/WqzKSI3bs8tnzUwu/6SDQyUjX8cefZhJbew m5AEoLK4EaFgj8mB9Nk2NlvTKWMOUt8NwKQIZSLD2MqIVgbcCdXkpPYSwmJrfK/fFrAu 7VrQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q1-20020aa7cc01000000b00514a3c04654si5480235edt.146.2023.06.12.07.32.46; Mon, 12 Jun 2023 07:33:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237545AbjFLOUw (ORCPT + 99 others); Mon, 12 Jun 2023 10:20:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237233AbjFLOTc (ORCPT ); Mon, 12 Jun 2023 10:19:32 -0400 Received: from out199-2.us.a.mail.aliyun.com (out199-2.us.a.mail.aliyun.com [47.90.199.2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36D674C00 for ; Mon, 12 Jun 2023 07:16:55 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R841e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0Vl-Q3HB_1686579340; Received: from 192.168.1.5(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0Vl-Q3HB_1686579340) by smtp.aliyun-inc.com; Mon, 12 Jun 2023 22:15:41 +0800 Message-ID: <0f371bd6-9db9-758a-8495-a1a2b10381f3@linux.alibaba.com> Date: Mon, 12 Jun 2023 22:15:40 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v7 1/5] erofs: use absolute position in xattr iterator To: Jingbo Xu , xiang@kernel.org, chao@kernel.org, huyue2@coolpad.com, linux-erofs@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org References: <20230612123745.36323-1-jefflexu@linux.alibaba.com> <20230612123745.36323-2-jefflexu@linux.alibaba.com> From: Gao Xiang In-Reply-To: <20230612123745.36323-2-jefflexu@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/6/12 20:37, Jingbo Xu wrote: > Replace blkaddr/ofs with pos in 'struct erofs_xattr_iter'. > > After erofs_bread() is introduced to replace raw page cache APIs for > metadata I/Os handling, xattr_iter_fixup() is no longer needed anymore. > > In addition, it is also unnecessary to check if the iterated position is > span over the block boundary as absolute offset is used instead of > blkaddr + offset pairs. > > Signed-off-by: Jingbo Xu Reviewed-by: Gao Xiang Thanks, Gao Xiang