From: Lukas Czerner Date: Tue, 16 Oct 2012 09:34:36 +0000 (+0000) Subject: btrfs: Return EINVAL when length to trim is less than FSB X-Git-Tag: v3.7-rc3~21^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e515c18bfef718a7900924d50198d968565dd60e;p=pandora-kernel.git 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 --- Reading git-diff-tree failed