]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: refactor creation of bmap btree roots
authorDarrick J. Wong <djwong@kernel.org>
Mon, 12 Aug 2024 21:19:00 +0000 (14:19 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 14 Aug 2024 03:08:18 +0000 (20:08 -0700)
commitcf527ad846be4a0538b33f2e660ca93a1979346c
treeaa76e737f8917a34e16b4a7cc0233236cff89627
parentb1ad334aa27bab4ad0f6ec44d15b6d7dbb06bb03
xfs: refactor creation of bmap btree roots

Now that we've created inode fork helpers to allocate and free btree
roots, create a new bmap btree helper to create a new bmbt root, and
refactor the extents <-> btree conversion functions to use our new
helpers.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/xfs_bmap.c
libxfs/xfs_bmap_btree.c
libxfs/xfs_bmap_btree.h