Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replace alloc memory dynamicly with static buffer for acl check.
[fs/lustre-release.git]
/
lustre
/
include
/
linux
/
lustre_acl.h
diff --git
a/lustre/include/linux/lustre_acl.h
b/lustre/include/linux/lustre_acl.h
index
eb06205
..
e028891
100644
(file)
--- 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 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
#else
# define LUSTRE_POSIX_ACL_MAX_SIZE 0
#endif