aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorLukas Czerner <lczerner@redhat.com>2012-10-16 09:34:36 +0000
committerChris Mason <chris.mason@fusionio.com>2012-10-25 15:46:22 -0400
commite515c18bfef718a7900924d50198d968565dd60e (patch)
tree0ea52f8adab494952efc725384394b212142461f /fs/btrfs/volumes.c
parentBtrfs: fix memory leak in btrfs_quota_enable() (diff)
downloadlinux-dev-e515c18bfef718a7900924d50198d968565dd60e.tar.xz
linux-dev-e515c18bfef718a7900924d50198d968565dd60e.zip
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions