[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <368e99d1-bc41-976a-094b-816e80ef6367@kernel.org>
Date: Sun, 31 Jul 2022 21:18:05 +0800
From: Chao Yu <chao@...nel.org>
To: Jeffle Xu <jefflexu@...ux.alibaba.com>, xiang@...nel.org,
linux-erofs@...ts.ozlabs.org
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4] erofs: update ctx->pos for every emitted dirent
On 2022/7/22 16:27, Jeffle Xu wrote:
> From: Hongnan Li <hongnan.li@...ux.alibaba.com>
>
> 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 <hongnan.li@...ux.alibaba.com>
> Signed-off-by: Jeffle Xu <jefflexu@...ux.alibaba.com>
Reviewed-by: Chao Yu <chao@...nel.org>
Thanks,
Powered by blists - more mailing lists