Skip to content
Commit e515c18b authored by Lukas Czerner's avatar Lukas Czerner Committed by Chris Mason
Browse files

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: default avatarLukas Czerner <lczerner@redhat.com>
parent 5b7ff5b3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment