aboutsummaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_exchrange.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-11-03 20:19:12 -0800
committerDarrick J. Wong <djwong@kernel.org>2024-11-05 13:38:37 -0800
commit1029f08dc53920048e404cb151aaa76593ee31bb (patch)
tree053a92856a02c8dc29a02b0940d7a3a129bccc99 /fs/xfs/xfs_exchrange.c
parentcb9cd6e56e482b56ddf052b66af6e9fb51b7fb33 (diff)
downloadlinux-1029f08dc53920048e404cb151aaa76593ee31bb.tar.gz
linux-1029f08dc53920048e404cb151aaa76593ee31bb.tar.bz2
linux-1029f08dc53920048e404cb151aaa76593ee31bb.zip
xfs: factor out a xfs_growfs_rt_alloc_fake_mount helper
Split the code to set up a fake mount point to calculate new RT geometry out of xfs_growfs_rt_bmblock so that it can be reused. Note that this changes the rmblocks calculation method to be based on the passed in rblocks and extsize and not the explicitly passed one, but both methods will always lead to the same result. The new version just does a little bit more math while being more general. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_exchrange.c')
0 files changed, 0 insertions, 0 deletions