]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Merge tag 'realtime-rmap_2024-12-23' of https://git.kernel.org/pub/scm/linux/kernel...
authorCarlos Maiolino <cem@kernel.org>
Mon, 13 Jan 2025 13:54:41 +0000 (14:54 +0100)
committerCarlos Maiolino <cem@kernel.org>
Mon, 13 Jan 2025 13:54:41 +0000 (14:54 +0100)
commita938bbe4739f8ffb0797f963324d207f789329c8
tree578325c68f218ed8a3f9662d9f1635e29cd96a50
parent8a092f440e0326a74a008566fef794fc891bdeda
parentc2358439af374cad47f771797875d0beb8256738
Merge tag 'realtime-rmap_2024-12-23' of https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux into for-next

xfs: realtime reverse-mapping support [v6.2 04/14]

This is the latest revision of a patchset that adds to XFS kernel
support for reverse mapping for the realtime device.  This time around
I've fixed some of the bitrot that I've noticed over the past few
months, and most notably have converted rtrmapbt to use the metadata
inode directory feature instead of burning more space in the superblock.

At the beginning of the set are patches to implement storing B+tree
leaves in an inode root, since the realtime rmapbt is rooted in an
inode, unlike the regular rmapbt which is rooted in an AG block.
Prior to this, the only btree that could be rooted in the inode fork
was the block mapping btree; if all the extent records fit in the
inode, format would be switched from 'btree' to 'extents'.

The next few patches enhance the reverse mapping routines to handle
the parts that are specific to rtgroups -- adding the new btree type,
adding a new log intent item type, and wiring up the metadata directory
tree entries.

Finally, implement GETFSMAP with the rtrmapbt and scrub functionality
for the rtrmapbt and rtbitmap and online fsck functionality.

This has been running on the djcloud for months with no problems.  Enjoy!

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
fs/xfs/libxfs/xfs_rtgroup.h