Tomas Racek a672e1be30 xfs: check for possible overflow in xfs_ioc_trim
If range.start or range.minlen is bigger than filesystem size, return
invalid value error. This fixes possible overflow in BTOBB macro when
passed value was nearly ULLONG_MAX.

Signed-off-by: Tomas Racek <tracek@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
2012-08-23 14:48:44 -05:00
..
2012-07-14 16:34:32 +04:00
2012-07-30 17:25:16 -07:00
2012-07-14 16:38:34 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:47 +04:00
2012-08-02 09:11:19 -07:00
2012-07-27 15:17:50 -05:00
2012-07-14 16:34:47 +04:00
2012-07-26 11:25:33 -07:00
2012-07-14 16:38:34 +04:00
2012-07-16 14:24:43 -05:00
2012-07-14 16:34:32 +04:00
2012-07-30 17:25:16 -07:00
2012-07-22 23:58:09 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:38:34 +04:00
2012-07-30 17:25:19 -07:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:47 +04:00
2012-07-30 17:25:16 -07:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:47 +04:00
2012-07-22 23:58:16 +04:00
2012-07-14 16:34:47 +04:00
2012-03-20 21:29:46 -04:00
2012-03-20 21:29:46 -04:00
2012-07-30 17:25:21 -07:00
2012-01-03 22:52:39 -05:00
2012-07-14 16:32:47 +04:00
2012-07-14 16:38:34 +04:00
2012-03-20 21:29:38 -04:00
2012-07-14 16:32:48 +04:00