xfs: create a helper to compute the blockcount of a max sized remote value
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)
commit204a26aa1d5a891154c9275fe4022e28793ca112
tree528b87a86452f47b09f83b646808ac073f6d3c08
parenta5714b67cad586f44777ad834e577037ce6b64fd
xfs: create a helper to compute the blockcount of a max sized remote value

Create a helper function to compute the number of fsblocks needed to
store a maximally-sized extended attribute value.

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.c
fs/xfs/libxfs/xfs_attr_remote.h
fs/xfs/scrub/reap.c