]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: tidy up xfs_bmap_broot_realloc a bit
authorDarrick J. Wong <djwong@kernel.org>
Thu, 21 Nov 2024 00:20:15 +0000 (16:20 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 23 Dec 2024 21:06:02 +0000 (13:06 -0800)
commitc914081775e2e39e4afa9b4bb9e5c98202110f51
treefc836ffda4a1818068981b0adecde8c164950313
parenteb9bff22311ca47ef4848bbdcf24dae06ae3f243
xfs: tidy up xfs_bmap_broot_realloc a bit

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>
fs/xfs/libxfs/xfs_bmap_btree.c