From: Jie Liu Date: Tue, 21 Jan 2014 23:48:35 +0000 (-0800) Subject: ocfs2: return EINVAL if the given range to discard is less than block size X-Git-Tag: v3.14-rc1~134^2~100 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa89762c54800208d5afdcd8e6bf124818f17fe0;p=pandora-kernel.git 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 Cc: Mark Fasheh Cc: Joel Becker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed