Files
linux/fs/erofs
Hongnan Li ecce9212d0 erofs: update ctx->pos for every emitted dirent
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: 3e917cc305 ("erofs: make filesystem exportable")
Signed-off-by: Hongnan Li <[email protected]>
Signed-off-by: Jeffle Xu <[email protected]>
Reviewed-by: Gao Xiang <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Gao Xiang <[email protected]>
2022-07-31 22:26:29 +08:00
..
2022-05-18 00:11:19 +08:00
2022-05-18 00:11:19 +08:00
2022-05-17 23:48:54 +08:00
2021-10-25 08:22:59 +08:00
2022-05-18 00:11:21 +08:00
2022-03-17 00:08:48 +08:00