@@ -46,18 +46,19 @@ extern const struct xattr_handler erofs_xattr_security_handler;
46
46
47
47
static inline const struct xattr_handler * erofs_xattr_handler (unsigned int idx )
48
48
{
49
- static const struct xattr_handler * xattr_handler_map [] = {
50
- [EROFS_XATTR_INDEX_USER ] = & erofs_xattr_user_handler ,
49
+ static const struct xattr_handler * xattr_handler_map [] = {
50
+ [EROFS_XATTR_INDEX_USER ] = & erofs_xattr_user_handler ,
51
51
#ifdef CONFIG_EROFS_FS_POSIX_ACL
52
- [EROFS_XATTR_INDEX_POSIX_ACL_ACCESS ] = & posix_acl_access_xattr_handler ,
53
- [EROFS_XATTR_INDEX_POSIX_ACL_DEFAULT ] =
54
- & posix_acl_default_xattr_handler ,
52
+ [EROFS_XATTR_INDEX_POSIX_ACL_ACCESS ] =
53
+ & posix_acl_access_xattr_handler ,
54
+ [EROFS_XATTR_INDEX_POSIX_ACL_DEFAULT ] =
55
+ & posix_acl_default_xattr_handler ,
55
56
#endif
56
- [EROFS_XATTR_INDEX_TRUSTED ] = & erofs_xattr_trusted_handler ,
57
+ [EROFS_XATTR_INDEX_TRUSTED ] = & erofs_xattr_trusted_handler ,
57
58
#ifdef CONFIG_EROFS_FS_SECURITY
58
- [EROFS_XATTR_INDEX_SECURITY ] = & erofs_xattr_security_handler ,
59
+ [EROFS_XATTR_INDEX_SECURITY ] = & erofs_xattr_security_handler ,
59
60
#endif
60
- };
61
+ };
61
62
62
63
return idx && idx < ARRAY_SIZE (xattr_handler_map ) ?
63
64
xattr_handler_map [idx ] : NULL ;
0 commit comments