erofs: use absolute position in xattr iterator
authorJingbo Xu <jefflexu@linux.alibaba.com>
Tue, 13 Jun 2023 07:41:10 +0000 (15:41 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Sun, 18 Jun 2023 04:10:53 +0000 (12:10 +0800)
commiteba67eb6de441909a22090bc77206c91134cd58c
tree81e8ddd16f8baeefa6b39abea994eedfa1d11e2e
parent001b8ccd0650727e54ec16ef72bf1b8eeab7168e
erofs: use absolute position in xattr iterator

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 <jefflexu@linux.alibaba.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230613074114.120115-2-jefflexu@linux.alibaba.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/xattr.c