summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/ioctl.c
diff options
context:
space:
mode:
authorJie Liu <jeff.liu@oracle.com>2014-01-22 00:48:35 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-22 01:19:42 +0100
commitaa89762c54800208d5afdcd8e6bf124818f17fe0 (patch)
tree36beda22a4b7bc8697fbd05a02af4a2d0dab1b04 /fs/ocfs2/ioctl.c
parentocfs2: return EOPNOTSUPP if the device does not support discard (diff)
downloadlinux-aa89762c54800208d5afdcd8e6bf124818f17fe0.tar.xz
linux-aa89762c54800208d5afdcd8e6bf124818f17fe0.zip
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions