GFS2: Require user to provide argument for FITRIM
authorLukas Czerner <lczerner@redhat.com>
Tue, 16 Oct 2012 09:39:07 +0000 (11:39 +0200)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 7 Nov 2012 09:41:37 +0000 (09:41 +0000)
commit3a238adefb8c5b8cb8cde0ce689d513306176ff4
treece36637e3391d9437bc19773885aa0955941962a
parent73738a77f42c2d7f53fd61f73272c9dd6f520897
GFS2: Require user to provide argument for FITRIM

When the fstrim_range argument is not provided by user in FITRIM ioctl
we should just return EFAULT and not promoting bad behaviour by filling
the structure in kernel. Let the user deal with it.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/rgrp.c