erofs: simplify erofs_xattr_generic_get()
authorJingbo Xu <jefflexu@linux.alibaba.com>
Thu, 30 Mar 2023 08:29:05 +0000 (16:29 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Sun, 16 Apr 2023 17:15:48 +0000 (01:15 +0800)
commitb05f30bcf71b8060d4a32b11353aaa2c5b0a8e3d
treea7d908c5754472f329b80265dca5d680b1735981
parent6020ffe76d1119241871300aad2ec7ef2cdc5e6c
erofs: simplify erofs_xattr_generic_get()

erofs_xattr_generic_get() won't be called from xattr handlers other than
user/trusted/security xattr handler, and thus there's no need of extra
checking.

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