xfs: create a blob array data structure
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:54:43 +0000 (14:54 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:58:53 +0000 (14:58 -0700)
commitd2bd7eef4f217fc3e1ddf18b4f4eac848886bfa0
treee6228c7915767311c95a8559076a5d922ed3cea8
parent98339edf0750e75e216521961c98c8105a830bf8
xfs: create a blob array data structure

Create a simple 'blob array' data structure for storage of arbitrarily
sized metadata objects that will be used to reconstruct metadata.  For
the intended usage (temporarily storing extended attribute names and
values) we only have to support storing objects and retrieving them.
Use the xfile abstraction to store the attribute information in memory
that can be swapped out.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/Makefile
fs/xfs/scrub/xfblob.c [new file with mode: 0644]
fs/xfs/scrub/xfblob.h [new file with mode: 0644]