Alan Somers 0122532ee0 F_READAHEAD: Fix r349248's overflow protection, broken by r349391
I accidentally broke the main point of r349248 when making stylistic changes
in r349391.  Restore the original behavior, and also fix an additional
overflow that was possible when uio->uio_resid was nearly SSIZE_MAX.

Reported by:	cem
Reviewed by:	bde
MFC after:	2 weeks
MFC-With:	349248
Sponsored by:	The FreeBSD Foundation
2019-07-17 17:01:07 +00:00
..
2019-06-18 21:05:10 +00:00
2019-05-07 18:10:21 +00:00
2019-01-27 00:46:06 +00:00
2019-05-20 19:14:07 +00:00
2019-06-24 20:52:21 +00:00
2019-05-30 16:11:20 +00:00
2018-12-05 16:43:03 +00:00
2019-06-03 15:23:37 +00:00
2019-03-12 05:10:41 +00:00
2018-10-12 00:32:45 +00:00
2018-08-18 19:45:56 +00:00
2018-06-01 13:26:45 +00:00
2019-02-20 09:38:19 +00:00
2019-06-19 13:30:50 +00:00
2018-11-20 14:58:41 +00:00
2019-07-15 21:48:02 +00:00
2019-05-07 18:10:21 +00:00
2019-05-07 18:10:21 +00:00
2018-06-01 13:26:45 +00:00
2019-06-20 13:59:46 +00:00
2018-10-23 21:43:41 +00:00