]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf7afb4460e3e8ff23d6b6d5207476fde33c1d602
tree65fe485cf25404653fdbe90446e76f26799ab4cb
parentf064fd57199171a793150944e8f485c27ae6dc80
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