|
@@ -26,20 +26,22 @@
|
|
|
#include "transaction.h"
|
|
|
#include "xattr.h"
|
|
|
#include "disk-io.h"
|
|
|
-
|
|
|
static struct xattr_handler *btrfs_xattr_handler_map[] = {
|
|
|
[BTRFS_XATTR_INDEX_USER] = &btrfs_xattr_user_handler,
|
|
|
+#ifdef CONFIG_FS_POSIX_ACL
|
|
|
[BTRFS_XATTR_INDEX_POSIX_ACL_ACCESS] = &btrfs_xattr_acl_access_handler,
|
|
|
[BTRFS_XATTR_INDEX_POSIX_ACL_DEFAULT] = &btrfs_xattr_acl_default_handler,
|
|
|
+#endif
|
|
|
[BTRFS_XATTR_INDEX_TRUSTED] = &btrfs_xattr_trusted_handler,
|
|
|
[BTRFS_XATTR_INDEX_SECURITY] = &btrfs_xattr_security_handler,
|
|
|
[BTRFS_XATTR_INDEX_SYSTEM] = &btrfs_xattr_system_handler,
|
|
|
};
|
|
|
-
|
|
|
struct xattr_handler *btrfs_xattr_handlers[] = {
|
|
|
&btrfs_xattr_user_handler,
|
|
|
+#ifdef CONFIG_FS_POSIX_ACL
|
|
|
&btrfs_xattr_acl_access_handler,
|
|
|
&btrfs_xattr_acl_default_handler,
|
|
|
+#endif
|
|
|
&btrfs_xattr_trusted_handler,
|
|
|
&btrfs_xattr_security_handler,
|
|
|
&btrfs_xattr_system_handler,
|