Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp184270imn; Wed, 27 Jul 2022 03:32:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t1iLrhyjGhqPMY1yhcs22hOnnJq87bMXyiaO86Qc9CeQZB7h3T1z2Op0A+OltN3ebKUUlb X-Received: by 2002:a17:906:6a14:b0:72b:64bd:ea2b with SMTP id qw20-20020a1709066a1400b0072b64bdea2bmr16714386ejc.680.1658917973213; Wed, 27 Jul 2022 03:32:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658917973; cv=none; d=google.com; s=arc-20160816; b=jHLihqyAMD7ZK+pbNqXxtZESs6JPNCAu0zRSiLrL5LnR8lRuKEZlU5ihVaEJ31Y9nU iwg5s1UmvZTYe4tzow2hdPWAQFUbOUyNJTqfctM61bo9tOCJuzwp3f+j8YmaiX3gvLCG elJw9fANdXIuKtScYRUC/moY0dIf2Szxb2PwxlM638s8LyWFSXAVorGBRMEkyke+Gfzw zQs+I8tfDfhRZINfY7oiEVsaaYqGka58J83XmaETxhaXQtqZDXsgcZhDMTm40ba5vcAk K5lKnfNqHPANR0/+hqJp4c00CDdnpQA9HoNSdINC/gnO/BweXlnwhJNpiE4AivkW2RvU n5zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Frv37Fvx8DvcKj/2D3jg5j+3Oz7ASBcCOTRoXA1cUvg=; b=NpNANat4sS61JdYb4tF+BCRWI+AKyuWhmG5dAl5uvgbLSdzmnSg81MyE+sgcri8v1x hjC+KlXfNGecMGNDnx/q061gN7bpJWriSNdj8tao8eWLLRW7QO/vVFq34BlpMIU+pfJv AvpfZafVuxCApAqlszFF4hEzcVib6nkuYZ7hKCYZVCoN7RMUWjE7NRt1XeeD6JqYBRzA rqq0kIDmC7n5NYi7KjmcGrUhgkl8+DxTWKMN0LAMu6UAPoRGpJlS8d2SUElBDGsJfVLN mqi10d4F8rFeMqT6hSW7GyC1ynwYnmusWw44qLhPM7Um5HsQ83KchliPRrTPSpCYDwI4 pXsQ== 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 oz32-20020a1709077da000b00726b8b2949fsi16646850ejc.698.2022.07.27.03.32.25; Wed, 27 Jul 2022 03:32:53 -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 S231614AbiG0KEz (ORCPT + 99 others); Wed, 27 Jul 2022 06:04:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231665AbiG0KEw (ORCPT ); Wed, 27 Jul 2022 06:04:52 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BECD31CFE2 for ; Wed, 27 Jul 2022 03:04:50 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VKadIyQ_1658916285; Received: from B-P7TQMD6M-0146.local(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0VKadIyQ_1658916285) by smtp.aliyun-inc.com; Wed, 27 Jul 2022 18:04:48 +0800 Date: Wed, 27 Jul 2022 18:04:44 +0800 From: Gao Xiang To: Jeffle Xu Cc: xiang@kernel.org, chao@kernel.org, linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] erofs: update ctx->pos for every emitted dirent Message-ID: References: <20220722082732.30935-1-jefflexu@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220722082732.30935-1-jefflexu@linux.alibaba.com> X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, 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 Fri, Jul 22, 2022 at 04:27:32PM +0800, Jeffle Xu wrote: > From: Hongnan Li > > erofs_readdir update ctx->pos after filling a batch of dentries > and it may cause dir/files duplication for NFS readdirplus which > depends on ctx->pos to fill dir correctly. So update ctx->pos for > every emitted dirent in erofs_fill_dentries to fix it. > > Also fix the update of ctx->pos when the initial file position has > exceeded nameoff. > > Fixes: 3e917cc305c6 ("erofs: make filesystem exportable") > Signed-off-by: Hongnan Li > Signed-off-by: Jeffle Xu Reviewed-by: Gao Xiang Thanks, Gao Xiang