summaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_format.h
diff options
context:
space:
mode:
authorDave Chinner <david@fromorbit.com>2015-10-12 18:38:25 +1100
committerDave Chinner <david@fromorbit.com>2015-10-12 18:38:25 +1100
commit1e2103cbf4adfd5490ee5f3ee59750bd70d2047e (patch)
treefb8256698fc1098784ef0bedba22768a793679f4 /fs/xfs/libxfs/xfs_format.h
parent8a56d7c305b9613dfe416fd1af06871ec34bb103 (diff)
parent847f9f6875fb02b576035e3dc31f5e647b7617a7 (diff)
downloadop-kernel-dev-1e2103cbf4adfd5490ee5f3ee59750bd70d2047e.zip
op-kernel-dev-1e2103cbf4adfd5490ee5f3ee59750bd70d2047e.tar.gz
Merge branch 'xfs-misc-fixes-for-4.4-1' into for-next
Diffstat (limited to 'fs/xfs/libxfs/xfs_format.h')
-rw-r--r--fs/xfs/libxfs/xfs_format.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_format.h b/fs/xfs/libxfs/xfs_format.h
index 9590a06..8568de1 100644
--- a/fs/xfs/libxfs/xfs_format.h
+++ b/fs/xfs/libxfs/xfs_format.h
@@ -60,6 +60,14 @@ struct xfs_ifork;
#define XFS_SB_VERSION_MOREBITSBIT 0x8000
/*
+ * The size of a single extended attribute on disk is limited by
+ * the size of index values within the attribute entries themselves.
+ * These are be16 fields, so we can only support attribute data
+ * sizes up to 2^16 bytes in length.
+ */
+#define XFS_XATTR_SIZE_MAX (1 << 16)
+
+/*
* Supported feature bit list is just all bits in the versionnum field because
* we've used them all up and understand them all. Except, of course, for the
* shared superblock bit, which nobody knows what it does and so is unsupported.
@@ -1483,7 +1491,7 @@ struct xfs_acl {
*/
#define XFS_ACL_MAX_ENTRIES(mp) \
(xfs_sb_version_hascrc(&mp->m_sb) \
- ? (XATTR_SIZE_MAX - sizeof(struct xfs_acl)) / \
+ ? (XFS_XATTR_SIZE_MAX - sizeof(struct xfs_acl)) / \
sizeof(struct xfs_acl_entry) \
: 25)
OpenPOWER on IntegriCloud