diff options
author | Tim Shimmin <tes@sgi.com> | 2008-06-26 23:34:42 -0400 |
---|---|---|
committer | Niv Sardi <xaiki@debian.org> | 2008-07-28 02:59:17 -0400 |
commit | 136f8f21b6d564f553abe6130127d16fb50432d3 (patch) | |
tree | f8d835db90982079742a4c1b8f2212be1c555440 | |
parent | 2edbddd5f46cc123b68c11179115041c54759fa2 (diff) |
[XFS] Fix up problem when CONFIG_XFS_POSIX_ACL is not set and yet we still
can use the _ACL_TYPE_* definitions in linux-2.6/xfs_xattr.c. The
forthcoming generic acl code will also fix this problem.
SGI-PV: 982343
SGI-Modid: xfs-linux-melb:xfs-kern:31369a
Signed-off-by: Tim Shimmin <tes@sgi.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
-rw-r--r-- | fs/xfs/xfs_acl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_acl.h b/fs/xfs/xfs_acl.h index 332a772461c4..323ee94cf831 100644 --- a/fs/xfs/xfs_acl.h +++ b/fs/xfs/xfs_acl.h | |||
@@ -46,6 +46,8 @@ typedef struct xfs_acl { | |||
46 | #define SGI_ACL_FILE_SIZE (sizeof(SGI_ACL_FILE)-1) | 46 | #define SGI_ACL_FILE_SIZE (sizeof(SGI_ACL_FILE)-1) |
47 | #define SGI_ACL_DEFAULT_SIZE (sizeof(SGI_ACL_DEFAULT)-1) | 47 | #define SGI_ACL_DEFAULT_SIZE (sizeof(SGI_ACL_DEFAULT)-1) |
48 | 48 | ||
49 | #define _ACL_TYPE_ACCESS 1 | ||
50 | #define _ACL_TYPE_DEFAULT 2 | ||
49 | 51 | ||
50 | #ifdef CONFIG_XFS_POSIX_ACL | 52 | #ifdef CONFIG_XFS_POSIX_ACL |
51 | 53 | ||
@@ -66,8 +68,6 @@ extern int xfs_acl_vset(bhv_vnode_t *, void *, size_t, int); | |||
66 | extern int xfs_acl_vget(bhv_vnode_t *, void *, size_t, int); | 68 | extern int xfs_acl_vget(bhv_vnode_t *, void *, size_t, int); |
67 | extern int xfs_acl_vremove(bhv_vnode_t *, int); | 69 | extern int xfs_acl_vremove(bhv_vnode_t *, int); |
68 | 70 | ||
69 | #define _ACL_TYPE_ACCESS 1 | ||
70 | #define _ACL_TYPE_DEFAULT 2 | ||
71 | #define _ACL_PERM_INVALID(perm) ((perm) & ~(ACL_READ|ACL_WRITE|ACL_EXECUTE)) | 71 | #define _ACL_PERM_INVALID(perm) ((perm) & ~(ACL_READ|ACL_WRITE|ACL_EXECUTE)) |
72 | 72 | ||
73 | #define _ACL_INHERIT(c,m,d) (xfs_acl_inherit(c,m,d)) | 73 | #define _ACL_INHERIT(c,m,d) (xfs_acl_inherit(c,m,d)) |