]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: introduce realtime refcount btree ondisk definitions
authorDarrick J. Wong <djwong@kernel.org>
Mon, 24 Feb 2025 18:21:51 +0000 (10:21 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 25 Feb 2025 17:15:58 +0000 (09:15 -0800)
commit4b7bd0810c9264eba8ea64040a1a7ce03ebb5089
tree8c0619ba89712dc092351310369736497945b87f
parent803f79897071607f66391f3f177b113fb591e3e3
xfs: introduce realtime refcount btree ondisk definitions

Source kernel commit: 9abe03a0e4f978615a2b1b484b8d09ca84c16ea0

Add the ondisk structure definitions for realtime refcount btrees. The
realtime refcount btree will be rooted from a hidden inode so it needs
to have a separate btree block magic and pointer format.

Next, add everything needed to read, write and manipulate refcount btree
blocks. This prepares the way for connecting the btree operations
implementation, though the changes to actually root the rtrefcount btree
in an inode come later.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
include/libxfs.h
include/xfs_mount.h
libxfs/Makefile
libxfs/xfs_btree.c
libxfs/xfs_format.h
libxfs/xfs_ondisk.h
libxfs/xfs_rtrefcount_btree.c [new file with mode: 0644]
libxfs/xfs_rtrefcount_btree.h [new file with mode: 0644]
libxfs/xfs_sb.c
libxfs/xfs_shared.h