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 <hongnan.li@linux.alibaba.com>
Signed-off-by: Jeffle Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Link: https://lore.kernel.org/r/20220722082732.30935-1-jefflexu@linux.alibaba.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
2022-07-31 22:26:29 +08:00
..
compress.h erofs: introduce multi-reference pclusters (fully-referenced) 2022-07-22 21:44:27 +08:00
data.c erofs: get rid of erofs_prepare_dio() helper 2022-07-22 21:46:03 +08:00
decompressor_lzma.c erofs: wake up all waiters after z_erofs_lzma_head ready 2022-07-09 06:32:29 +08:00
decompressor.c erofs: introduce multi-reference pclusters (fully-referenced) 2022-07-22 21:44:27 +08:00
dir.c erofs: update ctx->pos for every emitted dirent 2022-07-31 22:26:29 +08:00
erofs_fs.h erofs: scan devices from device table 2022-05-18 00:11:21 +08:00
fscache.c Changes since last update: 2022-06-01 11:54:29 -07:00
inode.c erofs: leave compressed inodes unsupported in fscache mode for now 2022-05-29 15:34:54 +08:00
internal.h erofs: implement fscache-based data read for non-inline layout 2022-05-18 00:11:20 +08:00
Kconfig erofs: register fscache volume 2022-05-18 00:11:19 +08:00
Makefile erofs: register fscache volume 2022-05-18 00:11:19 +08:00
namei.c erofs: make filesystem exportable 2022-05-17 23:48:54 +08:00
pcpubuf.c erofs: get rid of ->lru usage 2021-10-25 08:22:59 +08:00
super.c Page cache changes for 5.19 2022-05-24 19:55:07 -07:00
sysfs.c erofs: add 'fsid' mount option 2022-05-18 00:11:21 +08:00
tagptr.h erofs: clean up file headers & footers 2021-06-08 00:41:24 +08:00
utils.c erofs: fix deadlock when shrink erofs slab 2021-11-23 14:58:16 +08:00
xattr.c erofs: use meta buffers for xattr operations 2022-01-04 23:47:08 +08:00
xattr.h erofs: use meta buffers for xattr operations 2022-01-04 23:47:08 +08:00
zdata.c erofs: introduce multi-reference pclusters (fully-referenced) 2022-07-22 21:44:27 +08:00
zdata.h erofs: introduce multi-reference pclusters (fully-referenced) 2022-07-22 21:44:27 +08:00
zmap.c erofs: clean up z_erofs_extent_lookback 2022-03-17 00:08:48 +08:00