]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: create a helper to compute the blockcount of a max sized remote value
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:22:56 +0000 (16:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:05 +0000 (17:01 -0700)
commita5ec4d59c3a4c57e3c5a3eaec10997b801808e2e
treee5df12c59f6ca39b94f758f8e98c18cf89859d1f
parentd30f0d3f345b0a6b2fbe9b196ad6b1d1b0a1d846
xfs: create a helper to compute the blockcount of a max sized remote value

Source kernel commit: 204a26aa1d5a891154c9275fe4022e28793ca112

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>
libxfs/xfs_attr.c
libxfs/xfs_attr_remote.h