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>
This commit is contained in:
Yan
2008-01-17 11:59:51 -05:00
committed by Chris Mason
parent caaca38b8f
commit fb4bc1e056
2 changed files with 8 additions and 2 deletions

View File

@ -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)
{