aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/acl.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@redhat.com>2008-08-28 06:21:15 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:07 -0400
commiteab922ec8907b8c506e799785e7e2d16eabe50e4 (patch)
treed983401313631d24240524d40c9ef1d19ed4e5ac /fs/btrfs/acl.c
parent639cb58675ce9b507eed9c3d6b3335488079b21a (diff)
Btrfs: compile when posix acl's are disabled
This patch makes btrfs so it will compile properly when acls are disabled. I tested this and it worked with CONFIG_FS_POSIX_ACL off and on. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/acl.c')
-rw-r--r--fs/btrfs/acl.c21
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
30static void btrfs_update_cached_acl(struct inode *inode, 32static 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
337int btrfs_acl_chmod(struct inode *inode)
338{
339 return 0;
340}
341
342int btrfs_init_acl(struct inode *inode, struct inode *dir)
343{
344 return 0;
345}
346
347int btrfs_check_acl(struct inode *inode, int mask)
348{
349 return 0;
350}
351
352#endif /* CONFIG_FS_POSIX_ACL */