xfs: fix s_maxbytes overflow problems
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 22 Dec 2017 21:14:34 +0000 (13:14 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 2 Jan 2018 18:16:32 +0000 (10:16 -0800)
commitb4d8ad7fd3a18e6d92d4ebe858185c704604a57d
tree6c26c75b1a436f78f53b285c3ab676ea3098831f
parent3a3882ff26fbdbaf5f7e13f6a0bccfbf7121041d
xfs: fix s_maxbytes overflow problems

Fix some integer overflow problems if offset + count happen to be large
enough to cause an integer overflow.

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