From: ericm Date: Tue, 30 May 2006 20:48:22 +0000 (+0000) Subject: branch: b1_5 X-Git-Tag: v1_7_100~1^90~8^2~192 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=4e5fd08371c7cadef39f69d598230fd7c9a6b198;p=fs%2Flustre-release.git branch: b1_5 xattr_acl_size() instead of acl_xattr_size() --- diff --git a/lustre/include/lustre_mds.h b/lustre/include/lustre_mds.h index 78eff75..06ef1c7 100644 --- a/lustre/include/lustre_mds.h +++ b/lustre/include/lustre_mds.h @@ -88,21 +88,19 @@ struct mds_file_data { /* ACL */ #ifdef CONFIG_FS_POSIX_ACL -#ifdef CONFIG_FS_POSIX_ACL -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)) -#define MDS_XATTR_NAME_ACL_ACCESS POSIX_ACL_XATTR_ACCESS -#define mds_xattr_acl_size(entry) posix_acl_xattr_size(entry) -#else -#define MDS_XATTR_NAME_ACL_ACCESS XATTR_NAME_ACL_ACCESS -#define mds_xattr_acl_size(entry) acl_xattr_size(entry) -#endif -#endif - -#define LUSTRE_POSIX_ACL_MAX_ENTRIES (32) -#define LUSTRE_POSIX_ACL_MAX_SIZE \ +# if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)) +# define MDS_XATTR_NAME_ACL_ACCESS POSIX_ACL_XATTR_ACCESS +# define mds_xattr_acl_size(entry) posix_acl_xattr_size(entry) +# else +# define MDS_XATTR_NAME_ACL_ACCESS XATTR_NAME_ACL_ACCESS +# define mds_xattr_acl_size(entry) xattr_acl_size(entry) +# endif + +# define LUSTRE_POSIX_ACL_MAX_ENTRIES (32) +# define LUSTRE_POSIX_ACL_MAX_SIZE \ (mds_xattr_acl_size(LUSTRE_POSIX_ACL_MAX_ENTRIES)) #else -#define LUSTRE_POSIX_ACL_MAX_SIZE 0 +# define LUSTRE_POSIX_ACL_MAX_SIZE 0 #endif /* mds/mds_reint.c */