diff options
Diffstat (limited to 'fs/btrfs/acl.c')
-rw-r--r-- | fs/btrfs/acl.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/fs/btrfs/acl.c b/fs/btrfs/acl.c index b192659b4f5f..b95147ef1c77 100644 --- a/fs/btrfs/acl.c +++ b/fs/btrfs/acl.c | |||
@@ -27,6 +27,8 @@ | |||
27 | #include "btrfs_inode.h" | 27 | #include "btrfs_inode.h" |
28 | #include "xattr.h" | 28 | #include "xattr.h" |
29 | 29 | ||
30 | #ifdef CONFIG_FS_POSIX_ACL | ||
31 | |||
30 | static void btrfs_update_cached_acl(struct inode *inode, | 32 | static void btrfs_update_cached_acl(struct inode *inode, |
31 | struct posix_acl **p_acl, | 33 | struct posix_acl **p_acl, |
32 | struct posix_acl *acl) | 34 | struct posix_acl *acl) |
@@ -329,3 +331,22 @@ struct xattr_handler btrfs_xattr_acl_access_handler = { | |||
329 | .get = btrfs_xattr_acl_access_get, | 331 | .get = btrfs_xattr_acl_access_get, |
330 | .set = btrfs_xattr_acl_access_set, | 332 | .set = btrfs_xattr_acl_access_set, |
331 | }; | 333 | }; |
334 | |||
335 | #else /* CONFIG_FS_POSIX_ACL */ | ||
336 | |||
337 | int btrfs_acl_chmod(struct inode *inode) | ||
338 | { | ||
339 | return 0; | ||
340 | } | ||
341 | |||
342 | int btrfs_init_acl(struct inode *inode, struct inode *dir) | ||
343 | { | ||
344 | return 0; | ||
345 | } | ||
346 | |||
347 | int btrfs_check_acl(struct inode *inode, int mask) | ||
348 | { | ||
349 | return 0; | ||
350 | } | ||
351 | |||
352 | #endif /* CONFIG_FS_POSIX_ACL */ | ||