xfs: introduce xfs_aligned_fsb_count
authorChristoph Hellwig <hch@lst.de>
Mon, 6 Feb 2017 18:42:26 +0000 (10:42 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 7 Feb 2017 01:47:46 +0000 (17:47 -0800)
commitf13eb2055ae46ded52961f27753c245dc5b8967d
treef32b49d88486cff8a352e721afe58fcd25fce412
parent54a4ef8af4e0dc5c983d17fcb9cf5fd25666d94e
xfs: introduce xfs_aligned_fsb_count

Factor a helper to calculate the extent-size aligned block out of the
iomap code, so that it can be reused by the upcoming reflink dio code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_iomap.c
fs/xfs/xfs_iomap.h