xfs: turn XFS_ATTR3_RMT_BUF_SPACE into a function
authorDarrick J. Wong <djwong@kernel.org>
Thu, 2 May 2024 14:48:36 +0000 (07:48 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 2 May 2024 14:48:36 +0000 (07:48 -0700)
commita5714b67cad586f44777ad834e577037ce6b64fd
tree4c477b21c8283eb5ca3a83d64420b85964c308ee
parenta86f8671d03e6eb31abaefdf6928b92df0a2368c
xfs: turn XFS_ATTR3_RMT_BUF_SPACE into a function

Turn this into a properly typechecked function, and actually use the
correct blocksize for extended attributes.  The function cannot be
static inline because xfsprogs userspace uses it.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Andrey Albershteyn <aalbersh@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_attr_remote.c
fs/xfs/libxfs/xfs_da_format.h