]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: factor out a helper to calculate the end_fsb
authorChristoph Hellwig <hch@lst.de>
Sat, 19 Oct 2019 16:09:44 +0000 (09:09 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 21 Oct 2019 16:04:58 +0000 (09:04 -0700)
commitbcfc9f48d683c2e9759a71aefb45e009b3ae0799
treed298191dab68754550435e4a666e69af5e025497
parentefed8a4e6faaaa9a9371ca6ee32f69978c408124
xfs: factor out a helper to calculate the end_fsb

We have lots of places that want to calculate the final fsb for
a offset + count in bytes and check that the result fits into
s_maxbytes.  Factor out a helper for that.

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