Whamcloud - gitweb
LU-4725 obd: lu_object_find_at hung
[fs/lustre-release.git] / lustre / include / linux / lustre_acl.h
index 58d67ba..e7df7f1 100644 (file)
  * Use is subject to license terms.
  */
 /*
- * Copyright (c) 2011, Intel Corporation.
+ * Copyright (c) 2011, 2012, Intel Corporation.
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
  * Lustre is a trademark of Sun Microsystems, Inc.
  *
- * lustre/lustre/include/lustre_idmap.h
+ * lustre/lustre/include/lustre_acl.h
  *
  * MDS data structures.
  * See also lustre_idl.h for wire formats of requests.
 # include <linux/dcache.h>
 # ifdef CONFIG_FS_POSIX_ACL
 #  include <linux/posix_acl_xattr.h>
-#  define LUSTRE_POSIX_ACL_MAX_SIZE   XATTR_ACL_SIZE
+#  define LUSTRE_POSIX_ACL_MAX_ENTRIES 32
+#  define LUSTRE_POSIX_ACL_MAX_SIZE                                    \
+       (sizeof(posix_acl_xattr_header) +                               \
+        LUSTRE_POSIX_ACL_MAX_ENTRIES * sizeof(posix_acl_xattr_entry))
 # endif /* CONFIG_FS_POSIX_ACL */
 # include <linux/lustre_intent.h>
 # include <linux/xattr.h> /* XATTR_{REPLACE,CREATE} */