]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit98d595f2554b2da65380c3df5f1a07cbbb829756
treece36637e3391d9437bc19773885aa0955941962a
parent90c8afa59066d14605ac8dadbe0f03232c4a19cf
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