xfs: Compute bmap extent alignments in a separate function
authorChandan Babu R <chandanrlinux@gmail.com>
Sat, 23 Jan 2021 00:48:16 +0000 (16:48 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Sat, 23 Jan 2021 00:54:49 +0000 (16:54 -0800)
commit0961fddfdd3f8ccd6302af2e7718abbaf18c9fff
tree65fe485cf25404653fdbe90446e76f26799ab4cb
parentaff4db57d510082f11194ca915d8101463c92d46
xfs: Compute bmap extent alignments in a separate function

This commit moves over the code which computes stripe alignment and
extent size hint alignment into a separate function. Apart from
xfs_bmap_btalloc(), the new function will be used by another function
introduced in a future commit.

Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Chandan Babu R <chandanrlinux@gmail.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_bmap.c