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/[email protected]/ v1: https://lore.kernel.org/all/[email protected]/ 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
