On Tue, May 28, 2019 at 04:21:54PM +0800, Qu Wenruo wrote: > Normally the range->len is set to default value (U64_MAX), but when it's > not default value, we should check if the range overflows. > > And if overflows, return -EINVAL before doing anything. > > Signed-off-by: Qu Wenruo <w...@suse.com>
The range support of TRIM will be reverted so this patch won't be needed.