ext3: Return -EINVAL when start is beyond the end of fs in ext3_trim_fs()
authorLukas Czerner <lczerner@redhat.com>
Wed, 22 Jun 2011 08:51:09 +0000 (10:51 +0200)
committerJan Kara <jack@suse.cz>
Sat, 25 Jun 2011 15:29:53 +0000 (17:29 +0200)
We should return -EINVAL when the FITRIM parameters are not sane, but
currently we are exiting silently if start is beyond the end of the
file system. This commit fixes this so we return -EINVAL as other file
systems do.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
CC: Jan Kara <jack@suse.cz>
Signed-off-by: Jan Kara <jack@suse.cz>

No differences found