xfs: avoid dependency on Linux XATTR_SIZE_MAX
authorJan Tulak <jtulak@redhat.com>
Mon, 12 Oct 2015 05:03:59 +0000 (16:03 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 12 Oct 2015 05:03:59 +0000 (16:03 +1100)
commit51fcbfe7092a18a138e28110df3ab7e666bf69ee
tree6e58ed9d553ccd0d1d8d8fae44ea448ea79b5f3f
parent4e247614a92852e8eb29e49be094b6b981a7895f
xfs: avoid dependency on Linux XATTR_SIZE_MAX

Currently, we depends on Linux XATTR value for on disk
definition. Which causes trouble on other platforms and
maybe also if this value was to change.

Fix it by creating a custom definition independent from
those in Linux (although with the same values), so it is OK
with the be16 fields used for holding these attributes.

This patch reflects a change in xfsprogs.

Signed-off-by: Jan Tulak <jtulak@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_attr_remote.c
fs/xfs/libxfs/xfs_format.h
fs/xfs/xfs_ioctl.c