]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: tidy up xfs_bmap_broot_realloc a bit
authorDarrick J. Wong <djwong@kernel.org>
Mon, 24 Feb 2025 18:21:45 +0000 (10:21 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 25 Feb 2025 17:15:57 +0000 (09:15 -0800)
commit40b2ce349baec111150aa42901d0cf4589b36911
treeaed41fe97df298dc6ad118cf955064523491e980
parent5d7c26f31d8cb09e018d2afeb9c1ce5031c2e533
xfs: tidy up xfs_bmap_broot_realloc a bit

Source kernel commit: c914081775e2e39e4afa9b4bb9e5c98202110f51

Hoist out the code that migrates broot pointers during a resize
operation to avoid code duplication and streamline the caller.  Also
use the correct bmbt pointer type for the sizeof operation.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_bmap_btree.c