commit | e515c18bfef718a7900924d50198d968565dd60e | [log] [tgz] |
---|---|---|
author | Lukas Czerner <lczerner@redhat.com> | Tue Oct 16 09:34:36 2012 +0000 |
committer | Chris Mason <chris.mason@fusionio.com> | Thu Oct 25 15:46:22 2012 -0400 |
tree | 0ea52f8adab494952efc725384394b212142461f | |
parent | 5b7ff5b3c4468780b15c6b20cd0567cd9f2aa626 [diff] |
btrfs: Return EINVAL when length to trim is less than FSB Currently if len argument in btrfs_ioctl_fitrim() is smaller than one FSB we will continue and finally return 0 bytes discarded. However if the length to discard is smaller then file system block we should really return EINVAL. Signed-off-by: Lukas Czerner <lczerner@redhat.com>