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: NLukas Czerner <lczerner@redhat.com> Acked-by: NTino Reichardt <milky-kernel@mcmilk.de> Signed-off-by: NDave Kleikamp <dave.kleikamp@oracle.com>
Showing
想要评论请 注册 或 登录