Whamcloud - gitweb
replace alloc memory dynamicly with static buffer for acl check.
[fs/lustre-release.git] / lustre / include / linux / lustre_acl.h
index eb06205..e028891 100644 (file)
 #  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