diff options
author | Yan <yanzheng@21cn.com> | 2008-01-17 11:59:51 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:59 -0400 |
commit | fb4bc1e0565a842d704846005ac0ec739e608ede (patch) | |
tree | d4670954777c4e74ae2385521eeda3965acf4d5b /fs/btrfs/acl.c | |
parent | caaca38b8fdcf63a17647fddae2195b189e19e37 (diff) | |
download | talos-obmc-linux-fb4bc1e0565a842d704846005ac0ec739e608ede.tar.gz talos-obmc-linux-fb4bc1e0565a842d704846005ac0ec739e608ede.zip |
Btrfs: Fix compile on 2.6.22 kernel
This patch fixes compile error on kernel-2.6.22
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/acl.c')
-rw-r--r-- | fs/btrfs/acl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/acl.c b/fs/btrfs/acl.c index b4f85ebe1bd6..27bb841fafeb 100644 --- a/fs/btrfs/acl.c +++ b/fs/btrfs/acl.c @@ -22,6 +22,11 @@ #include <linux/posix_acl_xattr.h> #include "ctree.h" #include "xattr.h" +#ifndef is_owner_or_cap +#define is_owner_or_cap(inode) \ + ((current->fsuid == (inode)->i_uid) || capable(CAP_FOWNER)) +#endif + static int btrfs_xattr_set_acl(struct inode *inode, int type, const void *value, size_t size) { |