Re: [PATCH v5 1/6] erofs: convert erofs_read_metabuf() to erofs_bread() for xattr

From: Gao Xiang
Date: Wed May 31 2023 - 23:02:14 EST

On 2023/6/1 10:43, Jingbo Xu wrote:
buf->inode is constant once initialized during erofs_buf's lifetime.
Thus call erofs_init_metabuf() and erofs_bread() separately to avoid
the repetition of assigning buf->inode when iterating xattrs.

Signed-off-by: Jingbo Xu <jefflexu@xxxxxxxxxxxxxxxxx>

Reviewed-by: Gao Xiang <hsiangkao@xxxxxxxxxxxxxxxxx>

Gao Xiang