diff options
-rw-r--r-- | fs/btrfs/Makefile | 5 | ||||
-rw-r--r-- | fs/btrfs/xattr.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/fs/btrfs/Makefile b/fs/btrfs/Makefile index ab9a9f8edbf8..72cc3e16741f 100644 --- a/fs/btrfs/Makefile +++ b/fs/btrfs/Makefile | |||
@@ -5,8 +5,11 @@ obj-m := btrfs.o | |||
5 | btrfs-y := super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \ | 5 | btrfs-y := super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \ |
6 | hash.o file-item.o inode-item.o inode-map.o disk-io.o \ | 6 | hash.o file-item.o inode-item.o inode-map.o disk-io.o \ |
7 | transaction.o bit-radix.o inode.o file.o tree-defrag.o \ | 7 | transaction.o bit-radix.o inode.o file.o tree-defrag.o \ |
8 | extent_map.o sysfs.o struct-funcs.o xattr.o acl.o ordered-data.o | 8 | extent_map.o sysfs.o struct-funcs.o xattr.o ordered-data.o |
9 | 9 | ||
10 | ifeq ($(CONFIG_FS_POSIX_ACL),y) | ||
11 | btrfs-y += acl.o | ||
12 | endif | ||
10 | #btrfs-y := ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o \ | 13 | #btrfs-y := ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o \ |
11 | # root-tree.o dir-item.o hash.o file-item.o inode-item.o \ | 14 | # root-tree.o dir-item.o hash.o file-item.o inode-item.o \ |
12 | # inode-map.o \ | 15 | # inode-map.o \ |
diff --git a/fs/btrfs/xattr.c b/fs/btrfs/xattr.c index 4b3bd24af72b..0a4950400f85 100644 --- a/fs/btrfs/xattr.c +++ b/fs/btrfs/xattr.c | |||
@@ -26,20 +26,22 @@ | |||
26 | #include "transaction.h" | 26 | #include "transaction.h" |
27 | #include "xattr.h" | 27 | #include "xattr.h" |
28 | #include "disk-io.h" | 28 | #include "disk-io.h" |
29 | |||
30 | static struct xattr_handler *btrfs_xattr_handler_map[] = { | 29 | static struct xattr_handler *btrfs_xattr_handler_map[] = { |
31 | [BTRFS_XATTR_INDEX_USER] = &btrfs_xattr_user_handler, | 30 | [BTRFS_XATTR_INDEX_USER] = &btrfs_xattr_user_handler, |
31 | #ifdef CONFIG_FS_POSIX_ACL | ||
32 | [BTRFS_XATTR_INDEX_POSIX_ACL_ACCESS] = &btrfs_xattr_acl_access_handler, | 32 | [BTRFS_XATTR_INDEX_POSIX_ACL_ACCESS] = &btrfs_xattr_acl_access_handler, |
33 | [BTRFS_XATTR_INDEX_POSIX_ACL_DEFAULT] = &btrfs_xattr_acl_default_handler, | 33 | [BTRFS_XATTR_INDEX_POSIX_ACL_DEFAULT] = &btrfs_xattr_acl_default_handler, |
34 | #endif | ||
34 | [BTRFS_XATTR_INDEX_TRUSTED] = &btrfs_xattr_trusted_handler, | 35 | [BTRFS_XATTR_INDEX_TRUSTED] = &btrfs_xattr_trusted_handler, |
35 | [BTRFS_XATTR_INDEX_SECURITY] = &btrfs_xattr_security_handler, | 36 | [BTRFS_XATTR_INDEX_SECURITY] = &btrfs_xattr_security_handler, |
36 | [BTRFS_XATTR_INDEX_SYSTEM] = &btrfs_xattr_system_handler, | 37 | [BTRFS_XATTR_INDEX_SYSTEM] = &btrfs_xattr_system_handler, |
37 | }; | 38 | }; |
38 | |||
39 | struct xattr_handler *btrfs_xattr_handlers[] = { | 39 | struct xattr_handler *btrfs_xattr_handlers[] = { |
40 | &btrfs_xattr_user_handler, | 40 | &btrfs_xattr_user_handler, |
41 | #ifdef CONFIG_FS_POSIX_ACL | ||
41 | &btrfs_xattr_acl_access_handler, | 42 | &btrfs_xattr_acl_access_handler, |
42 | &btrfs_xattr_acl_default_handler, | 43 | &btrfs_xattr_acl_default_handler, |
44 | #endif | ||
43 | &btrfs_xattr_trusted_handler, | 45 | &btrfs_xattr_trusted_handler, |
44 | &btrfs_xattr_security_handler, | 46 | &btrfs_xattr_security_handler, |
45 | &btrfs_xattr_system_handler, | 47 | &btrfs_xattr_system_handler, |