X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Flinux%2Flustre_acl.h;h=e02889124ecef32d87b7c3d1a7585e4b0b0241ec;hb=0b83275f42d6253fabe46e3b1e8b8a4dee87012c;hp=eb0620587eae1cdbed8815d5a1f80a8e6918c279;hpb=fcd9830e95520d47b78acab5e0e7caa1aea1b99f;p=fs%2Flustre-release.git diff --git a/lustre/include/linux/lustre_acl.h b/lustre/include/linux/lustre_acl.h index eb06205..e028891 100644 --- a/lustre/include/linux/lustre_acl.h +++ b/lustre/include/linux/lustre_acl.h @@ -28,8 +28,10 @@ # define mds_xattr_acl_size(entry) posix_acl_xattr_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)) +# define LUSTRE_POSIX_ACL_MAX_SIZE \ + (sizeof(xattr_acl_header) + \ + LUSTRE_POSIX_ACL_MAX_ENTRIES * \ + sizeof(xattr_acl_entry)) #else # define LUSTRE_POSIX_ACL_MAX_SIZE 0 #endif