Messages in this thread | | | From | Jingbo Xu <> | Subject | [PATCH 0/8] erofs: cleanup of xattr handling | Date | Thu, 23 Mar 2023 08:09:41 +0800 |
| |
patch 1-4 are trivial cleanups .
patch 5-7 makes inline_getxattr() and inline_listxattr() unified as iter_inline_xattr(), shared_getxattr() and shared_listxattr() unified as iter_shared_xattr().
patch 8 converts the callback styled xattr_foreach() to two separate xattr handling fucntions for listxattr and getxattr, i.e. erofs_listxattr_foreach() and erofs_getxattr_foreach().
It has passed erofs/019 testcase of erofs-utils.
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 | 705 ++++++++++++++++++++--------------------------- fs/erofs/xattr.h | 56 ---- 2 files changed, 303 insertions(+), 458 deletions(-)
-- 2.19.1.6.gb485710b
| |