]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_repair: define an in-memory btree for storing refcount bag info
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 17:01:18 +0000 (10:01 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 3 Jun 2024 18:37:42 +0000 (11:37 -0700)
commit991d79e88eececfaeaa646f0b22c0734e69a3336
treea760d184079c132893911b671b65590cae9b5996
parent47307ecef44599b2caf0546c7e518b544e14d9c8
xfs_repair: define an in-memory btree for storing refcount bag info

Create a new in-memory btree type so that we can store refcount bag info
in a much more memory-efficient format.  Note that the xfs_repair rcbag
btree stores inode numbers (unlike the kernel rcbag btree) because
xfs_repair needs to compute the bitmap of inodes that must have the
reflink iflag set.

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