erofs: move several xattr helpers into xattr.c
authorJingbo Xu <jefflexu@linux.alibaba.com>
Thu, 30 Mar 2023 08:29:03 +0000 (16:29 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Sun, 16 Apr 2023 17:15:47 +0000 (01:15 +0800)
commit399f36d8c6e0c8292d2ff3db4fdcd33263b415ec
treeb384b060709968eb5222f05ed7ae9944a314e4ce
parent1c7f49a76773bcf95d3c840cff6cd449114ddf56
erofs: move several xattr helpers into xattr.c

Move xattrblock_addr() and xattrblock_offset() helpers into xattr.c,
as they are not used outside of xattr.c.

inlinexattr_header_size() has only one caller, and thus make it inlined
into the caller directly.

Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230330082910.125374-2-jefflexu@linux.alibaba.com
Reviewed-by: Yue Hu <huyue2@coolpad.com>
Acked-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/xattr.c
fs/erofs/xattr.h