Jie Liu aa89762c54 ocfs2: return EINVAL if the given range to discard is less than block size
For FITRIM ioctl(2), we should not keep silence if the given range
length ls less than a block size as there is no data blocks would be
discareded.  Hence it should return EINVAL instead.  This issue can be
verified via xfstests/generic/288 which is used for FITRIM argument
handling tests.

Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-01-21 16:19:42 -08:00
..
2014-01-21 16:19:41 -08:00
2011-07-25 14:30:23 -04:00
2013-05-07 20:16:25 -07:00
2010-09-10 09:18:15 -07:00
2013-06-29 12:57:02 +04:00
2011-07-25 14:58:15 -07:00
2013-11-13 12:09:00 +09:00
2013-11-09 00:16:32 -05:00
2013-05-07 20:16:25 -07:00
2011-02-21 11:18:23 +08:00
2008-10-13 13:57:57 -07:00
2014-01-21 16:19:41 -08:00
2013-02-26 02:46:10 -05:00
2008-02-03 17:33:42 +02:00
2011-03-31 11:26:23 -03:00
2011-07-24 10:34:54 -07:00
2012-05-29 23:28:40 -04:00
2011-02-24 16:22:20 +08:00