Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128920
b: refs/heads/master
c: eab922e
h: refs/heads/master
v: v3
  • Loading branch information
Josef Bacik authored and Chris Mason committed Sep 25, 2008
1 parent 2a3a5d3 commit 01c659c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 639cb58675ce9b507eed9c3d6b3335488079b21a
refs/heads/master: eab922ec8907b8c506e799785e7e2d16eabe50e4
3 changes: 1 addition & 2 deletions trunk/fs/btrfs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ btrfs-y := super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \
transaction.o bit-radix.o inode.o file.o tree-defrag.o \
extent_map.o sysfs.o struct-funcs.o xattr.o ordered-data.o \
extent_io.o volumes.o async-thread.o ioctl.o locking.o orphan.o \
ref-cache.o export.o
ref-cache.o acl.o export.o

btrfs-$(CONFIG_FS_POSIX_ACL) += acl.o
else

# Normal Makefile
Expand Down
21 changes: 21 additions & 0 deletions trunk/fs/btrfs/acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include "btrfs_inode.h"
#include "xattr.h"

#ifdef CONFIG_FS_POSIX_ACL

static void btrfs_update_cached_acl(struct inode *inode,
struct posix_acl **p_acl,
struct posix_acl *acl)
Expand Down Expand Up @@ -329,3 +331,22 @@ struct xattr_handler btrfs_xattr_acl_access_handler = {
.get = btrfs_xattr_acl_access_get,
.set = btrfs_xattr_acl_access_set,
};

#else /* CONFIG_FS_POSIX_ACL */

int btrfs_acl_chmod(struct inode *inode)
{
return 0;
}

int btrfs_init_acl(struct inode *inode, struct inode *dir)
{
return 0;
}

int btrfs_check_acl(struct inode *inode, int mask)
{
return 0;
}

#endif /* CONFIG_FS_POSIX_ACL */

0 comments on commit 01c659c

Please sign in to comment.