Skip to content
Snippets Groups Projects
Commit 4e7a4b01 authored by Lukas Czerner's avatar Lukas Czerner Committed by Dave Kleikamp
Browse files

jfs: Fix FITRIM argument handling


Currently when 'range->start' is beyond the end of file system
nothing is done and that fact is ignored, where in fact we should return
EINVAL. The same problem is when 'range.len' is smaller than file system
block.

Fix this by adding check for such conditions and return EINVAL
appropriately.

Signed-off-by: default avatarLukas Czerner <lczerner@redhat.com>
Acked-by: default avatarTino Reichardt <milky-kernel@mcmilk.de>
Signed-off-by: default avatarDave Kleikamp <dave.kleikamp@oracle.com>
parent 8d2b6b3a
Branches
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment