On 30.05.19 г. 15:04 ч., David Sterba wrote: > 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 <wqu@xxxxxxxx> > > The range support of TRIM will be reverted so this patch won't be > needed. > Range support is going to be removed only from unallocated device space trimming, not block group trimming. So it's still required.
