[PATCH v2 0/8] erofs: cleanup of xattr handling

From: Jingbo Xu
Date: Thu Mar 30 2023 - 04:29:20 EST


changes since v1:
- patch 1: keep erofs_xattr_handler() and erofs_getxattr() untouched in
xattr.h (Gao Xiang)
- patch 2/3: add Reviewed-by tags (Gao Xiang)
- this refactoring can be tested by [1]

[1] https://lore.kernel.org/all/20230327123926.92934-1-jefflexu@xxxxxxxxxxxxxxxxx/

v1: https://lore.kernel.org/all/20230323000949.57608-1-jefflexu@xxxxxxxxxxxxxxxxx/

Jingbo Xu (8):
erofs: move several xattr helpers into xattr.c
erofs: rename init_inode_xattrs with erofs_ prefix
erofs: simplify erofs_xattr_generic_get()
erofs: introduce erofs_xattr_iter_fixup_aligned() helper
erofs: unify xattr_iter structures
erofs: make the size of read data stored in buffer_ofs
erofs: unify inline/share xattr iterators for listxattr/getxattr
erofs: use separate xattr parsers for listxattr/getxattr

fs/erofs/xattr.c | 683 +++++++++++++++++++----------------------------
fs/erofs/xattr.h | 23 --
2 files changed, 281 insertions(+), 425 deletions(-)

--
2.19.1.6.gb485710b